Help:Template cheatsheet: Difference between revisions
Appearance
Content deleted Content added
Caleb Cooper (talk | contribs) |
Caleb Cooper (talk | contribs) |
||
| Line 141: | Line 141: | ||
|- |
|- |
||
|{{Tl|highlight}} |
|{{Tl|highlight}} |
||
|{{Tl| |
|{{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 264: | Line 264: | ||
|+ |
|+ |
||
!Template |
!Template |
||
!Shortcut / |
|||
Alternative |
|||
!HTML Tag |
!HTML Tag |
||
!Usage |
!Usage |
||
| Line 271: | Line 274: | ||
|- |
|- |
||
|{{Tl|pre}} |
|{{Tl|pre}} |
||
| |
|||
|<code><nowiki><pre></nowiki></code> |
|<code><nowiki><pre></nowiki></code> |
||
| |
| |
||
| Line 278: | Line 282: | ||
|- |
|- |
||
|{{Tl|pre2}} |
|{{Tl|pre2}} |
||
| |
|||
|<code><nowiki><pre></nowiki></code> |
|<code><nowiki><pre></nowiki></code> |
||
| |
| |
||
| Line 285: | Line 290: | ||
|- |
|- |
||
|{{Tl|code}} |
|{{Tl|code}} |
||
| |
|||
|<code><nowiki><code></nowiki></code> |
|<code><nowiki><code></nowiki></code> |
||
| |
| |
||
| Line 292: | Line 298: | ||
|- |
|- |
||
|{{Tl|hr}} |
|{{Tl|hr}} |
||
| |
|||
|<code><nowiki><hr></nowiki></code> |
|<code><nowiki><hr></nowiki></code> |
||
| |
| |
||
| Line 299: | Line 306: | ||
|- |
|- |
||
|{{Tl|break}} |
|{{Tl|break}} |
||
| |
|||
|<code><nowiki><br /></nowiki></code> |
|<code><nowiki><br /></nowiki></code> |
||
| |
| |
||
| Line 306: | Line 314: | ||
|- |
|- |
||
|{{Tl|clear}} |
|{{Tl|clear}} |
||
|{{Tl|br}} |
|||
|<code><nowiki><div style="clear: both;"></nowiki></code> |
|<code><nowiki><div style="clear: both;"></nowiki></code> |
||
| |
| |
||
| Line 313: | Line 322: | ||
|- |
|- |
||
|{{Tl|abbr}} |
|{{Tl|abbr}} |
||
| |
|||
|<code><nowiki><abbr></nowiki></code> |
|<code><nowiki><abbr></nowiki></code> |
||
| |
| |
||
| Line 320: | Line 330: | ||
|- |
|- |
||
|{{Tl|quote}} |
|{{Tl|quote}} |
||
| |
|||
|<code><nowiki><blockquote></nowiki></code> |
|<code><nowiki><blockquote></nowiki></code> |
||
| |
| |
||
| Line 326: | Line 337: | ||
| |
| |
||
|- |
|- |
||
|{{Tl|citation}} |
|||
|{{Tl|cite}} |
|{{Tl|cite}} |
||
|<code><nowiki><cite></nowiki></code> |
|<code><nowiki><cite></nowiki></code> |
||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|strikethrough}} |
|||
|{{Tl|strike}} |
|||
|<code><nowiki><del></nowiki></code> |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|underline}} |
|||
|{{Tl|under}} |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|strong}} |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|em}} |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|dfn}} |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|kbd}} |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|- |
|||
|{{Tl|highlight}} |
|||
|{{Tl|h}} |
|||
| |
|||
| |
| |
||
| |
| |
||
Revision as of 09:28, 1 November 2020
HTCharacter Substitution
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{=}} | {{eq}} | no parameters | {{eq}}
|
= | Escapes "=". Allows "=" to be used in unnamed template parameters. |
| {{!}} | na | no parameters | {{!}}
|
| | Escapes "|". Used to encode "|" within template parameters or wikitables. |
| {{'}} | {{apostrophe}} | no parameters | The ''Iliad''{{'}}s vocabulary is archaic.
|
The Iliad's vocabulary is archaic. | Used to encode apostrophe to keep it separate from ('') wiki markup.
|
| {{`}} | na | no parameters | ... that '''[[Wikipedia:Bhutan|Bhutan]]'''{{`}}s capital is [[Wikipedia:Thimphu|Thimphu]]?
|
... that Bhutan's capital is Thimphu? | Used to encode apostrophe to keep it separate from (''') wiki markup.
|
| {{′}} | {{prime}} | {{′|text}} or text{{′}}s
|
''{{′|f}}''(''{{′|x}}'') ≥ 0
|
f′(x′) ≥ 0 | Used to encode prime symbol with leading space so it does not collide with a preceding italic character |
| {{braces}} | {{braces|code=on/off |Templatename|item1|item2}}
|
{{braces|Templatename}}
|
{{Templatename}} | ||
| {{bracket}} | {{bracket|text}}
|
{{bracket|test}}
|
[test] | ||
| {{brackets}} | {{brackets|text}} or {{brackets|text|more}}
|
{{brackets|test}}
|
[[test]] |
Alignment
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{right}} | |||||
| {{left}} | |||||
| {{center}} | |||||
| {{float}} | |||||
| {{clear}} | |||||
| {{align}} | |||||
| {{stack}} |
Text Formatting
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{highlight}} | {{h}} | {{H|text|colour|expiry}}
|
some text with a {{H| highlighted | #00FF00 | 1 January 2099}} portion
|
some text with a highlighted portion | Colour and date are optional Parameters, if a date is added the text will not be highlighted after the date has passed |
| {{em}} | |||||
| {{strong}} | |||||
| {{nowrap}} | |||||
| {{pad}} |
Lists
| Template | Shortcut /
Alternative |
Usage | Example | Rendered | Description |
|---|---|---|---|---|---|
| {{hlist}} | |||||
| {{plainlist}} | |||||
| {{cslist}} | |||||
| {{flatlist}} | |||||
| {{bulleted list}} | |||||
| {{ordered list}} | |||||
| {{unbulleted list}} | |||||
| {{glossary}} | |||||
| {{flowlist}} | |||||
| {{columns-list}} |
HTML tag alternatives
| Template | Shortcut /
Alternative |
HTML Tag | Usage | Example | Rendered | Description |
|---|---|---|---|---|---|---|
| {{pre}} | <pre>
|
|||||
| {{pre2}} | <pre>
|
|||||
| {{code}} | <code>
|
|||||
| {{hr}} | <hr>
|
|||||
| {{break}} | <br />
|
|||||
| {{clear}} | {{br}} | <div style="clear: both;">
|
||||
| {{abbr}} | <abbr>
|
|||||
| {{quote}} | <blockquote>
|
|||||
| {{citation}} | {{cite}} | <cite>
|
||||
| {{strikethrough}} | {{strike}} | <del>
|
||||
| {{underline}} | {{under}} | |||||
| {{strong}} | ||||||
| {{em}} | ||||||
| {{dfn}} | ||||||
| {{kbd}} | ||||||
| {{highlight}} | {{h}} |