Bản mẫu:Semantic markup templates
|
|---|
| Template | Example output | Use |
|---|
| Bản mẫu:Tlb | Important! | To indicate <strong> importance, seriousness, or urgency instead of just simple typographical boldfacing | | Bản mẫu:Tlb | "Never use ..." | Same as {{strong}} but in red | | Bản mẫu:Tlb | "Only use ..." | Same as {{strong}} but in green | | Bản mẫu:Tlb | "An emphatic phrase" | To indicate <em> stress emphasis (not just purely typographical italicization like for book titles or foreign terms) | | Bản mẫu:Tlb | 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, {{var serif}} should be used to ensure a noticeable distinction | | Bản mẫu:Tlb | strIllustratePrefix | (see {{var}} above) | | Bản mẫu:Tlb | {{DEFAULTSORT:Y, X}} | To display wikicode variables and magic words as they would appear in code | | Bản mẫu:Tlb | |year=2008 | To display template parameters with or without values | | Bản mẫu:Tlb | {{{title|alt}}} | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{para}} above | | Bản mẫu:Tlb etc. | {{Template|1|2|...|10}} | To display a template call (with or without parameters and values) as code | | Bản mẫu:Tlb | "The <img>...</img> tags ..." | To render HTML elements ("tags") in prose | | Bản mẫu:Tlb/Bản mẫu:Tlb | "Ensure the alt= parameter ..." | To indicate text is source code. To nest other templates within {{code}}, use <code>...</code>. {{codett}} differs only in styling: someMethod becomes someMethod | | Bản mẫu:Tls | {{small|small text}} | To wrap example code in <code><nowiki>...</nowiki></code> | | Bản mẫu:Tls | {{big|big text}} | To wrap example code in <kbd><nowiki>...</nowiki></kbd> | | Bản mẫu:Tlb | [this is a block template] | ( or {{sxhl}} ) Wrapper for <syntaxhighlight>...</syntaxhighlight>, but will wrap overflowing text | | Bản mẫu:Tlb | "Do not use <blink>." | ( or {{dc}} ) To indicate deprecated source code in template documentation, articles on HTML specs, etc. The {{dc2}} variant uses strike-through (<blink>) while {{dcr}} uses red (<blink>). | | Bản mẫu:Tlb | [this is a block template] | For larger blocks of source code and other pre-formatted text | | Bản mẫu:Tlb | [this is a block template] | For block quotations (only – never for non-quotations) | | Bản mẫu:Tlb | [this is a block template] | For indented blocks of material; visually identical to {{quote}} but without quote markup | | Bản mẫu:Tlb | user input | To indicate user input | | Bản mẫu:Tlb | Ctrl+x | To indicate specific-keystroke input, including combinations | | Bản mẫu:Tlb | Left shift | Similar; includes more symbols, but does not directly support combinations | | Bản mẫu:Tlb | □ | To indicate PlayStation-style gamepad key presses | | Bản mẫu:Tlb | Don't save | To indicate a button in a user interface | | Bản mẫu:Tlb | example output | To indicate sample or example output |
|
Tài liệu bản mẫu[tạo]