Template:Tag: Difference between revisions
From All Skies Encyclopaedia
imported>Happy-melon (expand) |
imported>SMcCandlish (These are called attributes; no one who does HTML calls them "parameters".) |
||
(33 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!-- |
|||
⚫ | |||
Opening tag |
|||
⚫ | |||
⚫ | |||
|pair |
|||
⚫ | |||
|#default = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}}<nowiki>></nowiki> |
|||
|e|empty|s|single|v|void |
|||
⚫ | |||
⚫ | |||
|pair |
|||
|p|pair = <{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}| {{{params|{{{attribs}}}}}}}} |
|||
|#default = {{{2|}}} |
|||
}}<!-- |
|||
⚫ | |||
Content between tags |
|||
⚫ | |||
⚫ | |||
|pair |
|||
|c|close = {{{content|}}} |
|||
|#default = <nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki> |
|||
|e|empty|s|single|v|void =  /> |
|||
}}{{#switch:{{{3|pair}}} |
|||
|o|open = >{{{content|}}} |
|||
|single = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}}<nowiki> /></nowiki> |
|||
|p|pair = {{#ifeq:{{{1|tag}}}|!--||>}}{{{content|...}}} |
|||
⚫ | |||
}}<!-- |
|||
{{documentation}} |
|||
Closing tag |
|||
⚫ | |||
|e|empty|s|single|v|void |
|||
|o|open = |
|||
|c|close |
|||
|p|pair = {{#ifeq:{{{1|tag}}}|!--|-->|</{{{1|tag}}}>}} |
|||
}}<!-- |
|||
⚫ | |||
{{Documentation}} |
|||
</noinclude> |
</noinclude> |