Template:Brackets: Difference between revisions
Jump to navigation
Jump to search
Template documentation
(create) |
(rm links) |
||
Line 19: | Line 19: | ||
===See also=== | ===See also=== | ||
* {{tl|Braces}} — to wrap content in double | * {{tl|Braces}} — to wrap content in double curly brackets | ||
* {{tl|Bracket}} — to wrap content in single | * {{tl|Bracket}} — to wrap content in single square brackets | ||
[[Category:Character-substitution templates]] | [[Category:Character-substitution templates]] | ||
}}<!--(end Documentation)--> | }}<!--(end Documentation)--> | ||
</noinclude> | </noinclude> |
Revision as of 17:59, 6 September 2023
[[{{{1}}}]]

This template provides way to wrap content in double square brackets.
Examples:
- {{brackets|test}} produces: [[test]]
- {{brackets|test{{!}}more}} produces: [[test|more]]
- {{brackets|:ja:山本五十六}} produces: [[:ja:山本五十六]]
Function
Function
This template is a simple wrapper around the [[
and ]]
HTML entities that produce starting and ending double brackets, respectively.
Limitations
The template cannot output just the starting double bracket or just the ending double bracket. You will have to use either [[
or ]]
to achieve this.