Help:Template cheatsheet: Difference between revisions
Appearance
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) |
||
| Line 6: | Line 6: | ||
Alternative |
Alternative |
||
!HTML |
!HTML |
||
decimal code |
|||
! |
|||
!Usage |
!Usage |
||
!Example |
!Example |
||
!Rendered |
!Rendered |
||
!Description |
!Description |
||
|- |
|||
! |
|||
! |
|||
!Decimal |
|||
!Named |
|||
! |
|||
! |
|||
! |
|||
! |
|||
|- |
|- |
||
|{{Tl|=}} |
|{{Tl|=}} |
||
|{{Tl|eq}} |
|{{Tl|eq}} |
||
|= |
|= |
||
| |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>{{eq}}</nowiki></code> |
|<code><nowiki>{{eq}}</nowiki></code> |
||
| Line 23: | Line 34: | ||
|{{Smallcaps|na}} |
|{{Smallcaps|na}} |
||
|&#124; |
|&#124; |
||
| |
|||
||{{smallcaps|no parameters}} |
||{{smallcaps|no parameters}} |
||
|<code><nowiki>{{!}}</nowiki></code> |
|<code><nowiki>{{!}}</nowiki></code> |
||
| Line 31: | Line 43: | ||
|{{Tl|apostrophe}} |
|{{Tl|apostrophe}} |
||
|&#39; |
|&#39; |
||
| |
|||
|{{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 39: | Line 52: | ||
|{{Smallcaps|na}} |
|{{Smallcaps|na}} |
||
|&#96;<br /> |
|&#96;<br /> |
||
| |
|||
|{{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 47: | Line 61: | ||
|{{Tl|prime}} |
|{{Tl|prime}} |
||
|&#8242; |
|&#8242; |
||
| |
|||
|<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 68: | ||
|- |
|- |
||
|{{Tl|braces}} |
|{{Tl|braces}} |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 61: | Line 77: | ||
|- |
|- |
||
|{{Tl|bracket}} |
|{{Tl|bracket}} |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 69: | Line 86: | ||
|- |
|- |
||
|{{Tl|brackets}} |
|{{Tl|brackets}} |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 79: | Line 97: | ||
| |
| |
||
|&#32; |
|&#32; |
||
| |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>green{{sp}}and blue </nowiki></code> |
|<code><nowiki>green{{sp}}and blue </nowiki></code> |
||
| Line 87: | Line 106: | ||
| |
| |
||
|&#58; |
|&#58; |
||
| |
|||
|{{smallcaps|no parameters}} |
|{{smallcaps|no parameters}} |
||
|<code><nowiki>{{colon}}</nowiki></code> |
|<code><nowiki>{{colon}}</nowiki></code> |
||
| Line 95: | Line 115: | ||
| |
| |
||
|&#124;&#124; |
|&#124;&#124; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 103: | Line 124: | ||
| |
| |
||
|&#91; |
|&#91; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 111: | Line 133: | ||
| |
| |
||
|&#93; |
|&#93; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 119: | Line 142: | ||
| |
| |
||
|&#91;&#91; |
|&#91;&#91; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 127: | Line 151: | ||
| |
| |
||
|&#93;&#93; |
|&#93;&#93; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 135: | Line 160: | ||
| |
| |
||
|&#123; |
|&#123; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 143: | Line 169: | ||
| |
| |
||
|&#125; |
|&#125; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 151: | Line 178: | ||
| |
| |
||
|&#123;&#123; |
|&#123;&#123; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 159: | Line 187: | ||
| |
| |
||
|&#125;&#125; |
|&#125;&#125; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 167: | Line 196: | ||
| |
| |
||
|&#123;&#123;&#123; |
|&#123;&#123;&#123; |
||
| |
|||
| |
| |
||
| |
| |
||
| Line 175: | Line 205: | ||
| |
| |
||
|&#125;&#125;&#125; |
|&#125;&#125;&#125; |
||
| |
|||
| |
| |
||
| |
| |
||
Revision as of 16:15, 1 November 2020
Character Substitution
| Template | Shortcut /
Alternative |
HTML
decimal code |
Usage | Example | Rendered | Description | |
|---|---|---|---|---|---|---|---|
| Decimal | Named | ||||||
| {{=}} | {{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}} | |||||
| {{flowlist}} | |||||
| {{columns-list}} |
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>
|