Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Help
Introduction to techRepo
Quick links
Main site
GitHub
SNS
Instagram
LinkedIn
X (Twitter)
YouTube
Search
Search
English
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Semantic markup templates
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Information about this page.
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Navbox | name = Semantic markup templates | state = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}} | title = {{c|Semantic markup templates}} | liststyle = font-size:110%; | tracking = no <!-- keep the documented templates out of the hlist tracking category --> | list1 = {{Aligned table |cols=3 |class=wikitable sortable |style=line-height:1.35em;text-align:left; |colstyle=<!--vertical-align:middle;-->padding-right:1.0em; |col2style=white-space:nowrap; |col3style=white-space:normal; |row1style=line-height:1.6em; |row1header=on | Template | Example output | Use | {{tlb|strong}} | {{strong|Important!}} | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] importance, seriousness, or urgency instead of just 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}} | "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) | {{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|var serif}} should be used to ensure a noticeable distinction | {{tlb|var serif}} | {{var serif|strIllustratePrefix}} | (see {{braces|var}} above) | {{tlb|mvar}} | Let {{mvar|x}} be the maximum value used. | Used to refer to individual variables in <math> ([[MOS:FORMULA|formula]]) elements in normal running text. | {{tlb|dfn}} | This {{dfn|term|Definition}} has a definition | To indicate a [[MOS:TERM|term]] defined in nearby text. | {{tlb|dfni}} | This {{dfni|term}} has a definition | Wrapper for {{tl|dfn}} that applies metadata and italic styling. | {{tlb|lang}} | She said: "{{lang|fr|Je suis française.}}" | Indicate that a piece of text belongs to a particular language other than that of the page as a whole. | {{tlb|tlc}}/{{tlb|tld}} | {{tld|DEFAULTSORT:Y, X}} | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code | {{tlb|parameter}} | {{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|parameter}} above | {{tlb|param value}}| {{pvalue| 2 blanks fore and aft |space=·}} | To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with [[middot]] (·) but can use ␠, ▯, or any character. | {{tlb|tlx}} etc. | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}} | To display a template call (with or without parameters and values) as code | {{tlb|tag}} | {{resize|95%|"The {{tag|img}} tags ..."}} | To render [[HTML element]]s ("tags") in prose | {{tlb|code}}/{{tlb|codett}} | "Ensure the {{code|1=alt=}} parameter ..." | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}. {{tl|codett}} differs only in styling: {{code|someMethod}} becomes {{codett|someMethod}} | {{tlb|PreCode}} | {{resize|95%|"[[Forth (programming language)|FORTH]] has keyword {{PreCode|?BRANCH}}."}} | Like {{tlb|code}}, but prevents line breaks inside the code. Only for very short code parts. | {{tlg|bold=y|subst=y|codenowiki}} | <code><nowiki>{{small|small text example}}</nowiki></code> | To wrap example code in {{code|<code><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></code>}} | {{tlg|bold=y|subst=y|kbdnowiki}} | <kbd><nowiki>{{large|large text example}}</nowiki></kbd> | To wrap example code in {{code|<kbd><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></kbd>}} | {{tlb|syntaxhighlight}} | {{syntaxhighlight|border=no|lang=html|line=1|highlight=2|code= <table align=center style="background: ivory">}} | ({{thin space|or {{tlx|sxhl}}}}) Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text | {{tlb|deprecated code}} | "Do not use {{tag|{{deprecated code|blink}}|o}}." | ({{thin space|or {{tlx|dc}}}}) To indicate [[deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tlx|dc2}} variant uses strike-through ({{tag|{{dc2|blink}}|o}}) while {{tlx|dcr}} uses red ({{tag|{{dcr|blink}}|o}}). | {{tlb|pre}} | {{pre|You miss '''100%''' of the shots you don't take}} | For larger blocks of source code and other pre-formatted text | {{tlb|blockquote}} | {{blockquote|No good deed<br />goes unpunished}}| For block quotations (only – never for non-quotations) | {{tlb|block indent}} | {{block indent|Hurry and succumb<br />to temptation before it<br />goes away}} | For indented blocks of material; visually identical to {{tlx|quote}} but without quote markup | {{tlb|kbd}} | {{kbd|user input}} | To indicate user input | {{tlb|key press}} | {{key press|Ctrl|x}} | To indicate specific-keystroke input, including combinations | {{tlb|key top}} | {{key top|Left shift}} | Similar; includes more symbols, but does not directly support combinations | {{tlb|button}} | {{button|Don't save}} | To indicate a button in a user interface | {{tlb|samp}} | {{samp|example output}} | To indicate sample or example output }} }}<noinclude>{{documentation}}</noinclude>
Summary:
Please note that all contributions to ARC Technical Repository may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TechRepo:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:((
(
edit
)
Template:))
(
edit
)
Template:Aligned table
(
edit
)
Template:Block indent
(
edit
)
Template:Block indent/styles.css
(
edit
)
Template:Blockquote
(
edit
)
Template:Blockquote/styles.css
(
edit
)
Template:Braces
(
edit
)
Template:Button
(
edit
)
Template:C
(
edit
)
Template:Category link without namespace
(
edit
)
Template:Code
(
edit
)
Template:Codett
(
edit
)
Template:Dc2
(
edit
)
Template:Dcr
(
edit
)
Template:Deprecated code
(
edit
)
Template:Deprecated code 2
(
edit
)
Template:Deprecated code red
(
edit
)
Template:Dfn
(
edit
)
Template:Dfni
(
edit
)
Template:Documentation
(
edit
)
Template:Em
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Ifsubst
(
edit
)
Template:Kbd
(
edit
)
Template:Kbd/styles.css
(
edit
)
Template:Key press
(
edit
)
Template:Key press/styles.css
(
edit
)
Template:Key top
(
edit
)
Template:Lang
(
edit
)
Template:Main other
(
edit
)
Template:Mvar
(
edit
)
Template:Navbox
(
edit
)
Template:Para
(
edit
)
Template:Param
(
edit
)
Template:Param value
(
edit
)
Template:Param value/styles.css
(
edit
)
Template:Parameter
(
edit
)
Template:Pre
(
edit
)
Template:Pre/styles.css
(
edit
)
Template:PreCode
(
edit
)
Template:Preformatted code
(
edit
)
Template:Pvalue
(
edit
)
Template:Replace
(
edit
)
Template:Resize
(
edit
)
Template:Samp
(
edit
)
Template:Source parameter
(
edit
)
Template:Str len
(
edit
)
Template:Strong
(
edit
)
Template:Strong bad
(
edit
)
Template:Strong good
(
edit
)
Template:Strongbad
(
edit
)
Template:Stronggood
(
edit
)
Template:Syntaxhighlight
(
edit
)
Template:Tag
(
edit
)
Template:Template link
(
edit
)
Template:Template link code
(
edit
)
Template:Template link expanded
(
edit
)
Template:Template link general
(
edit
)
Template:Template link with bold
(
edit
)
Template:Thin space
(
edit
)
Template:Tl
(
edit
)
Template:Tlb
(
edit
)
Template:Tld
(
edit
)
Template:Tlg
(
edit
)
Template:Tlx
(
edit
)
Template:Var
(
edit
)
Template:Var serif
(
edit
)
Template:Var serif/styles.css
(
edit
)
Template:Yesno
(
edit
)
Module:Aligned table
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Color contrast
(
edit
)
Module:Color contrast/colors
(
edit
)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/styles.css
(
edit
)
Module:Key
(
edit
)
Module:Lang
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:Navbox/styles.css
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Semantic markup templates
Add languages
Add topic