Jump to content

Help:Template cheatsheet: Difference between revisions

From pool
Content deleted Content added
No edit summary
Line 109: Line 109:
|
|
|
|
|<code><nowiki>{{!!}}</nowiki></code>
|{{tl|!!}}
|{{tl|!!}}
|{{!!}}
|
|
|-
|-
Line 118: Line 118:
|
|
|
|
|<code><nowiki>{{!(}}</nowiki></code>
|{{tl|!(}}
|{{tl|!(}}
|{{!(}}
|
|
|-
|-
Line 127: Line 127:
|
|
|
|
|<code><nowiki>{{)!}}</nowiki></code>
|{{tl|)!}}
|{{tl|)!}}
|{{)!}}
|
|
|-
|-
Line 136: Line 136:
|
|
|
|
|<code><nowiki>{{!((}}</nowiki></code>
|{{tl|!((}}
|{{tl|!((}}
|{{!((}}
|
|
|-
|-
Line 145: Line 145:
|
|
|
|
|<code><nowiki>{{))!}}</nowiki></code>
|{{tl|))!}}
|{{tl|))!}}
|{{))!}}
|
|
|-
|-
Line 154: Line 154:
|
|
|
|
|<code><nowiki>{{(}}</nowiki></code>
|{{tl|(}}
|{{tl|(}}
|{{(}}
|
|
|-
|-
Line 163: Line 163:
|
|
|
|
|<code><nowiki>{{)}}</nowiki></code>
|{{tl|)}}
|{{tl|)}}
|{{)}}
|
|
|-
|-
Line 172: Line 172:
|
|
|
|
|<code><nowiki>{{((}}</nowiki></code>
|{{tl|((}}
|{{tl|((}}
|{{((}}
|
|
|-
|-
Line 181: Line 181:
|
|
|
|
|<code><nowiki>{{))}}</nowiki></code>
|{{tl|))}}
|{{tl|))}}
|{{))}}
|
|
|-
|-
Line 190: Line 190:
|
|
|
|
|<code><nowiki>{{(((}}</nowiki></code>
|{{tl|(((}}
|{{tl|(((}}
|{{(((}}
|
|
|-
|-
Line 199: Line 199:
|
|
|
|
|<code><nowiki>{{)))}}</nowiki></code>
|{{tl|)))}}
|{{tl|)))}}
|{{)))}}
|
|
|}
|}

Revision as of 13:13, 2 November 2020

Character Substitution

Template Shortcut /

Alternative

HTML Entity Code Usage Example Rendered Description
Decimal Named
{{=}} {{eq}} &#61; &equals; no parameters {{eq}} = Escapes "=". Allows "=" to be used in unnamed template parameters.
{{!}} na ! &excl; no parameters {{!}} | Escapes "|". Used to encode "|" within template parameters or wikitables.
{{'}} {{apostrophe}} &#39; &apos; 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 &#96;
&grave; 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}} &#8242; &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]]
{{sp}} &#32; &nbsp; no parameters green{{sp}}and blue green and blue
{{colon}} &#58; &colon; no parameters {{colon}} :
{{!!}} &#124;&#124; {{!!}}
{{!(}} &#91; {{!(}} [
{{)!}} &#93; {{)!}} ]
{{!((}} &#91;&#91; {{!((}} [[
{{))!}} &#93;&#93; {{))!}} ]]
{{(}} &#123; {{(}} {
{{)}} &#125; {{)}}

| |- |{{((}} | |&#123;&#123; | | |{{((}} |{{ | |- |{{))}} | |&#125;&#125; | | |{{))}} |}} | |- |{{(((}} | |&#123;&#123;&#123; | | |{{(((}} |{{{ | |- |{{)))}} | |&#125;&#125;&#125; | | |{{)))}} |}}} | |}

Alignment

Template Shortcut /

Alternative

Usage Example Rendered Description
{{right}}
{{left}}
{{center}}
{{float}}
{{clear}}
{{align}}
{{stack}}


Text Size

Template Shortcut /

Alternative

Usage Example Rendered Description
{{small}}
{{smaller}}
{{resize}}
{{midsize}}
{{larger}}
{{big}}
{{large}}
{{huge}}
{{font}}

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
{{color}}
{{font color}}
{{font}}
{{em}}
{{strong}}
{{nowrap}}
{{pad}}

Lists

Template Shortcut /

Alternative

Usage Example Rendered Description
{{hlist}}
{{plainlist}}
{{cslist}}
{{flatlist}}
{{bulleted list}}
{{ordered list}}
{{unbulleted list}}
{{glossary}}
{{term}}
{{flowlist}}
{{columns-list}}
{{mset}}

HTML tag alternatives

Template Shortcut /

Alternative

HTML Tag Usage Example Rendered Description
{{pre}} <pre>...</pre>
{{pre2}} <pre>...</pre>
{{code}} <code>...</code>
{{kbd}} <kbd>...</kbd>
{{samp}} <samp>...</samp>
{{hr}} <hr />
{{break}} <br />
{{clear}} {{br}} <div style="clear: both;"></div>
{{abbr}} <abbr>...</abbr>
{{quote}} <blockquote>...</blockquote>
{{citation}} {{cite}} <cite>...</cite>
{{strikethrough}} {{strike}} <del>...</del>
{{underline}} {{under}} <u>...</u>
{{strong}} <strong>...</strong>
{{em}} <em>...</em>
{{dfn}} <dfn>...</dfn>
{{highlight}} {{h}} <mark>...</mark>
{{font}} <font>...</font>
{{center}} <center>...</center>
{{var}} <var>...</var>
{{sub}} <sub>...</sub>
{{sup}} <sup>...</sup>