Jump to content

Help:Template cheatsheet: Difference between revisions

From pool
Content deleted Content added
No edit summary
No edit summary
Line 48: Line 48:
|
|
|<code><nowiki>{{braces|code=on/off |Templatename|item1|item2}}</nowiki></code>
|<code><nowiki>{{braces|code=on/off |Templatename|item1|item2}}</nowiki></code>
|<code><nowiki>{{braces|Templatename|item1|item2}}</nowiki></code>
|<code><nowiki>{{braces|Templatename}}</nowiki></code>
| {{((}}Templatename{{!}}item1{{!}}item2{{))}}
|{{braces|Templatename}}
|
|
|-
|-
|{{Tl|bracket}}
|{{Tl|bracket}}
|
|
|<code><nowiki>{{brackets|text}} or {{brackets|text|more}}</nowiki></code>
|<code><nowiki>{{bracket|text}}</nowiki></code>
|<code><nowiki>{{brackets|test}} </nowiki></code>
|<code><nowiki>{{bracket|test}} </nowiki></code>
|{{brackets|test}}
|{{bracket|test}}
|
|
|-
|-
|{{Tl|brackets}}
|{{Tl|brackets}}
|
|
|<code><nowiki>{{brackets|text}} or {{brackets|text|more}}</nowiki></code>
|
|<code><nowiki>{{brackets|test}} </nowiki></code>
|
|{{brackets|test|item}}
|
|
|
|}
|}

Revision as of 13:29, 31 October 2020

Character Substitution

Template Shortcut /

Alternative

Usage Example Rendered Description
{{eq}}
na
no parameters
{{eq}} = Escapes "=". Allows "=" to be used in unnamed template parameters.
{{!}}
na
no parameters
{{!}} | Escapes "|". Used to encode "|" within template parameters or wikitables.
{{'}} {{apostrophe}} no parameters The ''Iliad''{{'}}s vocabulary is archaic. The Iliad's vocabulary is archaic. Used to encode apostrophe to keep it separate from ('') wiki markup.
{{`}}
na
no parameters
... that '''[[Wikipedia:Bhutan|Bhutan]]'''{{`}}s capital is [[Wikipedia:Thimphu|Thimphu]]? ... that Bhutan's capital is Thimphu? Used to encode apostrophe to keep it separate from (''') wiki markup.
{{}} {{prime}} {{′|text}} or text{{′}}s ''{{′|f}}''(''{{′|x}}'') ≥ 0 f(x) ≥ 0 Used to encode prime symbol with leading space so it does not collide with a preceding italic character
{{braces}} {{braces|code=on/off |Templatename|item1|item2}} {{braces|Templatename}} {{Templatename}}
{{bracket}} {{bracket|text}} {{bracket|test}} [test]
{{brackets}} {{brackets|text}} or {{brackets|text|more}} {{brackets|test}} [[test]item]

Text Formatting

Template Shortcut /

Alternative

Usage Example Rendered Description
{{Highlight}} {{H}} {{H|text|colour|expiry}} some text with a {{H| highlighted | #00FF00 | 1 January 2099}} portion some text with a highlighted portion Colour and date are optional Parameters, if a date is added the text will not be highlighted after the date has passed
{{em}}
{{strong}}
{{clear}}