Template:Semantic markup templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
style, col2style, col2 formatting
Ookami (talk | contribs)
m 60 revisions imported
 
(22 intermediate revisions by 9 users not shown)
Line 11: Line 11:
   |colstyle=<!--vertical-align:middle;-->padding-right:1.0em;
   |colstyle=<!--vertical-align:middle;-->padding-right:1.0em;
   |col2style=white-space:nowrap; |col3style=white-space:normal;
   |col2style=white-space:nowrap; |col3style=white-space:normal;
   |row1style=line-height:1.6em;font-weight:bold;border-bottom:1px solid #aaa;
   |row1style=line-height:1.6em;
   | Template&nbsp;     | Example output&nbsp;                   | Use&nbsp;
  |row1header=on
   | Template&nbsp;     | Example output&nbsp;                                 | Use&nbsp;


   | {{tlb|strong}}    | {{strong|strong semantic emphasis}}     | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] emphasis instead of (or as well as) simple typographical boldfacing.
   | {{tlxb|strong}}    | {{strong|Important!}}                               | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] importance, seriousness, or urgency instead of just simple typographical boldfacing
   | {{tlb|strongbad}}  | "{{strongbad|Never}} use..."           | Same as {{braces|strong}} but in red.
   | {{tlxb|strongbad}}  | "{{strongbad|Never}} use&thinsp;..."                 | Same as {{braces|strong}} but in red
   | {{tlb|stronggood}} | "{{stronggood|Only}} use..."           | Same as {{braces|strong}} but in green.
   | {{tlxb|stronggood}} | "{{stronggood|Only}} use&thinsp;..."                 | Same as {{braces|strong}} but in green
   | {{tlb|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).
   | {{tlxb|em}}        | "An {{em|emphatic phrase}}"                          | To indicate [[HTML element#em|<nowiki><em></nowiki>]] stress emphasis (not just purely typographical italicization like for book titles or foreign terms)
   | {{tlb|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.
   | {{tlxb|var}}        | {{var|strPrefix}}                                   | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase&nbsp;i) and/or "l" (lowercase&nbsp;L); for these, {{braces|var serif}} should be used to ensure a noticeable distinction
   | {{tlb|varserif}}  | {{varserif|strIllustratePrefix}}       | (see {{braces|var}} above)
   | {{tlxb|var serif}}  | {{var serif|strIllustratePrefix}}                     | (see {{braces|var}} above)
   | {{tlb|wikivar}}   | {{wikivar|DEFAULTSORT|Y, X}}           | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code.
   | {{tlxb|tld}}       | {{tld|DEFAULTSORT:Y, X}}                             | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code
   | {{tlb|para}}      | {{para|year|2008}}                     | To display template parameters with or without values.
   | {{tlxb|para}}      | {{para|year|2008}}                                   | To display template parameters with or without values
   | {{tlb|param}}      | {{param|title|alt}}                     | 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.
   | {{tlxb|param}}      | {{param|title|alt}}                                 | 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
   | {{tlb|tlx}} etc.  | {{tlx|Template|''1''|''2''|...|''10''}} | To display a template call (with or without parameters and values) as code.
   | {{tlxb|tlx}} etc.  | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}}  | To display a template call (with or without parameters and values) as code
   | {{tlb|tag}}        | {{resize|95%|"With HTML {{tag|img}} tags..."}} | To render [[HTML element]]s ("tags") as prose.
   | {{tlxb|tag}}        | {{resize|95%|"The {{tag|img}} tags&thinsp;..."}}     | To render [[HTML element]]s ("tags") in prose
   | {{tlb|code}}       | {{resize|95%|"Always include the {{code|1=alt=}} parameter..."}} | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}.
   | {{tlxb|code}}/{{tlxb|codett}} | {{nowrap|{{resize|95%|"Ensure the {{code|1=alt=}} parameter&thinsp;..."}}}}  | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}. {{tl|codett}} differs only in styling: {{code|someMethod}} becomes  {{codett|someMethod}}
  | {{tlxs|codenowiki}} | <code><nowiki>{{small|small text}}</nowiki></code>  | To wrap example code in {{code|<code><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></code>}}
  | {{tlxs|kbdnowiki}}  | <kbd><nowiki>{{big|big text}}</nowiki></kbd>        | To wrap example code in {{code|<kbd><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></kbd>}}


   | {{braces|subst:'''{{tlbare|codenowiki}}'''}}
   | {{tlxb|syntaxhighlight}}       | &nbsp; &nbsp; <sub>[this is a block template]</sub> | ({{thin space|or {{tlx|sxhl}}}})&nbsp; Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text
  | {{longitem|style=font-size:95%;font-family:monospace; |&lt;code&gt;&lt;nowiki&gt;&nbsp;{{var|code}}&nbsp;...<br/>...&lt;/nowiki&gt;&lt;/code&gt;}}
   | {{tlxb|deprecated code}}       | "Do not use {{tag|{{deprecated code|blink}}|o}}."   | ({{thin space|or {{tlx|dc}}}})&nbsp; To indicate [[Deprecation|deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tlx|dc2}} variant uses {{nowrap|strike-through}} ({{tag|{{dc2|blink}}|o}}) while {{tlx|dcr}} uses red ({{tag|{{dcr|blink}}|o}}).
  | To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags.
   | {{tlxb|pre}}                   | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For larger blocks of source code and other pre-formatted text
 
   | {{tlxb|quote}}                | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For block quotations (only – never for non-quotations)
  | {{tlb|syntaxhighlight}} | | ''({{thinsp|or {{tl|sxhl}}}})''&nbsp; Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text.
  | {{tlxb|block indent}}         | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For indented blocks of material; visually identical to {{tlx|quote}} but without quote markup
   | {{tlb|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 {{nowrap|strike-through}} ({{dc2|&lt;blink&gt;}}) while {{mono|<nowiki>{{dc|red{{=}}y}}</nowiki>}} uses red ({{dc|red=y|&lt;blink&gt;}}).
   | {{tlxb|kbd}}                   | {{kbd|user input}}                                 | To indicate user input
   | {{tlb|pre}}       | | For larger blocks of source code and other pre-formatted text.
   | {{tlxb|key press}}             | {{key press|Ctrl|x}}                               | To indicate specific-keystroke input, including combinations
   | {{tlb|bq}}         | | For indented blocks of content, such as block quotations, examples, poems, etc.
  | {{tlxb|key top}}              | {{key top|Left shift}}                              | Similar; includes more symbols, but does not directly support combinations
   | {{tlb|kbd}}       | {{kbd|user input}}                     | To indicate user input.
   | {{tlxb|PlayStation key press}} | {{lower|0.17em|{{PlayStation key press|square}}}}   | To indicate PlayStation-style gamepad key presses<span style{{=}}"display: inline-block; padding-top: 0.3em; padding-bottom: 0.1em;">&nbsp;</span>
   | {{tlb|key press}} | {{key press|Ctrl}}{{key press|X}}       | To indicate specific-keystroke input.
  | {{tlxb|button}}                | {{button|Don't save}}                              | To indicate a button in a user interface
   | {{tlb|pskeypress}} | {{lower|0.2em|{{pskeypress|x}}}}       | To indicate PlayStation-style gamepad key presses.
   | {{tlxb|samp}}                 | {{samp|example output}}                             | To indicate sample or example output
   | {{tlb|samp}}       | {{samp|example output}}                 | To indicate sample or example output.
   }}
   }}


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

Latest revision as of 00:59, 3 September 2020