Template:BTD4/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "<templatedata> { "params": { "1": { "label": "Base name", "description": "The name of the article before any identifiers in parentheses.", "example": "Dart Monkey", "type": "string", "required": true }, "2": { "label": "Second identifier", "description": "The second identifier in parentheses, if one exists.", "type": "string", "required": true } }, "description": "A template for simplifying links in articles with the \"(BTD4)\" ident..." |
mNo edit summary |
||
| Line 12: | Line 12: | ||
"label": "Second identifier", | "label": "Second identifier", | ||
"description": "The second identifier in parentheses, if one exists.", | "description": "The second identifier in parentheses, if one exists.", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
Latest revision as of 20:34, 29 January 2025
A template for simplifying links in articles with the "(BTD4)" identifier. Note that in the source editor, you can use a feature of MediaWiki called the pipe trick to simplify links without this template — writing "[[Dart Monkey (BTD4)|]]" with a pipe and nothing after it automatically expands the text to "[[Dart Monkey (BTD4)|Dart Monkey]]" when the page is saved.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Base name | 1 | The name of the article before any identifiers in parentheses.
| String | required |
| Second identifier | 2 | The second identifier in parentheses, if one exists. | String | optional |
Example usage
| Wikitext | Output |
|---|---|
{{BTD4|Dart Monkey}}
|
Dart Monkey |