Mudanças entre as edições de "Tag"
Ir para navegação
Ir para pesquisar
NumBlk>David Kernow (category) |
NumBlk>David Kernow m (category indexing) |
||
Linha 14: | Linha 14: | ||
− | [[Category:Formatting templates]] | + | [[Category:Formatting templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> |
Edição das 15h13min de 16 de fevereiro de 2007
<tag></tag>
This template simply provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
{{tag}} # {{tag|ref}} # {{tag|ref|hello}}
{{#switch:pair
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|tag|tag}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:tag|!--||>}}...
}}{{#switch:pair
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:tag|!--|-->|</tag>}}
}}
{{#switch:pair
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}
{{#switch:hello
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:hello
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:hello
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}