Template:Semantic markup templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
meta>Sardanaphalus
Navbox
Line 1: Line 1:
<!---
{{Navbox
  Transcluded by the /doc pages of the templates listed
| name = Semantic markup templates
| title = {{c|Semantic markup templates}}
| liststyle = font-size:110%;


---><div style="float:right;padding:0 1.0em;">{{navbar|Semantic templates see also|plain=y}}</div>
| list1 =
{{Aligned table
  {{Aligned table
|cols=3 |style=cellspacing:0;cellpadding:1;line-height:1.35em;
  |cols=3 |class=sortable |style=margin:0 13% 0 16.5%;<!--cellspacing:0;cellpadding:1;-->line-height:1.35em;text-align:left;
|col1style=white-space:nowrap;padding-right:2.0em;
  |colstyle=vertical-align:middle;white-space:nowrap;padding-right:2.0em;
|col2style=white-space:nowrap;padding-right:2.0em;
  |col3style=white-space:normal;
  |row1style=font-size:105%;line-height:1.6em;font-weight:bold;border-bottom:1px solid #aaa;
  | Template&nbsp;    | Example output&nbsp;                | Use&nbsp;


|row1style=font-size:115%;line-height:1.8em;
   | {{tl|strong}}    | {{strong|strong semantic emphasis}} | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] emphasis instead of (or as well as) simple typographical boldfacing.
| '''Template'''   | '''Example output'''
  | {{tl|strongbad}}  | "{{strongbad|Never}} use..."       | Same as {{braces|strong}} but in red.
| '''Use'''
  | {{tl|stronggood}} | "{{stronggood|Only}} use..."       | Same as {{braces|strong}} but in green.
 
  | {{tl|em}}        | {{em|mild semantic emphasis}}       | As per {{braces|strong}} but for the milder [[HTML element#em|<nowiki><em></nowiki>]] emphasis (instead of{{\}}as well as typographical italicization).
| {{tl|strong}}    | {{strong|strong semantic emphasis}}
  | {{tl|var}}        | {{var|strPrefix}}                   | To indicate text is a variable name. Use for any variables except those whose names include "I" (uppercase&nbsp;i) and/or "l" (lowercase&nbsp;L), where {{braces|varserif}} below should be used instead to ensure a distinction between these letters is noticeable.
| To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] emphasis instead of (or as well as) simple typographical boldfacing.
  | {{tl|varserif}}  | {{varserif|strIllustratePrefix}}   | (see {{braces|var}} above)
 
  | {{tl|wikivar}}    | {{wikivar|PAGENAME}}{{nbsp|2}}{{wikivar|DEFAULTSORT|Y, X}} | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code.
| {{tl|strongbad}}  | "{{strongbad|Never}} use..."
  | {{tl|para}}      | {{para|title}} &nbsp; {{para|year|2008}} | To display template parameters with or without values.
| Same as {{braces|strong}} but in red.
  | {{tl|param}}      | {{param|title}} &nbsp; {{param|title|alt}} &nbsp; etc. | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{braces|para}} above.
 
  | {{tl|tlx}} etc.  | {{tlx|Template|''first parameter''|...}} | To display a template call (with or without parameters and values) as code.
| {{tl|stronggood}} | "{{stronggood|Only}} use..."
  | {{tl|tag}}        | "With HTML {{tag|img}} tags..."     | To render [[HTML element]]s ("tags") as prose.
| Same as {{braces|strong}} but in green.
  | {{tl|code}}      | "Always include the {{code|1=alt=}} parameter..." | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}.
 
  | {{tlsubst|codenowiki}} | {{plaincode|&lt;code&gt;&lt;nowiki&gt; {{var|code}} &lt;/nowiki&gt;&lt;/code&gt;}} | To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags.
| {{tl|em}}        | {{em|mild semantic emphasis}}
  | {{tl|syntaxhighlight}} |                               | ''({{thinsp|or {{tl|sxhl}}}})''{{nbsp|2}}Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text.
| As per {{braces|strong}} but for the milder [[HTML element#em|<nowiki><em></nowiki>]] emphasis (instead of{{\}}as well as typographical italicization).
  | {{tl|deprecated code}} | "Do not use {{deprecated code|&lt;blink&gt;}}." | ''({{thinsp|or {{tl|dc}}}})''&nbsp; To indicate [[Deprecation|deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tl|dc2}} variant uses strike-through: {{dc2|&lt;blink&gt;}}, and {{tlx|dc|red{{=}}y}} uses red: {{dc|red=y|&lt;blink&gt;}}.
 
  | {{tl|pre}}        |                                     | For larger blocks of source code and other pre-formatted text.
| {{tl|var}}        | {{var|strPrefix}}
  | {{tl|bq}}        |                                     | For indented blocks of content, such as block quotations, examples, poems, etc.
| To indicate text is a variable name. Use for any variables except those whose names include "I" (uppercase&nbsp;i) and/or "l" (lowercase&nbsp;L), where {{braces|varserif}} below should be used instead to ensure a distinction between these letters is noticeable.
  | {{tl|kbd}}        | {{kbd|user input}}                 | To indicate user input.
 
  | {{tl|key press}}  | {{key press|Ctrl}}{{key press|X}}   | To indicate specific-keystroke input.
| {{tl|varserif}}  | {{varserif|strIllustratePrefix}}
  | {{tl|pskeypress}} | {{lower|0.2em|{{pskeypress|x}}}}   | To indicate PlayStation-style gamepad key presses.
| (see {{braces|var}} above).
  | {{tl|samp}}      | {{samp|example output}}             | To indicate sample or example output.
 
  }}
| {{tl|wikivar}}    | {{wikivar|PAGENAME}}{{nbsp|2}}{{wikivar|DEFAULTSORT|Y, X}}
| To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code.
 
| {{tl|para}}      | {{para|title}}{{nbsp|2}}{{para|year|2008}}
| To display template parameters with or without values.
 
| {{tl|param}}      | {{param|title}}{{nbsp|2}}{{param|title|alt}}{{nbsp|2}}etc.
| To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{braces|para}} above.
 
| {{tl|tlx}} etc.  | {{tlx|Template|''first parameter''|...}}
| To display a template call (with or without parameters and values) as code.
 
| {{tl|tag}}        | "With HTML {{tag|img}} tags..."
| To render [[HTML element]]s ("tags") as prose.
 
| {{tl|code}}      | "Always include the {{code|1=alt=}} parameter..."
| To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}.
 
| <nowiki>{{subst</nowiki>:[[Template:CoNo|CoNo]]<nowiki>}}</nowiki>      | <code>&lt;code&gt;&lt;nowiki&gt;{{var|your code}}&lt;/nowiki&gt;&lt;/code&gt;
| To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags.
 
| {{tl|syntaxhighlight}} |  
| ''({{thinsp|or {{tl|sxhl}}}})''{{nbsp|2}}Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text.
 
| {{tl|deprecated code}} | "Do not use {{deprecated code|&lt;blink&gt;}}."
| ''({{thinsp|or {{tl|dc}}}})''&nbsp; To indicate [[Deprecation|deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tl|dc2}} variant uses strike-through: {{dc2|&lt;blink&gt;}}, and {{tlx|dc|red{{=}}y}} uses red: {{dc|red=y|&lt;blink&gt;}}.
| {{tl|pre}}        |  
| For larger blocks of source code and other pre-formatted text.
 
| {{tl|bq}}        |  
| For indented blocks of content, such as block quotations, examples, poems, etc.
 
| {{tl|kbd}}        | {{kbd|user input}}
| To indicate user input.
 
| {{tl|key press}}  | {{key press|Ctrl}}{{key press|X}}
| To indicate specific-keystroke input.
 
| {{tl|pskeypress}} | {{lower|0.2em|{{pskeypress|x}}}}
| To indicate PlayStation-style gamepad key presses.
 
| {{tl|samp}}      | {{samp|example output}}
| To indicate sample or example output.


}}<noinclude>{{Documentation}}</noinclude>
}}<noinclude>{{Documentation}}</noinclude>

Revision as of 14:35, 6 December 2014