Jump to content

Help:Template cheatsheet: Difference between revisions

From pool
Content deleted Content added
Line 1: Line 1:
==Character Substitution==
==HTCharacter Substitution==
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 260: Line 260:




==HTML tag alternatives ==
==HTML tag alternatives==
{| class="wikitable"
{| class="wikitable"
|+
|+
!Template
!Template
!HTML Tag
!Shortcut /
Alternative
!Usage
!Usage
!Example
!Example
Line 271: Line 270:
!Description
!Description
|-
|-
|{{Tl|right}}
|{{Tl|pre}}
|
|
|
|
Line 278: Line 277:
|
|
|-
|-
|{{Tl|left}}
|{{Tl|pre2}}
|
|
|
|
Line 285: Line 284:
|
|
|-
|-
|{{Tl|center}}
|{{Tl|code}}
|
|
|
|
Line 292: Line 291:
|
|
|-
|-
|{{Tl|float}}
|{{Tl|hr}}
|
|
|
|
|
|-
|{{Tl|break}}
|
|
|
|
Line 306: Line 312:
|
|
|-
|-
|{{Tl|align}}
|{{Tl|abbr}}
|
|
|
|
Line 313: Line 319:
|
|
|-
|-
|{{Tl|stack}}
|{{Tl|quote}}
|
|
|
|
|
|-
|
|
|
|
|

Revision as of 09:13, 1 November 2020

HTCharacter Substitution

Template Shortcut /

Alternative

Usage Example Rendered Description
{{=}} {{eq}} 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]]

Alignment

Template Shortcut /

Alternative

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


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}}
{{nowrap}}
{{pad}}


Lists

Template Shortcut /

Alternative

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


HTML tag alternatives

Template HTML Tag Usage Example Rendered Description
{{pre}}
{{pre2}}
{{code}}
{{hr}}
{{break}}
{{clear}}
{{abbr}}
{{quote}}