Template:Semantic markup templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
style, col2style, col2 formatting
meta>Sardanaphalus
shorter example wording
Line 12: Line 12:
   |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;font-weight:bold;border-bottom:1px solid #aaa;
   | Template     | Example output                    | Use 
   | Template     | Example output                | Use 


   | {{tlb|strong}}    | {{strong|strong semantic emphasis}}     | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] emphasis instead of (or as well as) simple typographical boldfacing.
   | {{tlb|strong}}    | {{strong|strong semantic emphasis}} | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] emphasis instead of (or as well as) simple typographical boldfacing.
   | {{tlb|strongbad}}  | "{{strongbad|Never}} use..."           | Same as {{braces|strong}} but in red.
   | {{tlb|strongbad}}  | "{{strongbad|Never}} use..."       | Same as {{braces|strong}} but in red.
   | {{tlb|stronggood}} | "{{stronggood|Only}} use..."           | Same as {{braces|strong}} but in green.
   | {{tlb|stronggood}} | "{{stronggood|Only}} use..."       | 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).
   | {{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).
   | {{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.
   | {{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.
   | {{tlb|varserif}}  | {{varserif|strIllustratePrefix}}       | (see {{braces|var}} above)
   | {{tlb|varserif}}  | {{varserif|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.
   | {{tlb|wikivar}}    | {{wikivar|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.
   | {{tlb|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.
   | {{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.
   | {{tlb|tlx}} etc.  | {{tlx|Template|''1''|''2''|...|''10''}} | To display a template call (with or without parameters and values) as code.
   | {{tlb|tlx}} etc.  | {{tlx|Template|''1''|''2''|...|''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.
   | {{tlb|tag}}        | {{resize|95%|"HTML {{tag|img}} tags..."}} | To render [[HTML element]]s ("tags") as 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}}.
   | {{tlb|code}}      | {{resize|95%|"Ensure the {{code|1=alt=}} parameter..."}} | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}.


   | {{braces|subst:'''{{tlbare|codenowiki}}'''}}
   | {{braces|subst:'''{{tlbare|codenowiki}}'''}}
Line 35: Line 35:
   | {{tlb|pre}}        | | For larger blocks of source code and other pre-formatted text.
   | {{tlb|pre}}        | | For larger blocks of source code and other pre-formatted text.
   | {{tlb|bq}}        | | For indented blocks of content, such as block quotations, examples, poems, etc.
   | {{tlb|bq}}        | | For indented blocks of content, such as block quotations, examples, poems, etc.
   | {{tlb|kbd}}        | {{kbd|user input}}                     | To indicate user input.
   | {{tlb|kbd}}        | {{kbd|user input}}                 | To indicate user input.
   | {{tlb|key press}}  | {{key press|Ctrl}}{{key press|X}}       | To indicate specific-keystroke input.
   | {{tlb|key press}}  | {{key press|Ctrl}}{{key press|X}}   | To indicate specific-keystroke input.
   | {{tlb|pskeypress}} | {{lower|0.2em|{{pskeypress|x}}}}       | To indicate PlayStation-style gamepad key presses.
   | {{tlb|pskeypress}} | {{lower|0.2em|{{pskeypress|x}}}}   | To indicate PlayStation-style gamepad key presses.
   | {{tlb|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>

Revision as of 20:54, 6 December 2014