Template:Bracket templates: Difference between revisions

From Bonkipedia
[[mw:]]>Shirayuki
(Replaced content with "{{Bracket templates}} [[Category:Workaround templates{{#translation:}}]]")
 
[[mw:]]>Baris6161TURK
No edit summary
Line 1: Line 1:
{{Bracket templates}}
<languages/>
<onlyinclude>'''[[:Category:Bracket templates|Bracket templates]]''' are useful when writing help pages, template documentation, or when writing wiki tables and parser functions.


[[Category:Workaround templates{{#translation:}}]]
{| class="wikitable" style="text-align: center;"
<includeonly>
|+ {{Navbar|Bracket templates|text=This table:|style=float: {{dir|{{PAGELANGUAGE}}|left|right}};}}
</includeonly>
! scope="col" rowspan="2" | type
! scope="col" colspan="3" | open
! scope="col" colspan="3" | close
|-
! scope="col" | input
! scope="col" | output
! scope="col" | documentation
! scope="col" | input
! scope="col" | output
! scope="col" | documentation
|-
! scope="row" | angle
| {{Tlx|^(}}
| <samp>{{#tag:nowiki|{{^(}}}}</samp>
| [[Template:^(/doc|doc]]
| {{Tlx|)^}}
| <samp>{{#tag:nowiki|{{)^}}}}</samp>
| [[Template:)^/doc|doc]]
|-
! scope="row" | curly
| {{Tlx|(}}
| <samp>{{#tag:nowiki|{{(}}}}</samp>
| [[Template:(/doc|doc]]
| {{Tlx|)}}
| <samp>{{#tag:nowiki|{{)}}}}</samp>
| [[Template:)/doc|doc]]
|-
! scope="row" | curly (2)
| {{Tlx|((}}
| <samp>{{#tag:nowiki|{{((}}}}</samp>
| [[Template:((/doc|doc]]
| {{Tlx|))}}
| <samp>{{#tag:nowiki|{{))}}}}</samp>
| [[Template:))/doc|doc]]
|-
! scope="row" | curly (3)
| colspan="6" {{n/a}}
|-
! scope="row" | square
| colspan="6" {{n/a}}
|-
! scope="row" | square (2)
| {{Tlx|!((}}
| <samp>{{#tag:nowiki|{{!((}}}}</samp>
| [[Template:!((/doc|doc]]
| {{Tlx|))!}}
| <samp>{{#tag:nowiki|{{))!}}}}</samp>
| [[Template:))!/doc|doc]]
|}</onlyinclude>
{{Documentation|{{translatable-doc}}}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->

Revision as of 13:19, 12 February 2022

Bracket templates are useful when writing help pages, template documentation, or when writing wiki tables and parser functions.

type open close
input output documentation input output documentation
angle {{^(}} < doc {{)^}} > doc
curly {{(}} { doc {{)}} } doc
curly (2) {{((}} {{ doc {{))}} }} doc
curly (3) N/A
square N/A
square (2) {{!((}} [[ doc {{))!}} ]] doc
Template documentation

Usage

See also