Template:Semantic markup templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Jay D. Easy +kbdnowiki; updated {{subst:codenowiki}} example and use |
m 60 revisions imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 19: | Line 19: | ||
| {{tlxb|stronggood}} | "{{stronggood|Only}} use ..." | Same as {{braces|strong}} but in green | | {{tlxb|stronggood}} | "{{stronggood|Only}} use ..." | Same as {{braces|strong}} but in green | ||
| {{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) | | {{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) | ||
| {{tlxb|var}} | {{var|strPrefix}} | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{braces| | | {{tlxb|var}} | {{var|strPrefix}} | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{braces|var serif}} should be used to ensure a noticeable distinction | ||
| {{tlxb| | | {{tlxb|var serif}} | {{var serif|strIllustratePrefix}} | (see {{braces|var}} above) | ||
| {{tlxb|tld}} | {{tld|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 | ||
| {{tlxb|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 | ||
Line 30: | Line 30: | ||
| {{tlxs|kbdnowiki}} | <kbd><nowiki>{{big|big text}}</nowiki></kbd> | To wrap example code in {{code|<kbd><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></kbd>}} | | {{tlxs|kbdnowiki}} | <kbd><nowiki>{{big|big text}}</nowiki></kbd> | To wrap example code in {{code|<kbd><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></kbd>}} | ||
| {{tlxb|syntaxhighlight}} | <sub>[this is a block template]</sub> | ({{ | | {{tlxb|syntaxhighlight}} | <sub>[this is a block template]</sub> | ({{thin space|or {{tlx|sxhl}}}}) Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text | ||
| {{tlxb|deprecated code}} | "Do not use {{tag|{{deprecated code|blink}}|o}}." | ({{ | | {{tlxb|deprecated code}} | "Do not use {{tag|{{deprecated code|blink}}|o}}." | ({{thin space|or {{tlx|dc}}}}) 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}}). | ||
| {{tlxb|pre}} | <sub>[this is a block template]</sub> | For larger blocks of source code and other pre-formatted text | | {{tlxb|pre}} | <sub>[this is a block template]</sub> | For larger blocks of source code and other pre-formatted text | ||
| {{tlxb|quote}} | <sub>[this is a block template]</sub> | For block quotations (only – never for non-quotations) | | {{tlxb|quote}} | <sub>[this is a block template]</sub> | For block quotations (only – never for non-quotations) |