Predefinição:Cabeçalho para portais: diferenças entre revisões

Conteúdo apagado Conteúdo adicionado
mSem resumo de edição
mSem resumo de edição
Linha 1:
<!--
{| class="portalheadertemplate" style="width:100%; height:100%;"
Begin headertemplate wrapper
|-
| class="gen_header_backlink" | {{#if:{{{superior|}}}|{{{texto_superior|Portal superior:}}}[[{{{link_superior|Portal:{{{superior|}}}}}}|{{{superior|}}}]]|}}
| class="gen_header_title" | '''{{{título|{{SUBPAGENAME}}}}}'''
| class="gen_header_forelink" |
|}<!--
 
--><div id="headerContainer" class="ws-noexport" style="box-sizing:border-box;"><!--
Notes section-->
 
{| class="portal_notes"
BEGIN VISIBLE PORTAL TEMPLATE CODE
|-
-->{{Cabeçalho/bloco principal
|{{{notas|}}}
| style = width:100%; height:100%; border:1px solid #36A; margin:4px auto 4px auto; background-color:#DDE;
|}<!--
| id = portalheadertemplate
| class = portalheadertemplate
| anterior = {{#if:{{{anterior|}}}<!--
 
-- use the explicit parent
-->|{{#if:{{{superior|}}}|{{{texto_superior|Portal superior:}}}[[{{{link_superior|Portal:{{{superior|}}}}}}|{{{superior|}}}]]|}}<!--
 
-- auto parents from the class/subclasses
-->|<div style="display:inline-block; padding:4px 4px; vertical-align:middle;"><!---{{Portal Parent---><!--
-->| class = {{{class|}}}<!--
-->| subclass1 = {{{subclass1|}}}<!--
-->| subclass2 = {{{subclass2|}}}<!--
-->| number = {{{number|}}}<!--
-->| midclass = {{{midclass|}}}<!--
-->}}</div><!--
--><!---}}--->
| posterior = {{{posterior|}}}
| título = '''{{{título|{{SUBPAGENAME}}}}}'''<!--
 
end of header/main block
-->}}<!--
 
### Notes section ###
-->
{{Cabeçalho/bloco para notas
| style = border-bottom: 1px solid #88A; background-color: #FCFBFF;
| id = portal_notes
| class = portal_notes
| shortcut = {{{shortcut|}}}
| sister = <!--
 
check if page is connected to Wikidata (#ifeq)
-->{{#ifeq:{{#invoke:Wikibase|id}}|no entity<!--
 
if page is not connected to Wikidata, only show linha de correlatos if at least one of its parameters is filled in
-->|[[Category:Unidade de texto sem conexão no Wikidata]]{{#if:<!--
-->{{{disambiguation|}}}<!--
-->{{{edition|}}}<!--
-->{{{portal|}}}<!--
-->{{{related_author|}}}<!--
-->{{{wikipedia|}}}<!--
-->{{{commons|}}}<!--
-->{{{commonscat|}}}<!--
-->{{{wikiquote|}}}<!--
-->{{{wikinews|}}}<!--
-->{{{wiktionary|}}}<!--
-->{{{wikibooks|}}}<!--
-->{{{wikilivres|}}}<!--
-->{{{wikidata|}}}<!--
-->{{{wikivoyage|}}}<!--
-->{{{wikiversity|}}}<!--
-->{{{wikispecies|}}}<!--
-->{{{meta|}}}<!--
 
-->|<!--
 
--><div class="noprint ws-noexport">{{linha de correlatos|style=float:none;<!--
-->| disambiguation = {{{disambiguation|}}}<!--
-->| edition = {{{edition|}}}<!--
-->| portal = {{{portal|}}}<!--
-->| related_author = {{{related_author|}}}<!--
-->| wikipedia = {{{wikipedia|}}}<!--
-->| commons = {{{commons|}}}<!--
-->| commonscat = {{{commonscat|}}}<!--
-->| wikiquote = {{{wikiquote|}}}<!--
-->| wikinews = {{{wikinews|}}}<!--
-->| wiktionary = {{{wiktionary|}}}<!--
-->| wikibooks = {{{wikibooks|}}}<!--
-->| wikilivres = {{{wikilivres|}}}<!--
-->| wikidata = {{{wikidata|}}}<!--
-->| wikivoyage = {{{wikivoyage|}}}<!--
-->| wikiversity = {{{wikiversity|}}}<!--
-->| wikispecies = {{{wikispecies|}}}<!--
-->| meta = {{{meta|}}}<!--
-->}}</div><!--
 
-->}}<!--
 
if page is connected to Wikidata, always show linha de correlatos
-->|<!---tendo
------><!----Identificar presença de 'instância de'---->{{#if:{{#property:P31}}
|[[Category:Unidade de texto com tipologia no Wikidata]]
|[[Category:Unidade de texto sem tipologia no Wikidata]]
}}<!---Fim da identificação da presença de 'instância de'
------>[[Category:Unidade de texto com conexão no Wikidata]]<!-----fim de tendo
--------><div class="noprint ws-noexport">{{linha de correlatos|style=float:none;<!--
-->| disambiguation = {{{disambiguation|}}}<!--
-->| edition = {{{edition|}}}<!--
-->| portal = {{{portal|}}}<!--
-->| related_author = {{{related_author|}}}<!--
-->| wikipedia = {{{wikipedia|}}}<!--
-->| commons = {{{commons|}}}<!--
-->| commonscat = {{{commonscat|}}}<!--
-->| wikiquote = {{{wikiquote|}}}<!--
-->| wikinews = {{{wikinews|}}}<!--
-->| wiktionary = {{{wiktionary|}}}<!--
-->| wikibooks = {{{wikibooks|}}}<!--
-->| wikilivres = {{{wikilivres|}}}<!--
-->| wikidata = {{{wikidata|}}}<!--
-->| wikivoyage = {{{wikivoyage|}}}<!--
-->| wikiversity = {{{wikiversity|}}}<!--
-->| wikispecies = {{{wikispecies|}}}<!--
-->| meta = {{{meta|}}}<!--
-->}}</div><!--
 
end #ifeq
-->}}<!--
| left_content =---><!--
--><!---{{Portal Class---><!--
--><!---| class = {{{class|}}}---><!--
--><!---| subclass1 = {{{subclass1|}}}---><!--
--><!---| subclass2 = {{{subclass2|}}}---><!--
--><!---| number = {{{number|}}}---><!--
--><!---}}--->
<!--- | content = ---><!--
Notes from parameter
--><div id="notas-header">{{{notas|}}}<!---
 
-->}}<!--
 
End headertemplate wrapper-->
</div><!--
 
End of header
--><noinclude>
{{documentação}}