Template:B/doc: Difference between revisions
let's not copy template documentation from xsw actually |
m why does no one use these other templates to simplify links even more smh |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 28: | Line 28: | ||
} | } | ||
}, | }, | ||
"description": "A | "description": "A template for simplifying links in [b]rackets to articles with identifiers. This should only be used for links that can't be simplified with [[Template:BTD6]], [[Template:BCS]], etc. 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.", | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
| Line 34: | Line 34: | ||
==Example usage== | ==Example usage== | ||
<pre>{{B|Double Shot|BTD6|Ninja Monkey}}</pre> | {|class="wikitable" | ||
{{B|Double Shot|BTD6|Ninja Monkey}} | !Wikitext | ||
!Output | |||
|- | |||
|<pre>{{B|Ninja Monkey|BTD6}}</pre> | |||
|{{B|Ninja Monkey|BTD6}} | |||
|- | |||
|<pre>{{B|Double Shot|BTD6|Ninja Monkey}}</pre> | |||
|{{B|Double Shot|BTD6|Ninja Monkey}} | |||
|} | |||
==See also== | |||
*[[Template:BTD3]] | |||
*[[Template:BTD4]] | |||
*[[Template:BTD5]] | |||
*[[Template:BTD6]] | |||
*[[Template:BTDB]] | |||
*[[Template:BTDB2]] | |||
*[[Template:BMC]] | |||
*[[Template:BATTD]] | |||
*[[Template:BSM1]] | |||
*[[Template:BSM2]] | |||
*[[Template:BP]] | |||
*[[Template:BCS]] | |||
*[[Template:Series]] | |||
<includeonly>[[Category:Link templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | <includeonly>[[Category:Link templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | ||
Latest revision as of 07:30, 9 July 2025
A template for simplifying links in [b]rackets to articles with identifiers. This should only be used for links that can't be simplified with [[Template:BTD6]], [[Template:BCS]], etc. 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 |
| First identifier | 2 | The first identifier in parentheses.
| String | required |
| Second identifier | 3 | The second identifier in parentheses, if one exists.
| String | optional |
| Third identifier | 4 | The third identifier in parentheses, if one exists. | String | optional |
Example usage
| Wikitext | Output |
|---|---|
{{B|Ninja Monkey|BTD6}}
|
Ninja Monkey |
{{B|Double Shot|BTD6|Ninja Monkey}}
|
Double Shot |