Template:Brackets: Difference between revisions
Jump to navigation
Jump to search
Template documentation
(rm links) |
(r links) |
||
Line 4: | Line 4: | ||
| content = | | content = | ||
This template provides way to wrap content in double | This template provides way to wrap content in double square brackets. | ||
Examples: | Examples: | ||
Line 13: | Line 13: | ||
== Function == | == Function == | ||
===Function=== | ===Function=== | ||
This template is a simple wrapper around the <code>&#91;&#91;</code> and <code>&#93;&#93;</code> | This template is a simple wrapper around the <code>&#91;&#91;</code> and <code>&#93;&#93;</code> HTML entities that produce starting and ending double brackets, respectively. | ||
=== Limitations === | === Limitations === |
Latest revision as of 18:00, 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.