Predefinição:Documentação: diferenças entre revisões

Origem: Wikilivros, livros abertos por um mundo aberto.
[edição não verificada][edição não verificada]
Conteúdo apagado Conteúdo adicionado
m Trocando css pela classe "template-documentation" recém criada no MediaWiki:Common.css [eu já devia ter feito isto quando adaptei a predefinição da en.wp, mas devo ter tido preguiça...]
m usando nome traduzido (pois o outro redireciona para este)
Linha 1: Linha 1:
<div class="template-documentation"><!--
<div class="template-documentation" style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 5px;"><!--


Esta é a definição literal da classe no common.css:
These are the literal class definitions in common.css:
/* For template documentation */
/* Para a documentação das predefinições */
.template-documentation {
.template-documentation {
clear: both;
clear: both;
margin: 1em 0 0 0;
margin: 1em 0 0 0;
border: 1px solid #aaa;
border: 1px solid #aaa;
background-color: #ecfcf4;
background-color: #ecfcf4;
padding: 5px;
padding: 5px;
}
}




-->{{#ifeq:{{{título|μ}}}|<!--**DEFINIDO MAS VAZIO**-->
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
|<!--**NADA**-->
|<!--**NOTHING**-->
|<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{conteúdo|μ}}}|μ
|<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}|μ
|<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentação/NomeDoc}}}}}
|<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
|<!--** /doc EXISTE** -->[[{{fullurl:{{{1|{{Documentação/NomeDoc}}}}}|action=edit}} editar]]
|<!--** /doc EXISTS** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} editar]] [{{purgar|purgar}}]
|<!--** /doc NÃO EXISTE** -->[[{{fullurl:{{{1|{{Documentação/NomeDoc }}}}}|action=edit&preload=Predefinição:Documentação/Modelo}} criar]]
|<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} criar]]
}}</span>
}}</span>
}} <span style="{{#if:{{{estilo-título|}}}|{{{estilo-título}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{título|}}}|{{{título}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Imagem:Template-info.svg|50px]] Documentação da predefinição|Documentação}}}}</span></div>
}} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Documentação da predefinição|Documentação}}}}</span></div>
}}<!--
}}<!--


--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
--><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-style: italic; padding-left: 2em;"><!--
-->{{#ifexist: {{{1|{{Documentação/NomeDoc}}}}}
-->{{#ifexist: {{{1|{{Documentation/docname}}}}}
|<!--**/doc EXISTE**-->Esta [[w:en:Wikipedia:Template documentation|documentação]] é incluída (''[[w:en:Transclusion|transcluded]]'') a partir de [[{{{1|{{Documentação/NomeDoc}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentação/NomeDoc}}}}}|action=edit}} editar] &#124; [{{fullurl:{{{1|{{Documentação/NomeDoc}}}}}|action=history}} histórico])</small><br />
|<!--**/doc EXISTS**-->Esta [[Wikipedia:documentação da predefinição|documentação]] é [[Transclusão|transcluída]] da [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} editar] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} histórico])</small><br />
}}<!--
}}<!--


-->{{#switch: {{SUBPAGENAME}}
-->{{#switch: {{SUBPAGENAME}}
|sandbox|testcases=<!--**NÃO MOSTRAR ESSAS LIGAÇÕES NAS PÁGINAS DE TESTES E DE TESTCASES**-->
|teste|exemplos=<!--**Não mostra estes links nas próprias páginas de teste e de exemplos**-->
|#default=
|#default=
{{#switch: {{SUBJECTSPACE}}
{{#switch: {{SUBJECTSPACE}}
|{{ns:template}}
|{{ns:template}}
|{{ns:user}}=
|{{ns:user}}=
{{#ifexist: {{FULLPAGENAME}}/Testes
{{#ifexist: {{FULLPAGENAME}}/teste
|Esta predefinição possui uma [[{{FULLPAGENAME}}/Testes|página para testes]] <small style="font-style: normal">([{{fullurl:{{FULLPAGENAME}}/Testes|action=edit}} editar])</small> <!--
|Esta predefinição possui uma [[/teste|subpágina de teste]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /teste }}|action=edit}} editar])</small> <!--
-->{{#ifexist: {{FULLPAGENAME}}/testcases
-->{{#ifexist: {{FULLPAGENAME}}/exemplos
|e uma [[{{FULLPAGENAME}}/testcases|página testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} editar])</small>}} para que os editores possam experimentar.
|e uma [[/exemplos|subpágina de exemplos]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /exemplos }}|action=edit}} editar])</small>}} para experimentação.
|{{#ifexist: {{FULLPAGENAME}}/testcases
|{{#ifexist: {{FULLPAGENAME}}/exemplos
|Essa predefinição possui [[{{FULLPAGENAME}}/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} editar])</small> para que os editores possam experimentar.}}
|Esta predefinição possui uma [[/exemplos|subpágina de exemplos]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /exemplos }}|action=edit}} editar])</small> para experimentação.}}
}}}}}}
}}}}}}
</div>
</div>
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
{{#if:{{{conteúdo|}}}
<div style="clear: both;"></div>
|{{{conteúdo}}}
</div><noinclude>
|{{#ifexist:{{{1|{{Documentação/NomeDoc}}}}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
| {{ {{{1|{{Documentação/NomeDoc}}}}} }}
</noinclude>
|[[Categoria:Predefinições|{{SUBPAGENAME}}]]
}}
}}
</div>

Revisão das 17h56min de 20 de setembro de 2009

[[{{fullurl:Predefinição:Documentation/docname|action=edit&preload=Template:Documentation/preload}} criar]] Documentação da predefinição