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}} &ndash; for semantically indicating {{strong|strong emphasis}} instead of simple typographical boldfacing
* {{tl|strong}} &ndash; For semantically indicating {{strong|strong emphasis}} instead of simple typographical boldfacing.
* {{tl|strongbad}} &ndash; same as {{tnull|strong}} but red like this: {{strongbad|Never}} use {{tnull|strongbad}} in articles.
* {{tl|strongbad}} &ndash; Same as {{tnull|strong}} but red like this: "{{strongbad|Never}} use {{tnull|strongbad}} in articles."
* {{tl|stronggood}} &ndash; same as {{tnull|strongbad}} but green like this: {{stronggood|Only}} use {{tnull|stronggood}} on non-article pages.
* {{tl|stronggood}} &ndash; Same as {{tnull|strongbad}} but green like this: "{{stronggood|Only}} use {{tnull|stronggood}} on non-article pages."
* {{tl|em}} &ndash; similar template for semantically indicating {{em|mild emphasis}} instead of simple typographical italicization
* {{tl|em}} &ndash; Similar template for semantically indicating {{em|mild emphasis}} instead of simple typographical italicization.
* {{tl|var}} &ndash; 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|var}} &ndash; 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}} &ndash; 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|varserif}} &ndash; 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}} &ndash; for displaying wikicode variables and magicwords as they would appear in source code, e.g. {{wikivar|PAGENAME}}, {{wikivar|DEFAULTSORT|Lastname, Firstname}}
* {{tl|wikivar}} &ndash; For displaying wikicode variables and magicwords as they would appear in source code, e.g. {{wikivar|PAGENAME}}, {{wikivar|DEFAULTSORT|Lastname, Firstname}}.
* {{tl|para}} &ndash; for displaying wiki template parameters ({{para|title}}) or parameters and values ({{para|year|2008}})
* {{tl|para}} &ndash; For displaying wiki template parameters ({{para|title}}) or parameters and values ({{para|year|2008}}).
* {{tl|tlx}} and related &ndash; for displaying entire templates (with or without parameters and values) as code
* {{tl|tlx}} and related &ndash; For displaying entire templates (with or without parameters and values) as code.
* {{tl|tag}} – for using HTML elements ("tags") in prose (e.g. "When coding HTML {{tag|img}} tags, always include ...")
* {{tl|tag}} – For using HTML elements ("tags") in prose (e.g. "When coding HTML {{tag|img}} tags, always include …").
* {{tl|code}} &ndash; 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|code}} &ndash; 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}} – wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text
* {{tl|syntaxhighlight}} or {{tl|sxhl}} – Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text.
* {{tl|deprecated code}} or {{tl|dc}} &ndash; for deprecated source code in template documentation, articles on HTML specs, etc.
* {{tl|deprecated code}} or {{tl|dc}} &ndash; For deprecated source code in template documentation, articles on [[HTML]] specs, etc.
* {{tl|pre}} – for larger blocks of source code and other pre-formatted text
* {{tl|pre}} – For larger blocks of source code and other pre-formatted text.
* {{tl|bq}} &ndash; for indented blocks of content, such as block quotations, examples, poems, etc.
* {{tl|bq}} &ndash; For indented blocks of content, such as block quotations, examples, poems, etc.
* {{tl|kbd}} &ndash; for indicating {{kbd|user input}}
* {{tl|kbd}} &ndash; For indicating {{kbd|user input}}.
* {{tl|key press}} &ndash; for indicating the input of specific keystrokes, e.g. {{key press|Ctrl}}{{key press|X}}
* {{tl|key press}} &ndash; For indicating the input of specific keystrokes, e.g. {{key press|Ctrl}}{{key press|X}}.
* {{tl|PlayStation key press}} &ndash; for indicating PS-style gamepad key presses, e.g. {{pskeypress|x}}
* {{tl|PlayStation key press}} &ndash; For indicating PlayStation-style gamepad key presses, e.g. {{pskeypress|x}}.
* {{tl|samp}} &ndash; for {{samp|example output}}<!--
* {{tl|samp}} &ndash; 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.