Шаблон:Semantic markup templates — разлика између измена
Пређи на навигацију
Пређи на претрагу
| [непроверена измена] | [непроверена измена] |
Нема описа измене |
м (1 измена увезена) |
||
| (Једна међуизмена истог корисника није приказана) | |||
| Ред 11: | Ред 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; | |row1style=line-height:1.6em;font-weight:bold;border-bottom:1px solid #aaa; | ||
| Template | Example output | Use | |||
| Template | |||
| {{tlb|strong}} | {{strong| | | {{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 | | {{tlb|strongbad}} | "{{strongbad|Never}} use..." | Same as {{braces|strong}} but in red. | ||
| {{tlb|stronggood}} | "{{stronggood|Only}} use | | {{tlb|stronggood}} | "{{stronggood|Only}} use..." | Same as {{braces|strong}} but in green. | ||
| {{tlb|em}} | | | {{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}} | | {{tlb|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|varserif}} should be used to ensure a noticeable distinction. | ||
| {{tlb| | | {{tlb|varserif}} | {{varserif|strIllustratePrefix}} | (see {{braces|var}} above) | ||
| {{tlb| | | {{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}} | | {{tlb|para}} | {{para|year|2008}} | To display template parameters with or without values. | ||
| {{tlb|param}} | {{param|title|alt}} | | {{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| | | {{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%|"The {{tag|img}} tags | | {{tlb|tag}} | {{resize|95%|"The {{tag|img}} tags..."}} | To render [[HTML element]]s ("tags") as prose. | ||
| {{tlb|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}}'''}} | ||
| {{tlb|deprecated code}} | | {{longitem|style=font-size:95%;font-family:monospace; |<code><nowiki> {{var|code}} ...<br />...</nowiki></code>}} | ||
| {{tlb|pre}} | | | To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags. | ||
| {{tlb| | |||
| {{tlb|syntaxhighlight}} | | ''({{thinsp|or {{tl|sxhl}}}})'' Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text. | |||
| {{tlb|kbd}} | {{kbd|user input}} | | {{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|key press}} | {{key press|Ctrl| | | {{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|PlayStation key press}} | {{lower|0. | | {{tlb|kbd}} | {{kbd|user input}} | To indicate user input. | ||
| {{tlb|key press}} | {{key press|Ctrl}}{{key press|X}} | To indicate specific-keystroke input. | |||
| {{tlb|samp}} | {{samp|example output}} | | {{tlb|PlayStation key press}} | {{lower|0.2em|{{PlayStation key press|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> | ||
Тренутна верзија на датум 5. фебруар 2021. у 23:56
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permittedLua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted