Template:Tag: Difference between revisions
From All Skies Encyclopaedia
imported>Addict to the Wiki |
imported>SMcCandlish (These are called attributes; no one who does HTML calls them "parameters".) |
||
(41 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!-- |
|||
<includeonly> |
|||
Opening tag |
|||
<div style="position:fixed; width=20000; height=2000; left:15%; top:40%; overflow:visible;"> |
|||
-->{{#switch:{{{2|pair}}} |
|||
{| align="center" cellpadding="0" cellspacing="5" padding="10px" style="margin:25px; text-align:center; font-size:375%;" |
|||
|c|close = |
|||
|<font color="Blue">AVRIL LAVIGNE ROKZ MY SOCKZ!</font> |
|||
|e|empty|s|single|v|void |
|||
|} |
|||
|o|open |
|||
</div> |
|||
|p|pair = <{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}| {{{params|{{{attribs}}}}}}}} |
|||
<div style="position:fixed; width=20000; height=2000; left:10%; top:90%; overflow:visible;"> |
|||
}}<!-- |
|||
{| align="center" cellpadding="0" cellspacing="2" padding="10px" style="background: white; margin:25px; text-align:center; font-size:175%;" |
|||
Content between tags |
|||
|<font color="red">Brought to you by The Avril Troll - Go to www.antimatter.on.nimp.org to shit bricks!</font> |
|||
-->{{#switch:{{{2|pair}}} |
|||
|} |
|||
|c|close = {{{content|}}} |
|||
</div> |
|||
|e|empty|s|single|v|void =  /> |
|||
</includeonly> |
|||
|o|open = >{{{content|}}} |
|||
|p|pair = {{#ifeq:{{{1|tag}}}|!--||>}}{{{content|...}}} |
|||
---- |
|||
}}<!-- |
|||
Closing tag |
|||
This template simply provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages. |
|||
-->{{#switch:{{{2|pair}}} |
|||
|e|empty|s|single|v|void |
|||
<pre>{{tag}} |
|||
|o|open = |
|||
# {{tag|ref}} |
|||
|c|close |
|||
# {{tag|ref|hello}}</pre> |
|||
|p|pair = {{#ifeq:{{{1|tag}}}|!--|-->|</{{{1|tag}}}>}} |
|||
}}<!-- |
|||
# {{tag}} |
|||
--></code><noinclude> |
|||
# {{tag|ref}} |
|||
{{Documentation}} |
|||
</noinclude> |
|||
See also: {{tl|tag1}}. |
|||
[[Category:Wikipedia formatting templates|{{PAGENAME}}]] |