Jump to content

Help:Template cheatsheet: Difference between revisions

From pool
Content deleted Content added
No edit summary
 
(238 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{float center|{{Multi-column TOC|columns=4}} __TOC__ }}
{{vpad}}

{{Notice|This page is currently a work-in-progress. Click on the template links for additional documentation on each template}}
{{vpad}}

==Character Substitution==
==Character Substitution==
{| class="wikitable"
{| class="wikitable"
|+
|+
!Template
! rowspan="2" |Template
!Shortcut /
! rowspan="2" |Shortcut /
Alternative
Alternative
! colspan="2" |HTML Entity Code
!HTML
! rowspan="2" |Usage
character code
! rowspan="2" |Example
!Usage
! rowspan="2" |Rendered
!Example
! rowspan="2" |Description
!Rendered
|-
!Description
!Decimal
!Named
|-
|-
|{{Tl|=}}
|{{Tl|=}}
|{{Tl|eq}}
|{{Tl|eq}}
|=
|=
|<code><s>&amp;equals;</s></code>
|{{smallcaps|no parameters}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>{{eq}}</nowiki></code>
|<code><nowiki>{{eq}}</nowiki></code>
|{{eq}}
|{{eq}}
Line 23: Line 32:
|{{Smallcaps|na}}
|{{Smallcaps|na}}
|&amp;#124;
|&amp;#124;
|<s>&amp;excl;</s>
||{{smallcaps|no parameters}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>{{!}}</nowiki></code>
|<code><nowiki>{{!}}</nowiki></code>
|<nowiki>|</nowiki>
|<nowiki>|</nowiki>
Line 31: Line 41:
|{{Tl|apostrophe}}
|{{Tl|apostrophe}}
|&amp;#39;
|&amp;#39;
|&amp;apos;
|{{smallcaps|no parameters}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>The ''Iliad''{{'}}s vocabulary is archaic.</nowiki></code>
|<code><nowiki>The ''Iliad''{{'}}s vocabulary is archaic.</nowiki></code>
|The ''Iliad''{{'}}s vocabulary is archaic.
|The ''Iliad''{{'}}s vocabulary is archaic.
Line 39: Line 50:
|{{Smallcaps|na}}
|{{Smallcaps|na}}
|&amp;#96;<br />
|&amp;#96;<br />
|<s>&amp;grave;</s>
|{{smallcaps|no parameters}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>... that '''[[Wikipedia:Bhutan|Bhutan]]'''{{`}}s capital is [[Wikipedia:Thimphu|Thimphu]]?</nowiki></code>
|<code><nowiki>... that '''[[Wikipedia:Bhutan|Bhutan]]'''{{`}}s capital is [[Wikipedia:Thimphu|Thimphu]]?</nowiki></code>
|... that '''[[Wikipedia:Bhutan|Bhutan]]'''{{`}}s capital is [[Wikipedia:Thimphu|Thimphu]]?
|... that '''[[Wikipedia:Bhutan|Bhutan]]'''{{`}}s capital is [[Wikipedia:Thimphu|Thimphu]]?
Line 47: Line 59:
|{{Tl|prime}}
|{{Tl|prime}}
|&amp;#8242;
|&amp;#8242;
|&amp;prime;
|<code><nowiki>{{′|text}}</nowiki></code> or <code><nowiki>text{{′}}s</nowiki></code>
|<code><nowiki>{{′|text}}</nowiki></code> or <code><nowiki>text{{′}}s</nowiki></code>
|<code><nowiki>''{{′|f}}''(''{{′|x}}'') ≥ 0</nowiki></code>
|<code><nowiki>''{{′|f}}''(''{{′|x}}'') ≥ 0</nowiki></code>
Line 53: Line 66:
|-
|-
|{{Tl|braces}}
|{{Tl|braces}}
|
|
|
|
|
Line 61: Line 75:
|-
|-
|{{Tl|bracket}}
|{{Tl|bracket}}
|
|
|
|
|
Line 69: Line 84:
|-
|-
|{{Tl|brackets}}
|{{Tl|brackets}}
|
|
|
|
|
Line 79: Line 95:
|
|
|&amp;#32;
|&amp;#32;
|&amp;nbsp;
|{{smallcaps|no parameters}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>green{{sp}}and blue </nowiki></code>
|<code><nowiki>green{{sp}}and blue </nowiki></code>
|green{{sp}}and blue
|green{{sp}}and blue
Line 87: Line 104:
|
|
|&amp;#58;
|&amp;#58;
|&amp;colon;
|{{smallcaps|no parameters}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>{{colon}}</nowiki></code>
|<code><nowiki>{{colon}}</nowiki></code>
|{{colon}}
|{{colon}}
Line 94: Line 112:
|{{tl|!!}}
|{{tl|!!}}
|
|
|&#x26;#124;&#x26;#124;
|&amp;#124;&amp;#124;
|
|
|
|
|
|<code><nowiki>{{!!}}</nowiki></code>
|<nowiki>||</nowiki>
|
|
|-
|-
Line 105: Line 124:
|
|
|
|
|<code><nowiki>{{!(}}</nowiki></code>
|
|[
|
|
|-
|-
Line 113: Line 133:
|
|
|
|
|<code><nowiki>{{)!}}</nowiki></code>
|
|]
|
|
|-
|-
Line 121: Line 142:
|
|
|
|
|<code><nowiki>{{!((}}</nowiki></code>
|
|[[
|
|
|-
|-
Line 129: Line 151:
|
|
|
|
|<code><nowiki>{{))!}}</nowiki></code>
|
|]]
|
|
|-
|-
Line 137: Line 160:
|
|
|
|
|<code><nowiki>{{(}}</nowiki></code>
|
|<nowiki>{</nowiki>
|
|
|-
|-
Line 145: Line 169:
|
|
|
|
|<code><nowiki>{{)}}</nowiki></code>
|
|<nowiki>}</nowiki>
|
|
|-
|-
Line 153: Line 178:
|
|
|
|
|<code><nowiki>{{((}}</nowiki></code>
|
|<nowiki>{{</nowiki>
|
|
|-
|-
Line 161: Line 187:
|
|
|
|
|<code><nowiki>{{))}}</nowiki></code>
|
|<nowiki>}}</nowiki>
|
|
|-
|-
Line 169: Line 196:
|
|
|
|
|<code><nowiki>{{(((}}</nowiki></code>
|
|<nowiki>{{{</nowiki>
|
|
|-
|-
Line 177: Line 205:
|
|
|
|
|<code><nowiki>{{)))}}</nowiki></code>
|<nowiki>}}}</nowiki>
|
|
|}


== Inline Infoboxes ==
{{markupv
|t=Note |m=<nowiki>{{Note|Don't do that, do this..}}</nowiki>|r={{Note|Don't do that, do this..}}
}}{{markupv
|m=<nowiki>{{Note|Don't do that, do this..|reminder-yellow}}</nowiki>|r={{Note|Don't do that, do this..|reminder-yellow}}
}}
{{markupv
|t=Tip |m=<nowiki>{{Tip|Plug the FC Link into the Port Labelled 1A}}</nowiki>|r={{Tip|Plug the FC Link into the Port Labelled 1A}}
}}
{{markupv
|t=Info |m=<nowiki>{{Info|It is helpful to know that ...}}</nowiki>|r={{Info|It is helpful to know that ...}}
}}
{{markupv
|m=<nowiki>{{Info|It is helpful to know that ...|info-blue}}</nowiki>|r={{Info|It is helpful to know that ...|info-blue}}
}}
{{markupv
|t=Warning |m=<nowiki>{{Warning|The CPU die is likely to be very-hot, allow to cool before handling!}}</nowiki>|r={{Warning|The CPU die is likely to be very-hot, allow to cool before handling!}}
}}
{{markupv
|t=Caution |m=<nowiki>{{Caution|Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues}}</nowiki>|r={{Caution|Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues}}
}}
{{markupv
|m=<nowiki>{{Caution|Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues|caution-red}}</nowiki>|r={{Caution|Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues|caution-red}}
}}
{{markupv
|t=Escalate |m=<nowiki>{{Escalate|a Principle-Engineer}}</nowiki>|r={{Escalate|a Principle-Engineer}}
}}
{{markupv
|m=<nowiki>{{Escalate|Engineering via L3}}</nowiki>|r={{Escalate|Engineering via L3}}
}}


== Code Markup ==
{{Note|For most use cases the tags {{tag|code}}, {{tag|pre}} and {{tag|syntaxhighlight}} are best, these templates have been created for specific use cases. See [[Help:Script Samples|Script Samples]] for examples}}
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|key press}}
|
|
|<code><nowiki>{{key press| 1st key | 2nd Key | 3rd Key | chain= }}</nowiki></code>
|<code><nowiki>{{key press|Ctrl|Alt|Del}}</nowiki></code>
|{{key press|Ctrl|Alt|Del}}
|Illustrates keys and keystrokes on a computer keyboard.
|-
|{{Tl|code}}
|
|<code><nowiki>{{code|lang= |1=short snippet of code}}</nowiki></code>
|<code><nowiki>{{code|lang=html|1=<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>}}</nowiki></code>
|{{code|lang=html|1=<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>}}
|Wraps a short span of text in <nowiki><syntaxhighlight></nowiki> tags
|-
|{{Tl|pre}}
|
| <code><nowiki>{{pre|width= |space = nowrap, pre, pre-wrap | some lines of code}}</nowiki></code>
| <code><nowiki>{{pre|width=100px | some '''lines''' of code}}</nowiki></code>
| {{pre|width=100px | some '''lines''' of code}}
| Allows wiki and html markup inside the pre tags
|-
|{{Tl|pre2}}
|
|<code><nowiki>{{Pre2|scroll| style= | some lines of code }} </nowiki></code>
|<code><nowiki>{{Pre2|scroll|Text to be displayed. And more and more and more... and an empty line

And then more and more...}}</nowiki></code>
|<div style="width: 300px;">{{Pre2|scroll|Text to be displayed. And more and more and more and more and more and more and more and more and more and more... and an empty line

And then more and more...}}</div>
| Adds horizontal scrollbox to pre tags
|-
|{{Tl|tag}}
|
|<code><nowiki>{{tag| 1=<tag name> |attribs= |content= |wrap= |link=}}</nowiki></code>
|<code><nowiki>|{{tag|ref|attribs=group="note"|content=Hello}}</nowiki></code>
|{{tag|ref|attribs=group="note"|content=Hello}}
| Used in help pages to describe HTML tags
|-
|{{Tl|syntaxhighlight}}
| {{tl|sxhl}}
|<code><nowiki>{{sxhl|lang= | some lines of code }} </nowiki></code>
|<code><nowiki>{{sxhl|lang=html|1=<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>}}</nowiki></code>
|<div style="width: 300px;">{{sxhl|lang=html|1=<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>}}</div>
| Unlike <nowiki><syntaxhighlight></nowiki>, text that does not fit will be wrapped.
|}
|}


==Alignment==
== Symbols ==
{{see also|help:math}}
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 192: Line 314:
!Description
!Description
|-
|-
|{{Tl|right}}
|{{Tl|key press}}
|
|
|<code><nowiki>{{key press| 1st key | 2nd Key | 3rd Key | chain= }}</nowiki></code>
|<code><nowiki>{{key press|Alt|0}}{{key press|1|7|7|chain=}}</nowiki></code>
|{{key press|Alt|0}}{{key press|1|7|7|chain=}}
|Illustrates keys and keystrokes on a computer keyboard.
|-
|{{Tl|unichar}}
|
|
|
|
|<code><nowiki>|{{unichar|a9|COPYRIGHT SIGN}} for intellectual property</code></nowiki>
|{{unichar|a9|COPYRIGHT SIGN}} for intellectual property
|
|
|-
|{{Tl|radic}}
|
|<code><nowiki>{{radic| root | power }}</nowiki></code>
|<code><nowiki>{{radic|1 + 2''x''|4}}</nowiki></code>
|{{radic|1 + 2''x''|4}}
|
|
|-
|-
|{{Tl|left}}
|{{Tl|frac}}
|
|
|<code><nowiki>{{frac| integer | numerator | denominator }}</nowiki></code>
|<code><nowiki>{{frac|1|2|3}}</nowiki></code>
|{{frac|1|2|3}}
|
|
|-
|{{Tl|sfrac}}
|
|
|<code><nowiki>{{sfrac| integer | numerator | denominator }}</nowiki></code>
|<code><nowiki>{{sfrac|1|2|3}}</nowiki></code>
|{{sfrac|1|2|3}}
|
|
|-
|{{Tl|pars}}
|
|<code><nowiki>{{pars| s=size | text }}</nowiki></code>
|<code><nowiki>{{pars|s=200%|Content-inside-parentheses}} </nowiki></code>
|{{pars|s=200%|Content-inside-parentheses}}
|
|
|-
|-
|{{Tl|center}}
|{{Tl|vec}}
|
|
|<code><nowiki>{{vec|''A''| left/right | under/over }}</nowiki></code>
|<code><nowiki>{{vec|''A''|left|under}}</nowiki></code>
|{{vec|''A''|left|under}}
|
|
|-
|{{Tl|dot}}
|
|
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>{{dot}}</nowiki></code>
|{{dot}}
|
|
|-
|{{Tl|Spaced en dash}}
|{{Tl|dash}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>{{dash}}</nowiki></code>
|{{dash}}
|
|-
|{{Tl|em dash}}
|{{Tl|emdash}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>{{emdash}}</nowiki></code>
|{{emdash}}
|
|}

== Calculation ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|convert}}
|
|<code><nowiki>{{convert|number|unit|unit}}</nowiki></code>
|<code><nowiki>MX7000 chassis weights{{convert|1|lb|kg}}</nowiki></code>
|MX7000 chassis weights{{convert|180|lb|kg}}
|Displays inline conversion between different unit types
|-
|{{nowraplinks|{{Tl|number table sorting}}}}
|{{tl|nts}}
|<code><nowiki>{{nts|number|prefix= |format= }}</nowiki></code>
|<code><nowiki>{{nts|123456789.00123|prefix=approx.&nbsp;}}</nowiki></code>
|{{nts|123456789.00123|prefix=approx.&nbsp;}}
|allows numbers to be prefixed but still sort numberically
|-
|{{Tl|str right}}
|
|<code><nowiki>{{str right|<string>|<offset>}}</nowiki></code>
|<code><nowiki>{{str right |Lorem ipsum dolor sit amet |10}}</nowiki></code>
|{{str right |Lorem ipsum dolor sit amet |10}}
|Returns a substring of characters from the end of a trimmed string.
|-
|{{Tl|str left}}
|
|<code><nowiki>{{str left|<string>|<offset>}}</nowiki></code>
|<code><nowiki>{{str left |Lorem ipsum dolor sit amet |10}}</nowiki></code>
|{{str left |Lorem ipsum dolor sit amet |10}}
|A substring of characters from the start of the trimmed string
|-
|{{Tl|age}}
|
|<code><nowiki>{{age|date}}</nowiki></code>
|<code><nowiki>If Einstein was alive he would be {{age|March 14 1879}} years old</nowiki></code>
|If Einstein was alive he would be {{age|March 14 1879}} years old
|
|-
|{{Tl|Birth date and age}}
|{{Tl|bda}}
|<code><nowiki>{{Birth date and age|date}}</nowiki></code>
|<code><nowiki>Elon Reeve Musk born {{bda|June 28 1971}}</nowiki></code>
|Elon Reeve Musk born {{bda|June 28 1971}}
|
|-
|{{Tl|Gregorian serial date}}
|{{Tl|gsd}}
|<code><nowiki>{{Gregorian serial date|date}}</nowiki></code>
|<code><nowiki>{{gsd|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</nowiki></code>
|{{gsd|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|Number of days since Monday 1st of january 1 AD
|-
|{{Tl|coord}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}

== Images ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|panorama}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|wide image}}
|
|<code><nowiki>{{Wide image|name|image width|caption|box width|alignment|alt=alt text |dir=rtl |align-cap= }}</nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|tall image}}
|
|<code><nowiki>{{Tall image|name|image width|box height|alt=alt text|caption|alignment}}</nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|legend}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}


== Quotes ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|poem}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|quote}}
|{{Tl|blockquote}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|quote box}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|quote frame}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|tweet}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}

== TOC ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|TOC left}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|TOC right}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|TOC center}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|TOC limit}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|TOC hidden}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Headless TOC}}
|{{Tl|TOC tab}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Horizontal TOC}}
|{{Tl|TOC horizontal}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Category TOC}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Multi-column TOC}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|TOC bottom}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|TOC top}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}

== Layout ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|right}}
|
|<code><nowiki>{{right|text}}</nowiki></code>
|<code><nowiki>{{right|floating right}}</nowiki></code>
|{{right|floating right}}
|
|-
|{{Tl|left}}
|
|<code><nowiki>{{left|text}}</nowiki></code>
|<code><nowiki>{{left|floating left}}</nowiki></code>
|{{left|floating left}}
|
|-
|{{Tl|center}}
|
|<code><nowiki>{{center|text}}</nowiki></code>
|<code><nowiki>{{center|floating center}}</nowiki></code>
|{{center|floating center}}
|
|-
|{{Tl|center block}}
|
|<code><nowiki>{{center block| width= | height= | text}}</nowiki></code>
|{{smallcaps|see template documentation}}
|{{smallcaps|not helpful to render here}}
|
|
|-
|-
|{{Tl|float}}
|{{Tl|float}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|float left}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|clear}}
|{{Tl|float right}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|float center}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|align}}
|{{Tl|clear}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|align}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
Line 236: Line 713:
|{{Tl|stack}}
|{{Tl|stack}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|indent}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|outdent}}
|{{Tl|out}} {{Tl|od}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|raise}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lower}}
|{{Tl|out}} {{Tl|od}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|wide template}}
|{{Tl|out}} {{Tl|od}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
Line 243: Line 755:




==Text Size==
== Hidden Areas ==
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 254: Line 766:
!Description
!Description
|-
|-
|{{Tl|small}}
|{{Tl|collapse}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|collapse top}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|smaller}}
|{{Tl|collapse bottom}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|reveal}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|resize}}
|{{Tl|hidden}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|hidden begin}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|midsize}}
|{{Tl|hidden end}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|}

== Text ==
=== Inline Spacing ===
{| class="wikitable"
|+
! rowspan=2 |Template
! rowspan=2 |Shortcut /
Alternative
! colspan=2 |HTML Entity Code
! rowspan=2 |{{Bordered arrows|Size}}
! rowspan=2 |Usage
! rowspan=2 |Example
! rowspan=2 |Rendered
! rowspan=2 |Description
|-
!Decimal
!Named
|-
! colspan=9 {{left}} Non-Breaking Space characters
|-
|{{Tl|zero width joiner}}
|{{Tl|zwj}}
| {{center}} &amp;#8205;
| {{center}} &amp;zwj;
|{{Bordered arrows|{{zero width joiner}}}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>''A zero width joiner''{{zero width joiner}}{{fake citation needed}}</nowiki></code>
|''A zero width joiner''{{zero width joiner}}{{fake citation needed}}
| Invisibly 'sews together' two words as if they were a single word
|-
|{{Tl|hair space}}
|{{Tl|hsp}} {{Tl|hairsp}} {{Tl|px1}}
| {{center}} &amp;#8202;
| {{center}} &amp;hairsp;
|{{Bordered arrows|{{hair space}}}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>''A hair space''{{hsp}}{{fake citation needed}}</nowiki></code>
|''A hair space''{{hsp}}{{fake citation needed}}
| 1 pixel width non-breaking space
|-
|{{Tl|narrow no-break space}}
|{{Tl|nnbsp}} {{Tl|NNBSP}} {{Tl|8239}}
| {{center}} &amp;#8239;
| {{center}} {{smallcaps|na}}
|{{Bordered arrows|{{narrow no-break space}}}}
|<code><nowiki>{{nnbsp|symbol}}</nowiki></code>
|<code><nowiki>wedding cost US${{nnbsp}}2,000,000.</nowiki></code>
|wedding cost US${{nnbsp}}2,000,000.
| Narrow non-breaking space
|-
|{{Tl|thin space}}
| {{Tl|tsp}}
| {{center}} &amp;#8201;
| {{center}} &amp;thinsp;
|{{Bordered arrows|{{thin space}}}}
|<code><nowiki>{{thin space|symbol}}</nowiki></code>
|<code><nowiki>({{thin space|symbol}}) instead of: (symbol)</nowiki></code>
|({{thin space|symbol}}) instead of: (symbol)
|A thin non-breaking space 1/5 of an em
|-
|{{Tl|spaces}}
|{{Tl|space}} {{Tl|nbsp}}
| colspan=2 {{center}} {{smallcaps|varies}}
|{{Bordered arrows|{{spaces}}}}
|<code><nowiki>{{spaces|number off|type}}</nowiki></code>
|<code><nowiki>text{{spaces|2|em}}text</nowiki></code>
|text{{spaces|2|em}}text
|Used to display one or more non-breaking spaces of specified type
|-
|{{Tl|figure space}}
|{{Tl|fs}} {{Tl|fsp}}
| {{center}} &amp;#8199;
| {{center}} &amp;numsp;
|{{Bordered arrows|{{figure space}}}}
|<code><nowiki>{{Figure space|number off}}</nowiki></code>
|<code><nowiki>123{{br}}1{{fsp}}3</nowiki></code>
|123{{br}}1{{fsp}}3
| A non-breaking space equal in width to a digit
|-
|{{Tl|ns}}
|
|
| {{center}} &amp;#160;
| {{center}} &amp;nbsp;
|{{Bordered arrows|{{ns}}}}
|<code><nowiki>{{ns|number off}}</nowiki></code>
|<code><nowiki>Ten{{ns|10}}eight{{ns|8}}six{{ns|6}}four{{ns|4}}!</nowiki></code>
|Ten{{ns|10}}eight{{ns|8}}six{{ns|6}}four{{ns|4}}!
| Without any parameters inserts 3 non-breaking spaces
|-
|{{Tl|quad}}
|
|
| {{center}} &amp;#160;
| {{center}} &amp;nbsp;
|{{Bordered arrows|{{quad}}}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>text{{quad}}text</nowiki></code>
|text{{quad}}text
|Inserts 4 non-breaking spaces
|-
|-
|{{Tl|larger}}
|{{Tl|nb5}}
|
|
| {{center}} &amp;#160;
| {{center}} &amp;nbsp;
|{{Bordered arrows|{{nb5}}}}
|<code><nowiki>{{nb5|number of spaces}}</nowiki></code>
|<code><nowiki>text{{nb5}}text</nowiki></code>
|text{{nb5}}text
|Inserts 5 non-breaking spaces
|-
|{{Tl|nb10}}
|
|
| {{center}} &amp;#160;
| {{center}} &amp;nbsp;
|{{Bordered arrows|{{nb10}}}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>text{{nb10}}text</nowiki></code>
|text{{nb10}}text
|Inserts 10 non-breaking spaces
|-
! colspan=9 {{left}} Breaking Space characters
|-
|{{Tl|zero width space}}
|{{Tl|zwsp}} {{Tl|0ws}}
| colspan=2 {{center}} &amp;#8203; {{br}} &amp;ZeroWidthSpace;
|{{Bordered arrows|{{zero width space}}}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>ribulosebisphosphate{{0ws}}carboxylaseoxygenase</nowiki></code>
|ribulosebisphosphate{{0ws}}carboxylaseoxygenase
|Used to indicate where very large words will break if necessary
|-
|{{Tl|sp}}
|
|
| {{center}} &amp;#32;
| {{center}} {{smallcaps|na}}
|{{Bordered arrows|{{sp}}}}
|<code><nowiki></nowiki></code>
|<code><nowiki>I like green{{#if:{{{blue|}}}|{{sp}}and blue|{{sp}}but not blue}}</nowiki></code>
| I like green{{#if:{{{blue|}}}|{{sp}}and blue|{{sp}}but not blue}}
|Most common space entity, typically used in passing template parameters
|-
! colspan=9 {{left}} Non-characters spaces
|-
|{{Tl|px2}}
|
|
| colspan=2 {{center}} {{smallcaps|na}}
|{{Bordered arrows|{{px2}}}}
| {{center}} {{smallcaps|no parameters}}
|<code><nowiki>''Two pixel gap''{{px2}}{{fake citation needed}}</nowiki></code>
|''Two pixel gap''{{px2}}{{fake citation needed}}
|Adds 2px of horizontal space
|-
|{{Tl|gaps}}
|
|
| colspan=2 {{center}} {{smallcaps|na}}
|<code style="border:0.1px solid blue; background-color:lightgray">→</code><span style="visibility:hidden; color:transparent; padding-left:0.25em"></span><code style="border:0.1px solid blue; background-color:lightgray">←</code>
|<code><nowiki>{{gaps|lhs=prefix|num|num|num|u=suffix}}</nowiki></code>
|<code><nowiki>{{gaps|lhs=π|3.14159|26535|89793|...}}</nowiki></code>{{br}}<code><nowiki>{{gaps|299|792|458|u=m/s}}</nowiki></code>
|{{gaps|lhs=π|3.14159|26535|89793|...}}{{br}}{{gaps|299|792|458|u=m/s}}
|Outputs its unnamed arguments in order with gaps of 0.25em between
|-
|-
|{{Tl|big}}
|{{Tl|pad}}
|
|
| colspan=2 {{center}} {{smallcaps|na}}
|{{Bordered arrows|{{pad}}}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{Tl|in5}}
|
| colspan=2 {{center}} {{smallcaps|na}}
|{{Bordered arrows|{{in5}}}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|large}}
|{{Tl|vpad}}
|
|
| colspan=2 {{center}} {{smallcaps|na}}
|
|
|<code><nowiki>{{vpad |1= |clear= }}</nowiki></code>
|<code><nowiki>__{{br}}{{vpad|1=1em|clear=left}}__</nowiki></code>
|__{{br}}{{vpad|1=1em|clear=left}}__
|Creates an invisible div of user-specified height for padding.
|-
|{{Tl|indent}}
|
|
| colspan=2 {{center}} {{smallcaps|na}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|huge}}
|{{Tl|outdent}}
|{{Tl|out}} {{Tl|od}}
| colspan=2 {{center}} {{smallcaps|na}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|}


{{Template:Space comparison}}

=== Size ===
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|small}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|smaller}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|resize}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|midsize}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|larger}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|big}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|large}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|huge}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
Line 312: Line 1,093:
|{{Tl|font}}
|{{Tl|font}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|}

=== Direction ===
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|transform-rotate}}
|
|
|<syntaxhighlight lang=html inline=1><span style="{{Transform-rotate|angle}}">rotated text</span></syntaxhighlight>
|<syntaxhighlight lang=html inline=1><span style="{{Transform-rotate|90}}">5</span></syntaxhighlight>
|<span style="{{Transform-rotate|90}}">5</span>
|Shorthanded CSS code for rotating elements inside style attribute.
|-
|{{Tl|writing-mode}}
|
|<syntaxhighlight lang=html inline=1><div style="{{writing-mode| direction }}">transformed text</div></syntaxhighlight>
|<syntaxhighlight lang=html inline=1><div style="{{writing-mode|v1}}">Lorem ipsum...</div></syntaxhighlight>
|<div style="{{writing-mode|v1}}">Lorem ipsum...</div>
|Shortcut for adding writing mode property using CSS
|-
|{{Tl|transform}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|mirrorH}}
|
| {{center}} {{smallcaps|no parameters}}
|<syntaxhighlight lang=html inline=1>A B <span style="{{mirrorH}}">C</span> D</syntaxhighlight>
|A B <span style="{{mirrorH}}">C</span> D
|Shorthanded CSS code for horizontally mirroring elements inside style attribute
|-
|{{Tl|mirrorV}}
|
|
| {{center}} {{smallcaps|no parameters}}
|<syntaxhighlight lang=html inline=1><span style="{{mirrorV}}">A</span> B C D</syntaxhighlight>
|<span style="{{mirrorV}}">A</span> B C D
|Shorthanded CSS code for vertically mirroring elements inside style attribute
|}
|}


==Text Formatting==
=== Emphasis ===
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 329: Line 1,157:
!Description
!Description
|-
|-
|{{Tl|highlight}}
|{{tl|highlight}}
|{{Tl|h}}
|{{tl|h}}
|<code><nowiki>{{H|text|colour|expiry}}</nowiki></code>
|<code><nowiki>{{H|text|colour|expiry}}</nowiki></code>
|<code><nowiki>some text with a {{H| highlighted | #00FF00 | 1 January 2099}} portion</nowiki></code>
|<code><nowiki>some text with a {{H| highlighted | #00FF00 | 1 January 2099}} portion</nowiki></code>
Line 338: Line 1,166:
|{{Tl|color}}
|{{Tl|color}}
|
|
|<code><nowiki>{{color|color or hex code|Text}}</nowiki></code>
|<code><nowiki>{{color|red|'''Hello, world!'''}}</nowiki></code>
|{{color|red|'''Hello, world!'''}}
|Changes text to specified color
|-
|{{Tl|font color}}
|
|
|<code><nowiki>{{font color | text color | background color | text }}</nowiki></code>
|<code><nowiki>{{font color|yellow|purple|text with four words}}</nowiki></code>
|{{font color|yellow|purple|text with four words}}
|Changes text and background to specified colours
|-
|{{Tl|font}}
|
|
|<code><nowiki>{{font|text= |font= |size= |color= |bgcolor= |css= }}</nowiki></code>
|<code><nowiki>{{font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}}</nowiki></code>
|{{font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}}
| Allows changing font, size, colour and background colour of text
|-
|{{Tl|em}}
|
|
|<code><nowiki>{{em|text to be emphasized}}</nowiki></code>
|<code><nowiki>Contrary to reports, she was {{em|not}} dead after all.</nowiki></code>
|Contrary to reports, she was {{em|not}} dead after all.
|Applies semantic {{tag|em}} emphasis markup as apposed to <code><nowiki>''...''</nowiki></code> typographic italicizations. This conveys meaning not just visible appearance and is used by screen readers.
|-
|{{Tl|strong}}
|
|
|<code><nowiki>{{strong|important text}}</nowiki></code>
|<code><nowiki>"The {{strong|soma}}, or {{strong|perikaryon}}, or {{strong|cyton}}, is the bulbous end of a neuron."</nowiki></code>
|"The {{strong|soma}}, or {{strong|perikaryon}}, or {{strong|cyton}}, is the bulbous end of a neuron."
|Applies semantic {{tag|strong}} emphasis markup as apposed to <code><nowiki>'''...'''</nowiki></code> typographic italicizations
|-
|-
|{{Tl|font color}}
|{{tl|yesitalic}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{tl|noitalic}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|font}}
|{{tl|nocaps}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|{{tl|nobold}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|-
|{{Tl|em}}
|{{tl|smallcaps}}
|
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
|-
|}

=== Formatting ===
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|hover title}}
|
|
|<code><nowiki>{{Hover title|text|hover text|link=yes/no|dotted=yes/no}}</nowiki></code>
|<code><nowiki>{{Hover title|Hello|example}}</nowiki></code>
|{{Hover title|Hello|example}}
|
|
|-
|-
|{{Tl|strong}}
|{{Tl|nowrap}}
|
|
|
|
Line 371: Line 1,261:
|
|
|-
|-
|{{Tl|nowrap}}
|{{Tl|nowraplinks}}
|
|
|
|
Line 382: Line 1,272:
|
|
|
|
|
|
|}

=== superscript and subscript ===
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|sup}}
|
|<code><nowiki>text{{sup|superscript}}</nowiki></code>
|<code><nowiki>text{{sup|superscript}} {{sup|superscript}}text</nowiki></code>
|text{{sup|superscript}}{{spaces|4}}{{sup|superscript}}text
|
|-
|{{Tl|smallsup}}
|{{Tl|ssup}}
|<code><nowiki>text{{smallsup|small superscript}}</nowiki></code>
|<code><nowiki>text{{smallsup|small superscript}} {{smallsup|small superscript}}text</nowiki></code>
|text{{smallsup|small superscript}}{{spaces|4}}{{smallsup|small superscript}}text
|
|-
|{{Tl|i sup}}
|{{tl|issup}} {{tl|padlssup}}
|<code><nowiki>''text''{{i smallsup|small superscript}}</nowiki></code>
|<code><nowiki>''text''{{i smallsup|small superscript}} (rather than: ''text''{{sup|superscript}})</nowiki></code>
|''text''{{i smallsup|small superscript}}{{spaces|2}}({{smaller|rather than:}}&nbsp;''text''{{smallsup|small superscript}})
|
|-
|{{Tl|i smallsup}}
|{{tl|issup}} {{tl|padlssup}}
|<code><nowiki>''text''{{i smallsup|small superscript}}</nowiki></code>
|<code><nowiki>''text''{{i smallsup|small superscript}} (rather than: ''text''{{smallsup|small superscript}})</nowiki></code>
|''text''{{i smallsup|small superscript}}{{spaces|2}}({{smaller|rather than:}}&nbsp;''text''{{smallsup|small superscript}})
|
|-
|{{Tl|b sup}}
|{{Tl|bsup}}
|<code><nowiki>text{{b sup|superscript}}</nowiki></code>
|<code><nowiki>text{{b sup|superscript}} (rather than: text{{sup|superscript}})</nowiki></code>
|text{{b sup|superscript}}{{spaces|2}}({{smaller|rather than:}}&nbsp;text{{sup|superscript}})
|
|-
|{{Tl|sub}}
|
|<code><nowiki>text{{sub|subscript}}</nowiki></code>
|<code><nowiki>text{{sub|subscript}} {{sub|subscript}}text</nowiki></code>
|text{{sub|subscript}}{{spaces|4}}{{sub|subscript}}text
|
|-
|{{Tl|smallsub}}
|{{tl|ssub}}
|<code><nowiki>text{{smallsub|small subscript}}</nowiki></code>
|<code><nowiki>text{{smallsub|small subscript}} {{smallsub|small subscript}}text</nowiki></code>
|text{{smallsub|small subscript}} {{smallsub|small subscript}}text
|
|-
|{{Tl|subsub}}
|
|<code><nowiki>text{{subsub|double-subscripted}}</nowiki></code>
|<code><nowiki>text{{subsub|double-subscripted}} {{subsub|double-subscripted}}text</nowiki></code>
|text{{subsub|double-subscripted}}{{spaces|4}}{{subsub|double-subscripted}}text
|
|-
|{{Tl|su}}
|
|<code><nowiki>text{{su|p=superscript|b=subscript}}</nowiki></code>
|<code><nowiki>text{{su|p=p{{eq}}superscript|b=b{{eq}}subscript}} {{su|p=p{{eq}}superscript|b=b{{eq}}subscript}}text</nowiki></code>
|text{{su|p=p{{eq}};superscript|b=b{{eq}}subscript}}{{spaces|4}}{{su|p=p{{eq}}superscript|b=b{{eq}}subscript}}text
|
|-
|{{Tl|sup sub}}
|
|
|<code><nowiki>text{{sup sub|sup|sub}}{{spaces|4}}{{sup sub|sup|sub}}text</nowiki></code>
|text{{sup sub|sup|sub}}{{spaces|4}}{{sup sub|sup|sub}}text
|
|-
|{{Tl|±}}
|
|<code><nowiki>1.23{{±|superscript|subscript}}</nowiki></code>
|<code><nowiki>1.23{{±|4|2}}</nowiki></code>
|1.23{{±|4|2}}
|
|-
|{{Tl|overunderset}}
|{{Tl|underoverset}}
|<code><nowiki>{{overunderset|text|superscript|subscript}}</nowiki></code>
|<code><nowiki>{{overunderset|text|superscript|subscript}}</nowiki></code>
|{{overunderset|text|superscript|subscript}}
|
|-
|{{Tl|raise}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lower}}
|{{Tl|out}} {{Tl|od}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|
|
Line 447: Line 1,447:
|-
|-
|{{Tl|glossary}}
|{{Tl|glossary}}
|
|
|
|
|
|-
|{{Tl|term}}
|
|
|
|
Line 461: Line 1,468:
|-
|-
|{{Tl|columns-list}}
|{{Tl|columns-list}}
|
|
|
|
|
|-
|{{Tl|mset}}
|
|
|
|
Line 468: Line 1,482:
|}
|}


== Links ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|URL}}
|
|
|
|
|
|-
|{{Tl|URL2}}
|
|
|
|
|
|-
|{{Tl|plain link}}
|{{Tl|scp}} {{Tl|plk}}
|
|
|
|
|-
|{{Tl|plain}}
|{{Tl|pln}} {{Tl|pla}}
|
|
|
|
|-
|{{Tl|oldid}}
|{{Tl|permalink}}
|
|
|
|
|-
|{{Tl|oldid2}}
|
|
|
|
|
|-
|{{Tl|diff}}
|
|
|
|
|
|-
|{{Tl|history}}
|{{Tl|ph}}
|
|
|
|
|-
|{{Tl|pagelinks}}
|
|
|
|
|
|-
|{{Tl|page-multi}}
|
|
|
|
|
|-
|{{Tl|section link}}
|{{Tl|slink}} {{tl|§l}}
|
|
|
|
|-
|{{Tl|multi-section link}}
|{{Tl|mslink}}
|
|
|
|
|}


== Hatnotes ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|selfref}}
|
|
|
|
|
|-
|{{Tl|see also}}
|
|
|
|
|
|-
|{{Tl|about}}
|
|
|
|
|
|-
|{{Tl|redirect}}
|
|
|
|
|
|-
|{{Tl|redirect2}}
|
|
|
|
|
|-
|{{Tl|for}}
|
|
|
|
|
|-
|{{Tl|for2}}
|
|
|
|
|
|-
|{{Tl|main}}
|
|
|
|
|
|-
|{{Tl|further}}
|
|
|
|
|
|-
|{{Tl|redirect-distinguish}}
|
|
|
|
|
|}

== Tables ==
{{hidden begin|toggle=left|collapsetext="-"|expandtext="+"|title=Example tables}}
{{hidden begin|toggle=left|collapsetext="-"|expandtext="+"|title=Code}}
{{col-begin}}
{{col-break}}
<pre class="inline">
{{Aligned table
|cols=4 |class=wikitable sortable
|col1align=left |col2align=center
|col3align=right |col4align=right
|row1header=y
| caps left | alpha center | # right | num right
| AAA | aa | 123 | 12345
| C | ccc | 0123456 | 2
| B | bbbbb | 1234 | 2
}}
</pre>
{{col-break}}
<pre class="inline">
{|{{table|sort|class=floatright}}
! {{vert header|stp=1|Regular column}}
! {{vert header|stp=1|Vertical value column}}
! {{vert header|stp=1|nb=1|cellstyle=background-color:gold|Thin gold column}}
! {{vert header|nb=1|Unsortable column}}
|-
| 0 || {{vert header|va=middle|1}} || 1 || 2
|-
| 3 || {{vert header|va=middle|5}} || 8 || 13
|-
! {{vert header|va=top|Regular column}}
! {{vert header|va=top|Vertical value column}}
! {{vert header|nb=1|va=top|cellstyle=background-color:gold|Thin gold column}}
! {{vert header|nb=1|va=top|Unsortable column}}
|}
</pre>
{{col-end}}
{{hidden end}}
{{col-begin}}
{{col-break}}
{{Aligned table
|cols=4 |class=wikitable sortable
|col1align=left |col2align=center
|col3align=right |col4align=right
|row1header=y
| caps left | alpha center | # right | num right
| AAA | aa | 123 | 12345
| C | ccc | 0123456 | 2
| B | bbbbb | 1234 | 2
}}
{{col-break}}
{|{{table|sort|class=floatright}}
! {{vert header|stp=1|Regular column}}
! {{vert header|stp=1|Vertical value column}}
! {{vert header|stp=1|nb=1|cellstyle=background-color:gold|Thin gold column}}
! {{vert header|nb=1|Unsortable column}}
|-
| 0 || {{vert header|va=middle|1}} || 1 || 2
|-
| 3 || {{vert header|va=middle|5}} || 8 || 13
|-
! {{vert header|va=top|Regular column}}
! {{vert header|va=top|Vertical value column}}
! {{vert header|nb=1|va=top|cellstyle=background-color:gold|Thin gold column}}
! {{vert header|nb=1|va=top|Unsortable column}}
|}
{{col-end}}
{{hidden end}}

{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Expands to
!Description
|-
|{{Tl|table}}
|
|<code><nowiki>{{Table|param1|param2|param3|class=}}</nowiki></code>
|<code><nowiki>{|</nowiki>{{nbsp}}<nowiki>{{Table|hide|sort|class=floatright}}</nowiki></code>
|<code><nowiki>{|</nowiki>{{nbsp}}<nowiki>class="wikitable collapsible collapsed sortable floatright"</nowiki></code>
| Used to apply common CSS classes for tables
|-
|{{Tl|wikitable}}
|
|<code><nowiki>{{wikitable}}</nowiki></code>
|<pre>{{wikitable| class="wikitable"
!header|-
|row }}</pre>
|{{wikitable| class="wikitable"
!header|-
|row }}
| removes the need to escape every <code><nowiki>|</nowiki></code> and also <code><nowiki>=</nowiki></code> for {{tag|table|o}} element attributes
|-
|{{Tl|right}}
|
|<code><nowiki>{{right}}</nowiki></code>
|<code><nowiki>| {{Right}} text </nowiki></code>
|<code><nowiki>| style="text-align:right"| text </nowiki></code>
|
|-
|{{Tl|left}}
|
|<code><nowiki>{{left}}</nowiki></code>
|<code><nowiki>| {{left}} text </nowiki></code>
|<code><nowiki>| style="text-align:left"| text </nowiki></code>
|
|-
|{{Tl|center}}
|
|<code><nowiki>{{center}}</nowiki></code>
|<code><nowiki>| {{center}} text </nowiki></code>
|<code><nowiki>| style="text-align:center"| text </nowiki></code>
|
|-
|{{Tl|float right}}
|
|<code><nowiki>{{float right}}</nowiki></code>
|<code><nowiki>{| class="wikitable" {{float right}}</nowiki></code>
|<code><nowiki>{| class="wikitable" style="float: right; margin-left: 1em; clear: right;"</nowiki></code>
|
|-
|{{Tl|float left}}
|
|<code><nowiki>{{float left}}</nowiki></code>
|<code><nowiki>{| class="wikitable" {{float left}}</nowiki></code>
|<code><nowiki>{| class="wikitable" style="float: left; margin-right: 1em;"</nowiki></code>
|
|-
|{{Tl|float center}}
|
|<code><nowiki>{{float center}}</nowiki></code>
|<code><nowiki>{| class="wikitable" {{float center}}</nowiki></code>
|<code><nowiki>{| class="wikitable" style="margin-left: auto; margin-right: auto;"</nowiki></code>
|
|-
|{{Tl|Vertical Text}}
|
|<code><nowiki>|{{Vertical Text|long text}}</nowiki></code>
|<code><nowiki>{{Vertical Text|long text}}</nowiki></code>
|<code><nowiki><span style="writing-mode: vertical-lr; white-space: nowrap; min-width: 20px; transform: rotate(180deg); ">long text</span></nowiki></code>
|
|-
|{{nowraplinks|{{Tl|vertical header}}}}
|{{nowraplinks|{{Tl|vert header}} {{tl|Verth}}}}
|<code><nowiki>{{vert header|nb= |stp= |va= |mw= |style= |cellstyle=|Your text here}}</nowiki></code>
|<code><nowiki>{{vertical header|long text}}</nowiki></code>
|<code><nowiki><span style="writing-mode: vertical-lr; white-space: nowrap; min-width: 20px; transform: rotate(180deg); ">long text</span></nowiki></code>
|
|-
|{{Tl|Aligned table}}
|
|<code><nowiki>|{{Vertical Text|long text}}</nowiki></code>
|<code><nowiki>{{Vertical Text|long text}}</nowiki></code>
|<code><nowiki><span style="writing-mode: vertical-lr; white-space: nowrap; min-width: 20px; transform: rotate(180deg); ">long text</span></nowiki></code>
|
|-
|{{Tl|end}}
|
|<code><nowiki>{{end}}</nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}

== Columns ==
{{hidden begin|toggle=left|collapsetext="-"|expandtext="+"|title=Example columns}}{{hidden begin|toggle=left|collapsetext="-"|expandtext="+"|title=Code}}<pre>
{{col-begin}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Revenue by product
|-
! Widgets
| $25,000
|-
! Foos
| $65,500
|-
! Bars
| $28,000
|}
{{col-end}}
</pre>
{{hidden end}}
{{col-begin}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Revenue by product
|-
! Widgets
| $25,000
|-
! Foos
| $65,500
|-
! Bars
| $28,000
|}
{{col-end}}
{{hidden end}}

{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Expands to
!Description
|-
|{{Tl|columns}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|col-begin}}
|{{tl|C-s}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|col-begin-fixed}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|col-begin-small}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|col-float}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|columns-list}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|columns-start}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|flex columns}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|div col}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}

== Language ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|respell}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki>{{respell|prə|NUN|see|AY|shən}}</nowiki></code>
|{{respell|prə|NUN|see|AY|shən}}
|
|-
|{{Tl|Lang-en}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Lang-fr}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Lang-it}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Lang-de}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Lang-es}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|Lang-pt}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-nl}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-da}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-ru}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-fi}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-no}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-sv}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-zh}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-ko}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|{{Tl|lang-ja}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|}

== Inline Cleanup Tags ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Example
!Rendered
!Description
|-
! colspan=5 {{left}} Attribution
|-
|{{nowraplinks|{{Tl|According to whom}}}}
|
|<code><nowiki>The moon is considered to have {{According to whom|water, cream cheese|date=March 2020}} and potato salad.</nowiki></code>
|The moon is considered to have {{According to whom|water, cream cheese|date=March 2020}} and potato salad.
|For tagging a vague unnamed and unsourced third party claim
|-
|{{Tl|Attribution needed}}
|
|<code><nowiki>Many people say that Earth is flat like a pancake.{{Attribution needed}}</nowiki></code>
|Many people say that Earth is flat like a pancake.{{Attribution needed}}
|To identify when perspectives and opinions are asserted without stating whose they are.
|-
|{{tl|By whom}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|From whom?}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Like whom?}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|To whom?}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Who}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|With whom}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Clarity
|-
|{{Tl|ambiguous}}
|
|<code><nowiki>I have never used a Storage Array quite like that before!{{ambiguous|date=May 2020}}</nowiki></code>
|I have never used a Storage Array quite like that before!{{ambiguous|date=May 2020}}
|Used to highlight phrases that could have multiple meanings
|-
|{{Tl|clarify}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Clarify span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Clarify timeframe}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Context inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Expand acronym}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Incomprehensible inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Incomprehensible inline span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Non sequitur}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Sentence fragment}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Which calendar}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Miscellaneous
|-
|{{tl|Data missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Disambiguation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Needs IPA}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Original research inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Pronunciation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Siadn}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Spam link}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Synthesis inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Synthesis inline span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Under discussion inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Verify spelling}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Whose translation}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Neutrality
|-
|{{tl|Buzzword inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Compared to?}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Editorializing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Fact or opinion}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Opinion}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Peacock term}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|POV statement}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Promotion inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Unbalanced opinion}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Weasel inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Weasel word some span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Insufficient Precision
|-
|{{tl|By how much}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Definition}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Definition needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Example needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Example needed span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Explain}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|How}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|How often}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Misquoted}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Quantify}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Specify}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Vague}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|When}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Where}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Which}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Who else}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Why}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Year needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Excessive Precision
|-
|{{tl|Duplication span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Importance inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Relevance inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Undue weight inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Globalize-inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Time-sensitivity
|-
|{{tl|Anachronism inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Clarify timeframe}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Current event inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Is this date calibrated?}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Update after}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Update inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Update inline span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Verifiability - Dubious
|-
|{{tl|Contradict-inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Disputed inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Dubious}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Dubious span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Inconsistent}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Speculation inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Verifiability - Incomplete or broken citation
|-
|{{tl|Author incomplete}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Author missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Bare URL inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Date missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Dead link}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Edition needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Episode needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Full citation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{nowraplinks|{{tl|Incomplete short citation}}}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|ISBN missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Page needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Place missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Publisher missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Season needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Time needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Title incomplete}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Title missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Volume needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Year missing}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Verifiability - Missing or problematic reference
|-
|{{tl|Additional citation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Better source needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Better source needed example}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Check quotation}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Chronology citation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Citation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Citation needed span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Citation not found}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|COI source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Deprecated inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Excessive citations inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Failed verification}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Failed verification span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Imagefact}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Irrelevant citation}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Medical citation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Medical citation needed span}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Nonspecific}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Not verified in body}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Obsolete source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Primary source inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Promotional source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Quote without source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Request quotation}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Retracted}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Scientific citation needed}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Self-published inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Tertiary source inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Third-party inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Unreliable fringe source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Unreliable medical source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Unreliable source?}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Verify quote}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Verify source}}
|
|<code><nowiki></nowiki></code>
|
|
|-
! colspan=5 {{left}} Wording
|-
|{{tl|Awkward}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Buzzword inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Copy edit inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Neologism inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Slang}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Technical inline}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|Tone inline}}
|
|<code><nowiki></nowiki></code>
|
|
|}

==Logic==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|if}}
|
|
|
|
|
|-
|{{Tl|ifor}}
|
|
|
|
|
|-
|{{Tl|ifeq}}
|
|
|
|
|
|-
|{{Tl|ifeqall}}
|
|
|
|
|
|-
|{{Tl|ifeqany}}
|
|
|
|
|
|-
|{{Tl|for loop}}
|
|
|
|
|
|-
|{{Tl|yesno}}
|
|
|
|
|
|-
|{{Tl|ifnotempty}}
|
|
|
|
|
|}


==HTML tag alternatives==
==HTML tag alternatives==
Line 657: Line 3,231:
|
|
|
|
|}


== Banners ==
<code><nowiki>{{Notice|This is a notice}}</nowiki></code> {{Notice|This is a notice}}

<code><nowiki>{{Nutshell|Too long didn't read}}</nowiki></code> {{Nutshell|Too long didn't read}}

<code><nowiki>{{Caution-banner|Careful Now}}</nowiki></code> {{Caution-banner|Careful Now}}

<code><nowiki>{{Warning-banner|Do not do that}}</nowiki></code> {{Warning-banner|Do not do that}}

<code><nowiki>{{High-use}}</nowiki></code> {{High-use}}

<code><nowiki>{{peacock}}</nowiki></code> {{peacock}}

<code><nowiki>{{weasel}}</nowiki></code> {{weasel}}

<code><nowiki>{{controversial}}</nowiki></code> {{controversial}}

<code><nowiki>{{disputed}}</nowiki></code> {{disputed}}

<code><nowiki>{{POV}}</nowiki></code> {{POV}}

== Templates ==
=== Links ===
{| class=wikitable
!Template
!Usage
!Example
!Rendered
!Description
|-
|{{tl|tl}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|tlx}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|tlbare}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|purge}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|edit}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|diff}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|page-multi}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|}

=== Examples ===
{| class=wikitable
!Template
!Usage
!Example
!Rendered
!Description
|-
|{{tl|escape}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|demo}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|markup}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|markup2}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|markupv}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|fake heading}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|{{tl|lorem ipsum}}
|
|<code><nowiki></nowiki></code>
|
|
|-
|}

=== Text Emphasis ===
{| class=wikitable
!Template
!Usage
!Example
!Rendered
!Description
|-
|{{tl|xt}}
|
|<code><nowiki>this is an {{</nowiki>'''xt'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{xt|inline typeface change}} for comparison
|
|-
|{{tl|!xt}}
|
|<code><nowiki>this is an {{</nowiki>'''!xt'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{!xt|inline typeface change}} for comparison
|
|-
|{{tl|xtn}}
|
|<code><nowiki>this is an {{</nowiki>'''xtn'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{xtn|inline typeface change}} for comparison
|
|-
|{{tl|xtd}}
|
|<code><nowiki>this is an {{</nowiki>'''xtd'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{xtd|inline typeface change}} for comparison
|
|-
|{{tl|mxt}}
|
|<code><nowiki>this is an {{</nowiki>'''mxt'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{mxt|inline typeface change}} for comparison
|
|-
|{{tl|!mxt}}
|
|<code><nowiki>this is an {{</nowiki>'''!mxt'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{!mxt|inline typeface change}} for comparison
|
|-
|{{tl|mxtn}}
|
|<code><nowiki>this is an {{</nowiki>'''mxtn'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{mxtn|inline typeface change}} for comparison
|
|-
|{{tl|mxtd}}
|
|<code><nowiki>this is an {{</nowiki>'''mxtd'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{mxtd|inline typeface change}} for comparison
|
|-
|{{tl|bxt}}
|
|<code><nowiki>this is an {{</nowiki>'''bxt'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{bxt|inline typeface change}} for comparison
|
|-
|{{tl|!bxt}}
|
|<code><nowiki>this is an {{</nowiki>'''!bxt'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{!bxt|inline typeface change}} for comparison
|
|-
|{{tl|bxtn}}
|
|<code><nowiki>this is an {{</nowiki>'''bxtn'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{bxtn|inline typeface change}} for comparison
|
|-
|{{tl|bxtd}}
|
|<code><nowiki>this is an {{</nowiki>'''bxtd'''<nowiki>|inline typeface change}} for comparison</nowiki></code>
|this is an {{bxtd|inline typeface change}} for comparison
|
|-
|{{tl|strongbad}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{tl|stronggood}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|}

== Typos ==
{| class="wikitable"
|+
!Template
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|sic}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|not a typo}}
|{{Tl|typo}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|as written}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|text}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|}

==Referencing==
{| class="wikitable"
|+
!Template
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|ref}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|reflist}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|notelist}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|rp}}
|{{Tl|Refpages}}
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{Tl|a note}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|-
|{{nowraplinks|{{Tl|cite book}}}}
|<code><nowiki>{{cite book |last= |first= |author-link= |date= |title= |url= |location= |publisher= |page= |isbn=}}</nowiki></code>
|<code><nowiki>{{cite book |last=Joe |first=Blogs |author-link=Joe Blogs |date=1903 |title=Book of Bloggs |publisher=Blogs publishing |page=73 |isbn=978-1-234-56789-7}}</nowiki></code>
|{{cite book |last=Joe |first=Blogs |author-link=Joe Blogs |date=1903 |title=Book of Bloggs |publisher=Blogs publishing |page=73 |isbn=978-1-234-56789-7}}
|Books and chapters
|-
|{{nowraplinks|{{Tl|cite conference}}}}
|
|
|
|Conference papers
|-
|{{nowraplinks|{{Tl|cite encyclopedia}}}}
|
|
|
|Edited collections
|-
|{{Tl|cite episode}}
|
|
|
|radio or TV episodes
|-
|{{Tl|cite interview}}
|
|
|
|Interviews
|-
|{{Tl|cite journal}}
|<code><nowiki>{{cite journal |last1= |first1= |last2= |first2= |date= |title= |url= |journal= |volume= |issue= |pages= |doi= |access-date=}}</nowiki></code>
|<code><nowiki>{{cite journal |last1=Overpeck |first1=J. T. |last2=Webb |first2=T. |last3=Prentice |first3=I. C. |date=January 1985 |title=Quantitative interpretation of fossil pollen spectra: Dissimilarity coefficients and the method of modern analogs |journal=Quaternary Research |volume=23 |pages=87–108 |bibcode=1985QuRes..23...87O |doi=10.1016/0033-5894(85)90074-2}}</nowiki></code>
|{{cite journal |last1=Overpeck |first1=J. T. |last2=Webb |first2=T. |last3=Prentice |first3=I. C. |date=January 1985 |title=Quantitative interpretation of fossil pollen spectra: Dissimilarity coefficients and the method of modern analogs |journal=Quaternary Research |volume=23 |pages=87–108 |bibcode=1985QuRes..23...87O |doi=10.1016/0033-5894(85)90074-2}}
|Academic journals
|-
|{{Tl|cite magazine}}
|
|
|
|Magazines and Periodicals
|-
|{{nowraplinks|{{Tl|cite mailing list}}}}
|
|
|
|Public mailing lists
|-
|{{Tl|cite map}}
|
|
|
|Maps
|-
|{{Tl|cite news}}
|
|
|
|News Articles
|-
|{{Tl|cite newsgroup}}
|
|
|
|Online newsgroups
|-
|{{Tl|cite podcast}}
|
|
|
|Podcasts
|-
|{{nowraplinks|{{Tl|cite press release}}}}
|
|
|
|Press releases
|-
|{{Tl|cite report}}
|
|
|
|Reports
|-
|{{Tl|cite speech}}
|
|
|
|Speeches
|-
|{{Tl|cite techreport}}
|
|
|
|Technical Reports
|-
|{{Tl|cite thesis}}
|
|
|
|Theses
|-
|{{Tl|cite web}}
|
|
|
|Web sources not covered by any of the above
|}

== Transclusion ==
{| class="wikitable"
|+
!Template
!Shortcut /
Alternative
!Usage
!Example
!Rendered
!Description
|-
|{{Tl|excerpt}}
|
|<code><nowiki></nowiki></code>
|<code><nowiki></nowiki></code>
|
|
|-
|}
|}

Latest revision as of 22:13, 12 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 &#124; &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; {{)))}} }}}


Inline Infoboxes

Note
Markup
{{Note|Don't do that, do this..}}
Renders as
 
  
Don't do that, do this..
Markup
{{Note|Don't do that, do this..|reminder-yellow}}
Renders as
 
Note:  
Don't do that, do this..
Tip
Markup
{{Tip|Plug the FC Link into the Port Labelled 1A}}
Renders as
 
Tip:  
Plug the FC Link into the Port Labelled 1A
Info
Markup
{{Info|It is helpful to know that ...}}
Renders as
 
  
It is helpful to know that ...
Markup
{{Info|It is helpful to know that ...|info-blue}}
Renders as
 
  
It is helpful to know that ...
Warning
Markup
{{Warning|The CPU die is likely to be very-hot, allow to cool before handling!}}
Renders as
 
Warning:  
The CPU die is likely to be very-hot, allow to cool before handling!
Caution
Markup
{{Caution|Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues}}
Renders as
 
Caution:  
Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues
Markup
{{Caution|Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues|caution-red}}
Renders as
 
Caution:  
Please ensure to replace the cables in the original positions after controller replacement to avoid unexpected performance issues
Escalate
Markup
{{Escalate|a Principle-Engineer}}
Renders as
 
Warning:  
Do not attempt the following without first escalating to a Principle-Engineer
Markup
{{Escalate|Engineering via L3}}
Renders as
 
Warning:  
Do not attempt the following without first escalating to Engineering via L3


Code Markup

 
  
For most use cases the tags <code>...</code>, <pre>...</pre> and <syntaxhighlight>...</syntaxhighlight> are best, these templates have been created for specific use cases. See Script Samples for examples
Template Shortcut /

Alternative

Usage Example Rendered Description
{{key press}} {{key press| 1st key | 2nd Key | 3rd Key | chain= }} {{key press|Ctrl|Alt|Del}} Ctrl+Alt+Del Illustrates keys and keystrokes on a computer keyboard.
{{code}} {{code|lang= |1=short snippet of code}} {{code|lang=html|1=<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>}} <div style="position:relative; margin:0 auto; text-align:initial;">some text</div> Wraps a short span of text in <syntaxhighlight> tags
{{pre}} {{pre|width= |space = nowrap, pre, pre-wrap | some lines of code}} {{pre|width=100px | some '''lines''' of code}}
some lines of code
Allows wiki and html markup inside the pre tags
{{pre2}} {{Pre2|scroll| style= | some lines of code }} {{Pre2|scroll|Text to be displayed. And more and more and more... and an empty line And then more and more...}}
Text to be displayed. And more and more and more and more and more and more and more and more and more and more... and an empty line

And then more and more...
Adds horizontal scrollbox to pre tags
{{tag}} {{tag| 1=<tag name> |attribs= |content= |wrap= |link=}} |{{tag|ref|attribs=group="note"|content=Hello}} <ref group="note">Hello</ref> Used in help pages to describe HTML tags
{{syntaxhighlight}} {{sxhl}} {{sxhl|lang= | some lines of code }} {{sxhl|lang=html|1=<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>}}
<div style="position:relative; margin:0 auto; text-align:initial;">some text</div>
Unlike <syntaxhighlight>, text that does not fit will be wrapped.

Symbols

Template Shortcut /

Alternative

Usage Example Rendered Description
{{key press}} {{key press| 1st key | 2nd Key | 3rd Key | chain= }} {{key press|Alt|0}}{{key press|1|7|7|chain=}} Alt+0177 Illustrates keys and keystrokes on a computer keyboard.
{{unichar}} |{{unichar|a9|COPYRIGHT SIGN}} for intellectual property</code> U+00A9 © COPYRIGHT SIGN for intellectual property
{{radic}} {{radic| root | power }} {{radic|1 + 2''x''|4}} 41 + 2x
{{frac}} {{frac| integer | numerator | denominator }} {{frac|1|2|3}} 1+23
{{sfrac}} {{sfrac| integer | numerator | denominator }} {{sfrac|1|2|3}} 1 2/3
{{pars}} {{pars| s=size | text }} {{pars|s=200%|Content-inside-parentheses}} (Content-inside-parentheses)
{{vec}} {{vec|''A''| left/right | under/over }} {{vec|''A''|left|under}} A
{{dot}} no parameters {{dot}}  ·
{{Spaced en dash}} {{dash}} no parameters {{dash}}  –
{{em dash}} {{emdash}} no parameters {{emdash}}

Calculation

Template Shortcut /

Alternative

Usage Example Rendered Description
{{convert}} {{convert|number|unit|unit}} MX7000 chassis weights{{convert|1|lb|kg}} MX7000 chassis weights180 pounds (82 kg) Displays inline conversion between different unit types
{{number table sorting}} {{nts}} {{nts|number|prefix= |format= }} {{nts|123456789.00123|prefix=approx. }} approx. 123,456,789.00123 allows numbers to be prefixed but still sort numberically
{{str right}} {{str right|<string>|<offset>}} {{str right |Lorem ipsum dolor sit amet |10}} m dolor sit amet Returns a substring of characters from the end of a trimmed string.
{{str left}} {{str left|<string>|<offset>}} {{str left |Lorem ipsum dolor sit amet |10}} Lorem ipsu A substring of characters from the start of the trimmed string
{{age}} {{age|date}} If Einstein was alive he would be {{age|March 14 1879}} years old If Einstein was alive he would be 147 years old
{{Birth date and age}} {{bda}} {{Birth date and age|date}} Elon Reeve Musk born {{bda|June 28 1971}} Elon Reeve Musk born (1971-06-28) June 28, 1971 (age 54)
{{Gregorian serial date}} {{gsd}} {{Gregorian serial date|date}} {{gsd|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} 739714 Number of days since Monday 1st of january 1 AD
{{coord}}

Images

Template Shortcut /

Alternative

Usage Example Rendered Description
{{panorama}}
{{wide image}} {{Wide image|name|image width|caption|box width|alignment|alt=alt text |dir=rtl |align-cap= }}
{{tall image}} {{Tall image|name|image width|box height|alt=alt text|caption|alignment}}
{{legend}}


Quotes

Template Shortcut /

Alternative

Usage Example Rendered Description
{{poem}}
{{quote}} {{blockquote}}
{{quote box}}
{{quote frame}}
{{tweet}}

TOC

Template Shortcut /

Alternative

Usage Example Rendered Description
{{TOC left}}
{{TOC right}}
{{TOC center}}
{{TOC limit}}
{{TOC hidden}}
{{Headless TOC}} {{Template:Headless TOC}}
{{Horizontal TOC}} {{Template:Horizontal TOC}}
{{Category TOC}}
{{Multi-column TOC}}
{{TOC bottom}}
{{TOC top}}

Layout

Template Shortcut /

Alternative

Usage Example Rendered Description
{{right}} {{right|text}} {{right|floating right}} floating right
{{left}} {{left|text}} {{left|floating left}}
floating left
{{center}} {{center|text}} {{center|floating center}}
floating center
{{center block}} {{center block| width= | height= | text}} see template documentation not helpful to render here
{{float}}
{{float left}}
{{float right}}
{{float center}}
{{clear}}
{{align}}
{{stack}}
{{indent}}
{{outdent}} {{out}} {{od}}
{{raise}}
{{lower}} {{out}} {{od}}
{{wide template}} {{out}} {{od}}


Hidden Areas

Template Shortcut /

Alternative

Usage Example Rendered Description
{{collapse}}
{{collapse top}}
{{collapse bottom}}
{{reveal}}
{{hidden}}
{{hidden begin}}
{{hidden end}}

Text

Inline Spacing

Template Shortcut /

Alternative

HTML Entity Code Size Usage Example Rendered Description
Decimal Named
Non-Breaking Space characters
{{zero width joiner}} {{zwj}} &#8205; &zwj; no parameters ''A zero width joiner''{{zero width joiner}}{{fake citation needed}} A zero width joiner[citation needed] Invisibly 'sews together' two words as if they were a single word
{{hair space}} {{hsp}} {{hairsp}} {{px1}} &#8202; &hairsp; no parameters ''A hair space''{{hsp}}{{fake citation needed}} A hair space[citation needed] 1 pixel width non-breaking space
{{narrow no-break space}} {{nnbsp}} {{Template:Narrow no-break space}} {{Template:Narrow no-break space}} &#8239; na {{nnbsp|symbol}} wedding cost US${{nnbsp}}2,000,000. wedding cost US$ 2,000,000. Narrow non-breaking space
{{thin space}} {{tsp}} &#8201; &thinsp; {{thin space|symbol}} ({{thin space|symbol}}) instead of: (symbol) (symbol ) instead of: (symbol) A thin non-breaking space 1/5 of an em
{{spaces}} {{space}} {{nbsp}} varies   {{spaces|number off|type}} text{{spaces|2|em}}text text  text Used to display one or more non-breaking spaces of specified type
{{figure space}} {{fs}} {{fsp}} &#8199; &numsp; {{Figure space|number off}} 123{{br}}1{{fsp}}3 123
13
A non-breaking space equal in width to a digit
{{ns}} &#160; &nbsp;     {{ns|number off}} Ten{{ns|10}}eight{{ns|8}}six{{ns|6}}four{{ns|4}}! Ten          eight        six      four    ! Without any parameters inserts 3 non-breaking spaces
{{quad}} &#160; &nbsp;      no parameters text{{quad}}text text    text Inserts 4 non-breaking spaces
{{nb5}} &#160; &nbsp;       {{nb5|number of spaces}} text{{nb5}}text text     text Inserts 5 non-breaking spaces
{{nb10}} &#160; &nbsp;            no parameters text{{nb10}}text text          text Inserts 10 non-breaking spaces
Breaking Space characters
{{zero width space}} {{zwsp}} {{Template:Zero width space}} &#8203;
&ZeroWidthSpace;
no parameters ribulosebisphosphate{{0ws}}carboxylaseoxygenase ribulosebisphosphate​carboxylaseoxygenase Used to indicate where very large words will break if necessary
{{sp}} &#32; na I like green{{#if:{{{blue|}}}|{{sp}}and blue|{{sp}}but not blue}} I like green but not blue Most common space entity, typically used in passing template parameters
Non-characters spaces
{{px2}} na no parameters ''Two pixel gap''{{px2}}{{fake citation needed}} Two pixel gap[citation needed] Adds 2px of horizontal space
{{gaps}} na {{gaps|lhs=prefix|num|num|num|u=suffix}} {{gaps|lhs=π|3.14159|26535|89793|...}}
{{gaps|299|792|458|u=m/s}}
π = 3.141592653589793...
299792458 m/s
Outputs its unnamed arguments in order with gaps of 0.25em between
{{pad}} na  
{{in5}} na      
{{vpad}} na {{vpad |1= |clear= }} __{{br}}{{vpad|1=1em|clear=left}}__ __
__
Creates an invisible div of user-specified height for padding.
{{indent}} na
{{outdent}} {{out}} {{od}} na


Name / size Instance Example code and ... Using {{spaces}} Output Output {{spaces}}
none Some text<ref>...</ref> Some text[1]
Hair Some text{{hair space}}<ref>...</ref> Some text{{spaces|hair}}<ref>...</ref> Some text [1] Some text[1]
2-pixel Some text{{px2}}<ref>...</ref> Some text[1]
Narrow no-break Some text{{narrow no-break space}}<ref>...</ref> Some text [1]
Thin Some text{{thin space}}<ref>...</ref> Some text{{spaces|thin}}<ref>...</ref> Some text[1] Some text[1]
Standarda   Some text&nbsp;<ref>...</ref> Some text{{spaces}}<ref>...</ref> Some text [1] Some text [1]
En 1&ensp;3 1{{spaces|en}}3 1 3 13
Figure 123<br/>1{{figure space}}3 123{{br}}1{{spaces|fig}}3 123
13
123
13
Em 1&emsp;3 1{{spaces|em}}3 1 3 13

 a Provided here by a non-breaking space (&nbsp;).

Size

Template Shortcut /

Alternative

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

Direction

Template Shortcut /

Alternative

Usage Example Rendered Description
{{transform-rotate}} <span style="{{Transform-rotate|angle}}">rotated text</span> <span style="{{Transform-rotate|90}}">5</span> 5 Shorthanded CSS code for rotating elements inside style attribute.
{{writing-mode}} <div style="{{writing-mode| direction }}">transformed text</div> <div style="{{writing-mode|v1}}">Lorem ipsum...</div>
Lorem ipsum...
Shortcut for adding writing mode property using CSS
{{transform}}
{{mirrorH}} no parameters A B <span style="{{mirrorH}}">C</span> D A B C D Shorthanded CSS code for horizontally mirroring elements inside style attribute
{{mirrorV}} no parameters <span style="{{mirrorV}}">A</span> B C D A B C D Shorthanded CSS code for vertically mirroring elements inside style attribute

Emphasis

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}} {{color|color or hex code|Text}} {{color|red|'''Hello, world!'''}} Hello, world! Changes text to specified color
{{font color}} {{font color | text color | background color | text }} {{font color|yellow|purple|text with four words}} text with four words Changes text and background to specified colours
{{font}} {{font|text= |font= |size= |color= |bgcolor= |css= }} {{font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}} Some text. Allows changing font, size, colour and background colour of text
{{em}} {{em|text to be emphasized}} Contrary to reports, she was {{em|not}} dead after all. Contrary to reports, she was not dead after all. Applies semantic <em>...</em> emphasis markup as apposed to ''...'' typographic italicizations. This conveys meaning not just visible appearance and is used by screen readers.
{{strong}} {{strong|important text}} "The {{strong|soma}}, or {{strong|perikaryon}}, or {{strong|cyton}}, is the bulbous end of a neuron." "The soma, or perikaryon, or cyton, is the bulbous end of a neuron." Applies semantic <strong>...</strong> emphasis markup as apposed to '''...''' typographic italicizations
{{yesitalic}}
{{noitalic}}
{{nocaps}}
{{nobold}}
{{smallcaps}}

Formatting

Template Shortcut /

Alternative

Usage Example Rendered Description
{{hover title}} {{Hover title|text|hover text|link=yes/no|dotted=yes/no}} {{Hover title|Hello|example}} example
{{nowrap}}
{{nowraplinks}}
{{pad}}

superscript and subscript

Template Shortcut /

Alternative

Usage Example Rendered Description
{{sup}} text{{sup|superscript}} text{{sup|superscript}} {{sup|superscript}}text textsuperscript    superscripttext
{{smallsup}} {{ssup}} text{{smallsup|small superscript}} text{{smallsup|small superscript}} {{smallsup|small superscript}}text textsmall superscript    small superscripttext
{{i sup}} {{issup}} {{padlssup}} ''text''{{i smallsup|small superscript}} ''text''{{i smallsup|small superscript}} (rather than: ''text''{{sup|superscript}}) textsmall superscript  (rather than: textsmall superscript)
{{i smallsup}} {{issup}} {{padlssup}} ''text''{{i smallsup|small superscript}} ''text''{{i smallsup|small superscript}} (rather than: ''text''{{smallsup|small superscript}}) textsmall superscript  (rather than: textsmall superscript)
{{b sup}} {{bsup}} text{{b sup|superscript}} text{{b sup|superscript}} (rather than: text{{sup|superscript}}) textsuperscript  (rather than: textsuperscript)
{{sub}} text{{sub|subscript}} text{{sub|subscript}} {{sub|subscript}}text textsubscript    subscripttext
{{smallsub}} {{ssub}} text{{smallsub|small subscript}} text{{smallsub|small subscript}} {{smallsub|small subscript}}text textsmall subscript small subscripttext
{{subsub}} text{{subsub|double-subscripted}} text{{subsub|double-subscripted}} {{subsub|double-subscripted}}text textdouble-subscripted    double-subscriptedtext
{{su}} text{{su|p=superscript|b=subscript}} text{{su|p=p{{eq}}superscript|b=b{{eq}}subscript}} {{su|p=p{{eq}}superscript|b=b{{eq}}subscript}}text textp=;superscript
b=subscript
    p=superscript
b=subscript
text
{{sup sub}} text{{sup sub|sup|sub}}{{spaces|4}}{{sup sub|sup|sub}}text textsup
sub
    sup
sub
text
{{±}} 1.23{{±|superscript|subscript}} 1.23{{±|4|2}} 1.23+4
−2
{{overunderset}} {{underoverset}} {{overunderset|text|superscript|subscript}} {{overunderset|text|superscript|subscript}} superscripttextsubscript
{{raise}}
{{lower}} {{out}} {{od}}

Lists

Template Shortcut /

Alternative

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

Links

Template Shortcut /

Alternative

Usage Example Rendered Description
{{URL}}
{{URL2}}
{{plain link}} {{scp}} {{plk}}
{{plain}} {{pln}} {{pla}}
{{oldid}} {{permalink}}
{{oldid2}}
{{diff}}
{{history}} {{ph}}
{{pagelinks}}
{{page-multi}}
{{section link}} {{slink}} {{Template:Section link}}
{{multi-section link}} {{mslink}}


Hatnotes

Template Shortcut /

Alternative

Usage Example Rendered Description
{{selfref}}
{{see also}}
{{about}}
{{redirect}}
{{redirect2}}
{{for}}
{{for2}}
{{main}}
{{further}}
{{redirect-distinguish}}

Tables

Example tables
Code
Template Shortcut /

Alternative

Usage Example Expands to Description
{{table}} {{Table|param1|param2|param3|class=}} {| {{Table|hide|sort|class=floatright}} {| class="wikitable collapsible collapsed sortable floatright" Used to apply common CSS classes for tables
{{wikitable}} {{wikitable}}
{{wikitable| class="wikitable" 
!header|- 
|row }}
header
row
removes the need to escape every | and also = for <table> element attributes
{{right}} {{right}} | {{Right}} text | style="text-align:right"| text
{{left}} {{left}} | {{left}} text | style="text-align:left"| text
{{center}} {{center}} | {{center}} text | style="text-align:center"| text
{{float right}} {{float right}} {| class="wikitable" {{float right}} {| class="wikitable" style="float: right; margin-left: 1em; clear: right;"
{{float left}} {{float left}} {| class="wikitable" {{float left}} {| class="wikitable" style="float: left; margin-right: 1em;"
{{float center}} {{float center}} {| class="wikitable" {{float center}} {| class="wikitable" style="margin-left: auto; margin-right: auto;"
{{Vertical Text}} |{{Vertical Text|long text}} {{Vertical Text|long text}} <span style="writing-mode: vertical-lr; white-space: nowrap; min-width: 20px; transform: rotate(180deg); ">long text</span>
{{vertical header}} {{vert header}} {{Template:Vertical header}} {{vert header|nb= |stp= |va= |mw= |style= |cellstyle=|Your text here}} {{vertical header|long text}} <span style="writing-mode: vertical-lr; white-space: nowrap; min-width: 20px; transform: rotate(180deg); ">long text</span>
{{Aligned table}} |{{Vertical Text|long text}} {{Vertical Text|long text}} <span style="writing-mode: vertical-lr; white-space: nowrap; min-width: 20px; transform: rotate(180deg); ">long text</span>
{{end}} {{end}}

Columns

Example columns
Code
{{col-begin}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Revenue by product
|-
! Widgets
| $25,000
|-
! Foos
| $65,500
|-
! Bars
| $28,000
|}
{{col-end}}
Template Shortcut /

Alternative

Usage Example Expands to Description
{{columns}}
{{col-begin}} {{Template:Col-begin}}
{{col-begin-fixed}}
{{col-begin-small}}
{{col-float}}
{{columns-list}}
{{columns-start}}
{{flex columns}}
{{div col}}

Language

Template Shortcut /

Alternative

Usage Example Rendered Description
{{respell}} {{respell|prə|NUN|see|AY|shən}} prə-NUN-see-AY-shən
{{Lang-en}}
{{Lang-fr}}
{{Lang-it}}
{{Lang-de}}
{{Lang-es}}
{{Lang-pt}}
{{lang-nl}}
{{lang-da}}
{{lang-ru}}
{{lang-fi}}
{{lang-no}}
{{lang-sv}}
{{lang-zh}}
{{lang-ko}}
{{lang-ja}}

Inline Cleanup Tags

Template Shortcut /

Alternative

Example Rendered Description
Attribution
{{According to whom}} The moon is considered to have {{According to whom|water, cream cheese|date=March 2020}} and potato salad. The moon is considered to have water, cream cheese[according to whom?] and potato salad. For tagging a vague unnamed and unsourced third party claim
{{Attribution needed}} Many people say that Earth is flat like a pancake.{{Attribution needed}} Many people say that Earth is flat like a pancake.[attribution needed] To identify when perspectives and opinions are asserted without stating whose they are.
{{By whom}}
{{From whom?}}
{{Like whom?}}
{{To whom?}}
{{Who}}
{{With whom}}
Clarity
{{ambiguous}} I have never used a Storage Array quite like that before!{{ambiguous|date=May 2020}} I have never used a Storage Array quite like that before![ambiguous] Used to highlight phrases that could have multiple meanings
{{clarify}}
{{Clarify span}}
{{Clarify timeframe}}
{{Context inline}}
{{Expand acronym}}
{{Incomprehensible inline}}
{{Incomprehensible inline span}}
{{Non sequitur}}
{{Sentence fragment}}
{{Which calendar}}
Miscellaneous
{{Data missing}}
{{Disambiguation needed}}
{{Needs IPA}}
{{Original research inline}}
{{Pronunciation needed}}
{{Siadn}}
{{Spam link}}
{{Synthesis inline}}
{{Synthesis inline span}}
{{Under discussion inline}}
{{Verify spelling}}
{{Whose translation}}
Neutrality
{{Buzzword inline}}
{{Compared to?}}
{{Editorializing}}
{{Fact or opinion}}
{{Opinion}}
{{Peacock term}}
{{POV statement}}
{{Promotion inline}}
{{Unbalanced opinion}}
{{Weasel inline}}
{{Weasel word some span}}
Insufficient Precision
{{By how much}}
{{Definition}}
{{Definition needed}}
{{Example needed}}
{{Example needed span}}
{{Explain}}
{{How}}
{{How often}}
{{Misquoted}}
{{Quantify}}
{{Specify}}
{{Vague}}
{{When}}
{{Where}}
{{Which}}
{{Who else}}
{{Why}}
{{Year needed}}
Excessive Precision
{{Duplication span}}
{{Importance inline}}
{{Relevance inline}}
{{Undue weight inline}}
{{Globalize-inline}}
Time-sensitivity
{{Anachronism inline}}
{{Clarify timeframe}}
{{Current event inline}}
{{Is this date calibrated?}}
{{Update after}}
{{Update inline}}
{{Update inline span}}
Verifiability - Dubious
{{Contradict-inline}}
{{Disputed inline}}
{{Dubious}}
{{Dubious span}}
{{Inconsistent}}
{{Speculation inline}}
Verifiability - Incomplete or broken citation
{{Author incomplete}}
{{Author missing}}
{{Bare URL inline}}
{{Date missing}}
{{Dead link}}
{{Edition needed}}
{{Episode needed}}
{{Full citation needed}}
{{Incomplete short citation}}
{{ISBN missing}}
{{Page needed}}
{{Place missing}}
{{Publisher missing}}
{{Season needed}}
{{Time needed}}
{{Title incomplete}}
{{Title missing}}
{{Volume needed}}
{{Year missing}}
Verifiability - Missing or problematic reference
{{Additional citation needed}}
{{Better source needed}}
{{Better source needed example}}
{{Check quotation}}
{{Chronology citation needed}}
{{Citation needed}}
{{Citation needed span}}
{{Citation not found}}
{{COI source}}
{{Deprecated inline}}
{{Excessive citations inline}}
{{Failed verification}}
{{Failed verification span}}
{{Imagefact}}
{{Irrelevant citation}}
{{Medical citation needed}}
{{Medical citation needed span}}
{{Nonspecific}}
{{Not verified in body}}
{{Obsolete source}}
{{Primary source inline}}
{{Promotional source}}
{{Quote without source}}
{{Request quotation}}
{{Retracted}}
{{Scientific citation needed}}
{{Self-published inline}}
{{Tertiary source inline}}
{{Third-party inline}}
{{Unreliable fringe source}}
{{Unreliable medical source}}
{{Unreliable source?}}
{{Verify quote}}
{{Verify source}}
Wording
{{Awkward}}
{{Buzzword inline}}
{{Copy edit inline}}
{{Neologism inline}}
{{Slang}}
{{Technical inline}}
{{Tone inline}}

Logic

Template Shortcut /

Alternative

Usage Example Rendered Description
{{if}}
{{ifor}}
{{ifeq}}
{{ifeqall}}
{{ifeqany}}
{{for loop}}
{{yesno}}
{{ifnotempty}}

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>


Banners

{{Notice|This is a notice}}

{{Nutshell|Too long didn't read}}

{{Caution-banner|Careful Now}}

{{Warning-banner|Do not do that}}

{{High-use}}

{{peacock}}

{{weasel}}

{{controversial}}

{{disputed}}

{{POV}}

Templates

Links

Template Usage Example Rendered Description
{{tl}}
{{tlx}}
{{tlbare}}
{{purge}}
{{edit}}
{{diff}}
{{page-multi}}

Examples

Template Usage Example Rendered Description
{{escape}}
{{demo}}
{{markup}}
{{markup2}}
{{markupv}}
{{fake heading}}
{{lorem ipsum}}

Text Emphasis

Template Usage Example Rendered Description
{{xt}} this is an {{xt|inline typeface change}} for comparison this is an inline typeface change for comparison
{{!xt}} this is an {{!xt|inline typeface change}} for comparison this is an inline typeface change for comparison
{{xtn}} this is an {{xtn|inline typeface change}} for comparison this is an inline typeface change for comparison
{{xtd}} this is an {{xtd|inline typeface change}} for comparison this is an inline typeface change for comparison
{{mxt}} this is an {{mxt|inline typeface change}} for comparison this is an inline typeface change for comparison
{{!mxt}} this is an {{!mxt|inline typeface change}} for comparison this is an inline typeface change for comparison
{{mxtn}} this is an {{mxtn|inline typeface change}} for comparison this is an inline typeface change for comparison
{{mxtd}} this is an {{mxtd|inline typeface change}} for comparison this is an inline typeface change for comparison
{{bxt}} this is an {{bxt|inline typeface change}} for comparison this is an inline typeface change for comparison
{{!bxt}} this is an {{!bxt|inline typeface change}} for comparison this is an inline typeface change for comparison
{{bxtn}} this is an {{bxtn|inline typeface change}} for comparison this is an inline typeface change for comparison
{{bxtd}} this is an {{bxtd|inline typeface change}} for comparison this is an inline typeface change for comparison
{{strongbad}}
{{stronggood}}

Typos

Template Usage Example Rendered Description
{{sic}}
{{not a typo}} {{typo}}
{{as written}}
{{text}}

Referencing

Template Usage Example Rendered Description
{{ref}}
{{reflist}}
{{notelist}}
{{rp}} {{Refpages}}
{{a note}}
{{cite book}} {{cite book |last= |first= |author-link= |date= |title= |url= |location= |publisher= |page= |isbn=}} {{cite book |last=Joe |first=Blogs |author-link=Joe Blogs |date=1903 |title=Book of Bloggs |publisher=Blogs publishing |page=73 |isbn=978-1-234-56789-7}} Joe, Blogs (1903). Book of Bloggs. Blogs publishing. p. 73. ISBN 978-1-234-56789-7. Books and chapters
{{cite conference}} Conference papers
{{cite encyclopedia}} Edited collections
{{cite episode}} radio or TV episodes
{{cite interview}} Interviews
{{cite journal}} {{cite journal |last1= |first1= |last2= |first2= |date= |title= |url= |journal= |volume= |issue= |pages= |doi= |access-date=}} {{cite journal |last1=Overpeck |first1=J. T. |last2=Webb |first2=T. |last3=Prentice |first3=I. C. |date=January 1985 |title=Quantitative interpretation of fossil pollen spectra: Dissimilarity coefficients and the method of modern analogs |journal=Quaternary Research |volume=23 |pages=87–108 |bibcode=1985QuRes..23...87O |doi=10.1016/0033-5894(85)90074-2}} Overpeck, J. T.; Webb, T.; Prentice, I. C. (January 1985). "Quantitative interpretation of fossil pollen spectra: Dissimilarity coefficients and the method of modern analogs". Quaternary Research. 23: 87–108. Bibcode:1985QuRes..23...87O. doi:10.1016/0033-5894(85)90074-2. Academic journals
{{cite magazine}} Magazines and Periodicals
{{cite mailing list}} Public mailing lists
{{cite map}} Maps
{{cite news}} News Articles
{{cite newsgroup}} Online newsgroups
{{cite podcast}} Podcasts
{{cite press release}} Press releases
{{cite report}} Reports
{{cite speech}} Speeches
{{cite techreport}} Technical Reports
{{cite thesis}} Theses
{{cite web}} Web sources not covered by any of the above

Transclusion

Template Shortcut /

Alternative

Usage Example Rendered Description
{{excerpt}}