Template:Brackets: Difference between revisions

m 1 revision imported
m 1 revision imported: Templates and CSS files
 
(One intermediate revision by one other user 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|more}}</nowiki> produces: {{brackets|test|more}}
*<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>&amp;#91;&amp;#91;</code> and <code>&amp;#93;&amp;#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>&amp;#91;&amp;#91;</code> or <code>&amp;#93;&amp;#93;</code> to achieve this.


===See also===
===See also===