Template | Example output | Use |
---|
{{Template:Semantic markup templates}} | Important! | To indicate <strong> importance, seriousness, or urgency instead of just simple typographical boldfacing |
{{Template:Semantic markup templates}} | "Never use ..." | Same as {{strong}} but in red |
{{Template:Semantic markup templates}} | "Only use ..." | Same as {{strong}} but in green |
{{Template:Semantic markup templates}} | "An emphatic phrase" | To indicate <em> stress emphasis (not just purely typographical italicization like for book titles or foreign terms) |
{{Template:Semantic markup templates}} | strPrefix | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{var serif}} should be used to ensure a noticeable distinction |
{{Template:Semantic markup templates}} | strIllustratePrefix | (see {{var}} above) |
{{Template:Semantic markup templates}} | Lua error in Module:Template_link_general at line 144: attempt to concatenate local 'titlePart' (a nil value). | To display wikicode variables and magic words as they would appear in code |
{{Template:Semantic markup templates}} | |year=2008 | To display template parameters with or without values |
{{Template:Semantic markup templates}} | {{{title|alt}}} | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{para}} above |
{{Template:Semantic markup templates}} | ··2·blanks·fore·and·aft·· | To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with middot (·) but can use ␠, ▯, or any character. |
{{Template:Semantic markup templates}} etc. | {{Template|1|2|...|10}} | To display a template call (with or without parameters and values) as code |
{{Template:Semantic markup templates}} | "The <img>...</img> tags ..." | To render HTML elements ("tags") in prose |
{{Template:Semantic markup templates}}/{{Template:Semantic markup templates}} | "Ensure the alt= parameter ..." | To indicate text is source code. To nest other templates within {{code}}, use <code>...</code> . {{codett}} differs only in styling: someMethod becomes someMethod |
{{subst :codenowiki}} | {{small|small text}} | To wrap example code in <code><nowiki>...</nowiki></code> |
{{subst :kbdnowiki}} | {{big|big text}} | To wrap example code in <kbd><nowiki>...</nowiki></kbd> |
{{Template:Semantic markup templates}} | [this is a block template] | ( or {{sxhl}} ) Wrapper for <syntaxhighlight>...</syntaxhighlight> , but will wrap overflowing text |
{{Template:Semantic markup templates}} | "Do not use <blink> ." | ( or {{dc}} ) To indicate deprecated source code in template documentation, articles on HTML specs, etc. The {{dc2}} variant uses strike-through (<blink> ) while {{dcr}} uses red (<blink> ). |
{{Template:Semantic markup templates}} | [this is a block template] | For larger blocks of source code and other pre-formatted text |
{{Template:Semantic markup templates}} | [this is a block template] | For block quotations (only – never for non-quotations) |
{{Template:Semantic markup templates}} | [this is a block template] | For indented blocks of material; visually identical to {{quote}} but without quote markup |
{{Template:Semantic markup templates}} | user input | To indicate user input |
{{Template:Semantic markup templates}} | Ctrl+x | To indicate specific-keystroke input, including combinations |
{{Template:Semantic markup templates}} | Left shift | Similar; includes more symbols, but does not directly support combinations |
{{Template:Semantic markup templates}} | ☐ | To indicate PlayStation-style gamepad key presses<span style=
Error: The retired template {{Template:Semantic markup templates}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character."display: inline-block; padding-top: 0.3em; padding-bottom: 0.1em;"> |
{{Template:Semantic markup templates}} | Don't save | To indicate a button in a user interface |
{{Template:Semantic markup templates}} | example output | To indicate sample or example output |