Template:Brackets: Difference between revisions
Jump to navigation
Jump to search
Wikipedia >ThadeusOfNazereth Rollback recent rev. by 177.190.180.163 (talk) to rev. 891454203 by Cydebot: rm content w no good reason or consensus (RedWarn) |
Richardpruen (talk | contribs) m 1 revision imported: Templates and CSS files |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
Examples: | Examples: | ||
*<nowiki>{{brackets|test}}</nowiki> produces: {{brackets|test}} | *<nowiki>{{brackets|test}}</nowiki> produces: {{brackets|test}} | ||
*<nowiki>{{brackets|test | *<nowiki>{{brackets|test{{!}}more}}</nowiki> produces: {{brackets|test{{!}}more}} | ||
*<nowiki>{{brackets|:ja:山本五十六}}</nowiki> produces: {{brackets|:ja:山本五十六}} | *<nowiki>{{brackets|:ja:山本五十六}}</nowiki> produces: {{brackets|:ja:山本五十六}} | ||
== Function == | |||
===Function=== | |||
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 === | |||
The template cannot output just the starting double bracket or just the ending double bracket. You will have to use either <code>&#91;&#91;</code> or <code>&#93;&#93;</code> to achieve this. | |||
===See also=== | ===See also=== | ||
Latest revision as of 17:23, 4 December 2022
[[{{{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.
See also
- {{Braces}} — to wrap content in double curly brackets
- {{Bracket}} — to wrap content in single square brackets