Difference between revisions of "Template:Specs-Link/Documentation"
(Added description) |
(Added parameters to TemplateData) |
||
| Line 1: | Line 1: | ||
{{docpage}} | {{docpage}} | ||
| − | This template can be used to quickly insert a link to the corresponding article of a vehicle using their code. The displayed link uses a shortened name of the vehicle. Example: {{Specs-Link|f-86f-40_japan}} | + | This template can be used to quickly insert a link to the corresponding article of a vehicle using their code. The displayed link uses a shortened name of the vehicle. |
| + | |||
| + | Example: {{Specs-Link|f-86f-40_japan}} | ||
| + | <pre>{{Specs-Link|f-86f-40_japan}}</pre> | ||
{{sp-begin|TemplateData}} | {{sp-begin|TemplateData}} | ||
| + | <div style="text-align:left"> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "params": {}, | + | "params": { |
| + | "1": { | ||
| + | "label": "Vehicle code", | ||
| + | "description": "The vehicle's in-game code. This can be found at the top of the vehicle's wiki page while in the wikitext editor, after \"code=\".", | ||
| + | "example": "f-86f-40_japan", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "Optional name override", | ||
| + | "description": "Overrides the displayed text of the link. DO NOT USE unless it explicitly disambiguates the link (i.e. if two different vehicles display with the same name).", | ||
| + | "example": "␗Ki-84 ko", | ||
| + | "type": "string" | ||
| + | } | ||
| + | }, | ||
"description": "This template can be used to quickly insert a link to the corresponding article of a vehicle using their code. The displayed link uses a shortened name of the vehicle." | "description": "This template can be used to quickly insert a link to the corresponding article of a vehicle using their code. The displayed link uses a shortened name of the vehicle." | ||
} | } | ||
</templatedata> | </templatedata> | ||
| + | </div> | ||
{{sp-end}} | {{sp-end}} | ||
Revision as of 13:27, 6 August 2020
This template can be used to quickly insert a link to the corresponding article of a vehicle using their code. The displayed link uses a shortened name of the vehicle.
Example: F-86F-40 ▅
{{Specs-Link|f-86f-40_japan}}
TemplateData
This template can be used to quickly insert a link to the corresponding article of a vehicle using their code. The displayed link uses a shortened name of the vehicle.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Vehicle code | 1 | The vehicle's in-game code. This can be found at the top of the vehicle's wiki page while in the wikitext editor, after "code=".
| String | required |
| Optional name override | 2 | Overrides the displayed text of the link. DO NOT USE unless it explicitly disambiguates the link (i.e. if two different vehicles display with the same name).
| String | optional |

