Help:Template cheatsheet: Difference between revisions
Appearance
Content deleted Content added
Caleb Cooper (talk | contribs) |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
{| class="wikitable" |
{| class="wikitable" |
||
|+ |
|+ |
||
!rowspan=2|Template |
! rowspan="2" |Template |
||
!rowspan=2|Shortcut / |
! rowspan="2" |Shortcut / |
||
Alternative |
Alternative |
||
| ⚫ | |||
!colspan=2|HTML Entity Code |
|||
!rowspan=2| |
! rowspan="2" |Example |
||
!rowspan=2| |
! rowspan="2" |Rendered |
||
!rowspan=2| |
! rowspan="2" |Description |
||
| ⚫ | |||
|- |
|- |
||
!Decimal |
|||
!Named |
|||
|- |
|- |
||
|{{Tl|=}} |
|{{Tl|=}} |
||
|{{Tl|eq}} |
|{{Tl|eq}} |
||
|= |
|||
|<code><s>&equals;</s></code> |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>{{eq}}</nowiki></code> |
|<code><nowiki>{{eq}}</nowiki></code> |
||
| Line 25: | Line 21: | ||
|{{Tl|!}} |
|{{Tl|!}} |
||
|{{Smallcaps|na}} |
|{{Smallcaps|na}} |
||
|! |
|||
|<code><s>&excl;</s></code> |
|||
||{{smallcaps|no parameters}} |
||{{smallcaps|no parameters}} |
||
|<code><nowiki>{{!}}</nowiki></code> |
|<code><nowiki>{{!}}</nowiki></code> |
||
| Line 34: | Line 28: | ||
|{{Tl|'}} |
|{{Tl|'}} |
||
|{{Tl|apostrophe}} |
|{{Tl|apostrophe}} |
||
|&#39; |
|||
|<code>&apos;</code> |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>The ''Iliad''{{'}}s vocabulary is archaic.</nowiki></code> |
|<code><nowiki>The ''Iliad''{{'}}s vocabulary is archaic.</nowiki></code> |
||
| Line 43: | Line 35: | ||
|{{Tl|`}} |
|{{Tl|`}} |
||
|{{Smallcaps|na}} |
|{{Smallcaps|na}} |
||
|&#96;<br /> |
|||
|<code><s>&grave;</s></code> |
|||
|{{smallcaps|no parameters}} |
|{{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> |
||
| Line 52: | Line 42: | ||
|{{Tl|′}} |
|{{Tl|′}} |
||
|{{Tl|prime}} |
|{{Tl|prime}} |
||
|&#8242; |
|||
|<code>&prime;</code> |
|||
|<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 60: | Line 48: | ||
|- |
|- |
||
|{{Tl|braces}} |
|{{Tl|braces}} |
||
| |
|||
| |
|||
| |
| |
||
|<code><nowiki>{{braces|code=on/off |Templatename|item1|item2}}</nowiki></code> |
|<code><nowiki>{{braces|code=on/off |Templatename|item1|item2}}</nowiki></code> |
||
| Line 69: | Line 55: | ||
|- |
|- |
||
|{{Tl|bracket}} |
|{{Tl|bracket}} |
||
| |
|||
| |
|||
| |
| |
||
|<code><nowiki>{{bracket|text}}</nowiki></code> |
|<code><nowiki>{{bracket|text}}</nowiki></code> |
||
| Line 78: | Line 62: | ||
|- |
|- |
||
|{{Tl|brackets}} |
|{{Tl|brackets}} |
||
| |
|||
| |
|||
| |
| |
||
|<code><nowiki>{{brackets|text}} or {{brackets|text|more}}</nowiki></code> |
|<code><nowiki>{{brackets|text}} or {{brackets|text|more}}</nowiki></code> |
||
| Line 88: | Line 70: | ||
|{{Tl|sp}} |
|{{Tl|sp}} |
||
| |
| |
||
|&#32; |
|||
|<code>&nbsp;</code> |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>green{{sp}}and blue </nowiki></code> |
|<code><nowiki>green{{sp}}and blue </nowiki></code> |
||
| Line 97: | Line 77: | ||
|{{Tl|colon}} |
|{{Tl|colon}} |
||
| |
| |
||
|&#58; |
|||
|<code>&colon;</code> |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>{{colon}}</nowiki></code> |
|<code><nowiki>{{colon}}</nowiki></code> |
||
| Line 105: | Line 83: | ||
|- |
|- |
||
|{{tl|!!}} |
|{{tl|!!}} |
||
| |
|||
|&#124;&#124; |
|||
| |
| |
||
| |
| |
||
| Line 114: | Line 90: | ||
|- |
|- |
||
|{{tl|!(}} |
|{{tl|!(}} |
||
| |
|||
|&#91; |
|||
| |
| |
||
| |
| |
||
| Line 123: | Line 97: | ||
|- |
|- |
||
|{{tl|)!}} |
|{{tl|)!}} |
||
| |
|||
|&#93; |
|||
| |
| |
||
| |
| |
||
| Line 132: | Line 104: | ||
|- |
|- |
||
|{{tl|!((}} |
|{{tl|!((}} |
||
| |
|||
|&#91;&#91; |
|||
| |
| |
||
| |
| |
||
| Line 141: | Line 111: | ||
|- |
|- |
||
|{{tl|))!}} |
|{{tl|))!}} |
||
| |
|||
|&#93;&#93; |
|||
| |
| |
||
| |
| |
||
| Line 150: | Line 118: | ||
|- |
|- |
||
|{{tl|(}} |
|{{tl|(}} |
||
| |
|||
|&#123; |
|||
| |
| |
||
| |
| |
||
| Line 159: | Line 125: | ||
|- |
|- |
||
|{{tl|)}} |
|{{tl|)}} |
||
| |
|||
|&#125; |
|||
| |
| |
||
| |
| |
||
| Line 168: | Line 132: | ||
|- |
|- |
||
|{{tl|((}} |
|{{tl|((}} |
||
| |
|||
|&#123;&#123; |
|||
| |
| |
||
| |
| |
||
| Line 177: | Line 139: | ||
|- |
|- |
||
|{{tl|))}} |
|{{tl|))}} |
||
| |
|||
|&#125;&#125; |
|||
| |
| |
||
| |
| |
||
| Line 186: | Line 146: | ||
|- |
|- |
||
|{{tl|(((}} |
|{{tl|(((}} |
||
| |
|||
|&#123;&#123;&#123; |
|||
| |
| |
||
| |
| |
||
| Line 195: | Line 153: | ||
|- |
|- |
||
|{{tl|)))}} |
|{{tl|)))}} |
||
| |
|||
|&#125;&#125;&#125; |
|||
| |
| |
||
| |
| |
||
Revision as of 18:45, 1 November 2020
Character 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]] | ||
| {{sp}} | no parameters | green{{sp}}and blue
|
green and blue | ||
| {{colon}} | no parameters | {{colon}}
|
: | ||
| {{!!}} | |||||
| {{!(}} | |||||
| {{)!}} | |||||
| {{!((}} | |||||
| {{))!}} | |||||
| {{(}} | |||||
| {{)}} | |||||
| {{((}} | |||||
| {{))}} | |||||
| {{(((}} | |||||
| {{)))}} |
Alignment
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{right}} | |||||
| {{left}} | |||||
| {{center}} | |||||
| {{float}} | |||||
| {{clear}} | |||||
| {{align}} | |||||
| {{stack}} |
Text Size
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{small}} | |||||
| {{smaller}} | |||||
| {{resize}} | |||||
| {{midsize}} | |||||
| {{larger}} | |||||
| {{big}} | |||||
| {{large}} | |||||
| {{huge}} | |||||
| {{font}} |
Text Formatting
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{highlight}} | {{h}} | {{H|text|colour|expiry}}
|
some text with a {{H| highlighted | #00FF00 | 1 January 2099}} portion
|
some text with a highlighted portion | Colour and date are optional Parameters, if a date is added the text will not be highlighted after the date has passed |
| {{color}} | |||||
| {{font color}} | |||||
| {{font}} | |||||
| {{em}} | |||||
| {{strong}} | |||||
| {{nowrap}} | |||||
| {{pad}} |
Lists
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{hlist}} | |||||
| {{plainlist}} | |||||
| {{cslist}} | |||||
| {{flatlist}} | |||||
| {{bulleted list}} | |||||
| {{ordered list}} | |||||
| {{unbulleted list}} | |||||
| {{glossary}} | |||||
| {{term}} | |||||
| {{flowlist}} | |||||
| {{columns-list}} | |||||
| {{mset}} |
HTML tag alternatives
| Template | Shortcut /
Alternative |
HTML Tag | Usage | Example | Rendered | Description |
|---|---|---|---|---|---|---|
| {{pre}} | <pre>...</pre>
|
|||||
| {{pre2}} | <pre>...</pre>
|
|||||
| {{code}} | <code>...</code>
|
|||||
| {{kbd}} | <kbd>...</kbd>
|
|||||
| {{samp}} | <samp>...</samp>
|
|||||
| {{hr}} | <hr />
|
|||||
| {{break}} | <br />
|
|||||
| {{clear}} | {{br}} | <div style="clear: both;"></div>
|
||||
| {{abbr}} | <abbr>...</abbr>
|
|||||
| {{quote}} | <blockquote>...</blockquote>
|
|||||
| {{citation}} | {{cite}} | <cite>...</cite>
|
||||
| {{strikethrough}} | {{strike}} | <del>...</del>
|
||||
| {{underline}} | {{under}} | <u>...</u>
|
||||
| {{strong}} | <strong>...</strong>
|
|||||
| {{em}} | <em>...</em>
|
|||||
| {{dfn}} | <dfn>...</dfn>
|
|||||
| {{highlight}} | {{h}} | <mark>...</mark>
|
||||
| {{font}} | <font>...</font>
|
|||||
| {{center}} | <center>...</center>
|
|||||
| {{var}} | <var>...</var>
|
|||||
| {{sub}} | <sub>...</sub>
|
|||||
| {{sup}} | <sup>...</sup>
|