Template:BTD6/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
"description": "The second identifier in parentheses, if one exists.", | "description": "The second identifier in parentheses, if one exists.", | ||
"example": "Monkey Buccaneer", | "example": "Monkey Buccaneer", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
| Line 27: | Line 26: | ||
!Output | !Output | ||
|- | |- | ||
|<pre>{{BTD6| | |<pre>{{BTD6|Monkey Buccaneer}}</pre> | ||
|{{BTD6| | |{{BTD6|Monkey Buccaneer}} | ||
|- | |- | ||
|<pre>{{BTD6| | |<pre>{{BTD6|Faster Shooting|Monkey Buccaneer}}</pre> | ||
|{{BTD6| | |{{BTD6|Faster Shooting|Monkey Buccaneer}} | ||
|} | |} | ||
<includeonly>[[Category:BTD6 templates]][[Category:Link templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | <includeonly>[[Category:BTD6 templates]][[Category:Link templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | ||
Latest revision as of 20:37, 29 January 2025
A template for simplifying links in articles with the "(BTD6)" 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 (BTD6)|]]" with a pipe and nothing after it automatically expands the text to "[[Dart Monkey (BTD6)|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 |
|---|---|
{{BTD6|Monkey Buccaneer}}
|
Monkey Buccaneer |
{{BTD6|Faster Shooting|Monkey Buccaneer}}
|
Faster Shooting |