Template:Semantic markup templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Grolltech add some missing examples for clarity |
meta>Nnemo Notably harmonisation, accessibility, corrections |
||
Line 1: | Line 1: | ||
<!--This is transcluded into all these templates' /doc pages to save time.--> | <!-- This is transcluded into all these templates' /doc pages to save time. --> | ||
<div style="float:right; padding:0 1em;">{{navbar|Semantic templates see also|plain=y}}</div> | <div style="float: right; padding: 0 1em;">{{navbar|Semantic templates see also|plain=y}}</div> | ||
* {{tl|strong}} – | * {{tl|strong}} – For semantically indicating {{strong|strong emphasis}} instead of simple typographical boldfacing. | ||
* {{tl|strongbad}} – | * {{tl|strongbad}} – Same as {{tnull|strong}} but red like this: "{{strongbad|Never}} use {{tnull|strongbad}} in articles." | ||
* {{tl|stronggood}} – | * {{tl|stronggood}} – Same as {{tnull|strongbad}} but green like this: "{{stronggood|Only}} use {{tnull|stronggood}} on non-article pages." | ||
* {{tl|em}} – | * {{tl|em}} – Similar template for semantically indicating {{em|mild emphasis}} instead of simple typographical italicization. | ||
* {{tl|var}} – | * {{tl|var}} – Same as {{tl|varserif}} use for all variables (e.g. {{var|strIllustratePrefix}}), except for "I" (upper-case i) and "l" (lower-case L), for which use {{tl|varserif}}. | ||
* {{tl|varserif}} – | * {{tl|varserif}} – Same as {{tl|var}} but uses serif font (e.g. {{varserif|strIllustratePrefix}}), especially for distinguishing between "I" (upper-case i) and "l" (lower-case L) as variables. | ||
* {{tl|wikivar}} – | * {{tl|wikivar}} – For displaying wikicode variables and magicwords as they would appear in source code, e.g. {{wikivar|PAGENAME}}, {{wikivar|DEFAULTSORT|Lastname, Firstname}}. | ||
* {{tl|para}} – | * {{tl|para}} – For displaying wiki template parameters ({{para|title}}) or parameters and values ({{para|year|2008}}). | ||
* {{tl|tlx}} and related – | * {{tl|tlx}} and related – For displaying entire templates (with or without parameters and values) as code. | ||
* {{tl|tag}} – | * {{tl|tag}} – For using HTML elements ("tags") in prose (e.g. "When coding HTML {{tag|img}} tags, always include …"). | ||
* {{tl|code}} – | * {{tl|code}} – For computer source code (e.g. "always include the {{code|1=alt=}} parameter"). (Note: to nest other templates like {{tnull|var}} inside, use {{tag|code}} instead of {{tnull|code}}.) | ||
* {{tl|syntaxhighlight}} or {{tl|sxhl}} – | * {{tl|syntaxhighlight}} or {{tl|sxhl}} – Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text. | ||
* {{tl|deprecated code}} or {{tl|dc}} – | * {{tl|deprecated code}} or {{tl|dc}} – For deprecated source code in template documentation, articles on [[HTML]] specs, etc. | ||
* {{tl|pre}} – | * {{tl|pre}} – For larger blocks of source code and other pre-formatted text. | ||
* {{tl|bq}} – | * {{tl|bq}} – For indented blocks of content, such as block quotations, examples, poems, etc. | ||
* {{tl|kbd}} – | * {{tl|kbd}} – For indicating {{kbd|user input}}. | ||
* {{tl|key press}} – | * {{tl|key press}} – For indicating the input of specific keystrokes, e.g. {{key press|Ctrl}}{{key press|X}}. | ||
* {{tl|PlayStation key press}} – | * {{tl|PlayStation key press}} – For indicating PlayStation-style gamepad key presses, e.g. {{pskeypress|x}}. | ||
* {{tl|samp}} – | * {{tl|samp}} – For {{samp|example output}}.<!-- | ||
--><noinclude> | --><noinclude> | ||
<!-- ADD CATEGORIES AND INTERWIKIS TO THE /doc PAGE, NOT HERE, THANKS --> | <!-- ADD CATEGORIES AND INTERWIKIS LINKS TO THE /doc PAGE, NOT HERE, THANKS --> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:08, 16 May 2013
- {{strong}} – For semantically indicating strong emphasis instead of simple typographical boldfacing.
- {{strongbad}} – Same as
{{strong}}
but red like this: "Never use{{strongbad}}
in articles." - {{stronggood}} – Same as
{{strongbad}}
but green like this: "Only use{{stronggood}}
on non-article pages." - {{em}} – Similar template for semantically indicating mild emphasis instead of simple typographical italicization.
- {{var}} – Same as {{varserif}} use for all variables (e.g. strIllustratePrefix), except for "I" (upper-case i) and "l" (lower-case L), for which use {{varserif}}.
- {{varserif}} – Same as {{var}} but uses serif font (e.g. Template:Varserif), especially for distinguishing between "I" (upper-case i) and "l" (lower-case L) as variables.
- {{wikivar}} – For displaying wikicode variables and magicwords as they would appear in source code, e.g. Template:Wikivar, Template:Wikivar.
- {{para}} – For displaying wiki template parameters (
|title=
) or parameters and values (|year=2008
). - {{tlx}} and related – For displaying entire templates (with or without parameters and values) as code.
- {{tag}} – For using HTML elements ("tags") in prose (e.g. "When coding HTML
<img>...</img>
tags, always include …"). - {{code}} – For computer source code (e.g. "always include the
alt=
parameter"). (Note: to nest other templates like{{var}}
inside, use<code>...</code>
instead of{{code}}
.) - {{syntaxhighlight}} or {{sxhl}} – Wrapper for
<syntaxhighlight>...</syntaxhighlight>
, but will wrap overflowing text. - {{deprecated code}} or {{dc}} – For deprecated source code in template documentation, articles on HTML specs, etc.
- {{pre}} – For larger blocks of source code and other pre-formatted text.
- {{bq}} – For indented blocks of content, such as block quotations, examples, poems, etc.
- {{kbd}} – For indicating user input.
- {{key press}} – For indicating the input of specific keystrokes, e.g. CtrlX.
- {{PlayStation key press}} – For indicating PlayStation-style gamepad key presses, e.g. Template:Pskeypress.
- {{samp}} – For example output.