Template:Tag: Difference between revisions
Jump to navigation
Jump to search
These are called attributes; no one who does HTML calls them "parameters". |
MediaWiki>ExE Boss Use {{Yesno}} and TemplateStyles (match {{xtag}}) |
||
Line 1: | Line 1: | ||
< | <onlyinclude>{{#if:{{yesno|{{{plain|}}}}}|| | ||
{{#if:{{yesno|{{{wrap|}}}}}|| | |||
<templatestyles src="Template:Nowrap/styles.css" /> | |||
}}<code class="mw-highlight {{#if:{{yesno|{{{wrap|}}}}}||nowrap}}"> | |||
}}{{#switch:{{{2|pair}}} | |||
|c|close = <!--nothing--> | |||
|s|single | |||
|o|open | |||
|p|pair = {{#tag:span|‎<|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}| {{{params}}}}} | |||
}}{{#switch:{{{2|pair}}} | |||
|c|close = {{{content|}}} | |||
|s|single =  {{#tag:span|/>|class="p"}} | |||
|o|open = {{#tag:span|>|class="p"}}{{{content|}}} | |||
|p|pair = {{#tag:span|>|class="p"}}{{{content|...}}} | |||
}}{{#switch:{{{2|pair}}} | |||
|s|single | |||
|o|open = <!--nothing--> | |||
|c|close | |||
|p|pair = {{#tag:span|‎</|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|>|class="p"}} | |||
}}{{#if:{{yesno|{{{plain|}}}}}|| | |||
</code> | |||
}}</onlyinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</ | <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> |
Revision as of 20:16, 28 November 2024
<tag>...</tag>
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]