Template:Semantic markup templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus Navbox |
meta>Sardanaphalus state, table margins, tlb/braces, syntax |
||
Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
| name = Semantic markup templates | | name = Semantic markup templates | ||
| state = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}} | |||
| title = {{c|Semantic markup templates}} | | title = {{c|Semantic markup templates}} | ||
| liststyle = font-size:110%; | | liststyle = font-size:110%; | ||
Line 6: | Line 7: | ||
| list1 = | | list1 = | ||
{{Aligned table | {{Aligned table | ||
|cols=3 |class=sortable |style=margin:0 | |cols=3 |class=sortable |style=margin:0 8% 0.5em 10%;text-align:left;line-height:1.35em; | ||
|colstyle=vertical-align:middle;white-space:nowrap;padding-right:2.0em; | |colstyle=<!--vertical-align:middle;-->white-space:nowrap;padding-right:2.0em; | ||
|col3style=white-space:normal; | |col3style=white-space:normal; | ||
|row1style=font-size:105%;line-height:1.6em;font-weight:bold;border-bottom:1px solid #aaa; | |row1style=font-size:105%;line-height:1.6em;font-weight:bold;border-bottom:1px solid #aaa; | ||
| Template | | 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|strongbad}} | "{{strongbad|Never}} use..." | Same as {{braces|strong}} but in red. | ||
| {{ | | {{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|var}} | {{var|strPrefix}} | To indicate text is a variable name. Use for any variables except those whose names include "I" (uppercase i) and/or "l" (lowercase 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|wikivar}} | {{hlist|{{wikivar|PAGENAME}}|{{wikivar|DEFAULTSORT|Y, X}}}} | ||
| {{ | | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code. | ||
| {{ | | {{tlb|para}} | {{hlist|{{para|title}}|{{para|year|2008}}}} | To display template parameters with or without values. | ||
| {{ | | {{tlb|param}} | {{hlist|{{param|title}}|{{param|title|alt}}|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. | ||
| {{ | | {{tlb|tlx}} etc. | {{tlx|Template|''first parameter''|...}} | To display a template call (with or without parameters and values) as code. | ||
| {{ | | {{tlb|tag}} | "With HTML {{tag|img}} tags..." | To render [[HTML element]]s ("tags") as prose. | ||
| {{ | | {{tlb|code}} | "Always include 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}}'''}} | {{plaincode|<code><nowiki> {{var|code}} </nowiki></code>}} | ||
| {{ | | To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags. | ||
| {{ | | {{tlb|syntaxhighlight}} | | ''({{thinsp|or {{tl|sxhl}}}})'' Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text. | ||
| {{ | | {{tlb|deprecated code}} | "Do not use {{deprecated code|<blink>}}." | ''({{thinsp|or {{tl|dc}}}})'' To indicate [[Deprecation|deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tl|dc2}} variant uses {{nowrap|strike-through}} ({{dc2|<blink>}}) while {{mono|<nowiki>{{dc|red{{=}}y}}</nowiki>}} uses red ({{dc|red=y|<blink>}}). | ||
| {{ | | {{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|kbd}} | {{kbd|user input}} | To indicate user 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|samp}} | {{samp|example output}} | To indicate sample or example output. | |||
}} | }} | ||
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> |