Template:B/doc: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 28: Line 28:
}
}
},
},
"description": "A template for simplifying links to articles with identifiers in [b]rackets.",
"description": "A template for simplifying links to articles with identifiers in [b]rackets. 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"
}
}

Revision as of 02:10, 16 December 2024

A template for simplifying links to articles with identifiers in [b]rackets. 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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Base name1

The name of the article before any identifiers in parentheses.

Example
Double Shot
Stringrequired
First identifier2

The first identifier in parentheses.

Example
BTD6
Stringrequired
Second identifier3

The second identifier in parentheses, if one exists.

Example
Ninja Monkey
Stringoptional
Third identifier4

The third identifier in parentheses, if one exists.

Stringoptional

Example usage

{{B|Double Shot|BTD6|Ninja Monkey}}

Double Shot