Mudanças entre as edições de "Predefinição:Disambiguation"

m (uma edição: Teste de importação Books)
Linha 1: Linha 1:
<includeonly>{{#if:{{{nocat|}}}||{{Disambiguation page short description}}}}</includeonly>
+
<noinclude>
{{Dmbox
+
<languages/>
| type = disambig
+
</noinclude><templatestyles src="Disambiguation/styles.css"/>
| text = {{#switch: {{{nsoverride|<includeonly>{{NAMESPACE}}</includeonly>}}}|<!--detects namespace between Wikipedia, Portal, and everything else-->
+
<div class="disambiguation metadata plainlinks">
| #default = This [[Help:Disambiguation|disambiguation]] page lists {{{type|{{#if:{{{ignore_parentheses|}}}||{{Title disambig text|1={{Str rep|{{{page-title|{{FULLPAGENAME}}}}}|(disambiguation)|}}}}}}}}} {{namespace detect|main=articles|category=categories|wikipedia=project pages<includeonly>|template=templates</includeonly>|other=pages}} associated with the title '''{{#if:{{{ignore_parentheses|}}}|{{{page-title|{{FULLPAGENAME}}}}}|{{PAGENAMEBASE|{{{page-title|{{FULLPAGENAME}}}}}}}}}'''.<!--for normal disambiguation pages-->
+
  <div class="disambiguation-image">[[File:Disambig gray.svg|30px|<translate><!--T:1--> disambiguation</translate>]]</div>
| Wikipedia  = This page is a list of [[Wikipedia:Project namespace|project pages]] associated with the same title or shortcut.[[Category:Wikipedia disambiguation pages]]<!--for Wikipedia disambiguation pages-->
+
  <div class="disambiguation-text"><translate><!--T:2--> This is a [[<tvar name=cat>Special:MyLanguage/Category:Disambiguation pages</tvar>|disambiguation page]], which lists pages which may be the intended target.</translate> <translate><!--T:3--> If a [[<tvar name=special>Special:Whatlinkshere/{{PAGENAME}}</tvar>|page link]] referred you here, please consider editing it to point directly to the intended page.</translate></div>
| Portal = This page is a list of [[Wikipedia:Contents/Portals|portals]] associated with the same title.[[Category:Portal disambiguation pages]]<!--for Portal disambiguation pages-->
+
</div><includeonly>__DISAMBIG__[[Category:Disambiguation pages{{#translation:}}]]</includeonly><noinclude>
}}<br /><small>{{main other<!--detects if in mainspace or not-->
+
 
| demospace = {{{demospace|}}}<!--for testing, see docs at [[Template:Main other]]-->
+
{{Documentation|content=
| If an [{{fullurl:Special:WhatLinksHere/{{{page-title|{{FULLPAGENAME}}}}}|namespace=0}} internal link] led you here, you may wish to change the link to point directly to the intended article.<!--If in mainspace, the "internal link" only links to incoming links in mainspace, and we use the term "intended article"-->
+
{{Uses TemplateStyles|Template:Disambiguation/styles.css}}
| If an [{{fullurl:Special:WhatLinksHere/{{{page-title|{{FULLPAGENAME}}}}}}} internal link] led you here, you may wish to change the link to point directly to the intended page.<!--If not in mainspace, the "internal link" links to incoming links in all namespaces, and we use the term "intended page"-->
+
<translate><!--T:5--> Usage:</translate>
}}</small>
+
<code><nowiki>{{Disambiguation}}</nowiki></code>
| nocat = {{{nocat|}}<!--So "nocat=true" works-->
+
 
}}{{main other
+
<translate><!--T:4--> This template adds pages to <tvar name=cat>{{ll|Category:Disambiguation pages}}</tvar>.</translate>
| demospace = {{{demospace|}}}
+
 
| [[Category:Disambiguation pages]]{{disambiguation/cat|{{{1|}}}}}{{disambiguation/cat|{{{2|}}}}}{{disambiguation/cat|{{{3|}}}}}{{disambiguation/cat|{{{4|}}}}}{{disambiguation/cat|{{{5|}}}}}{{disambiguation/cat|{{{6|}}}}}{{disambiguation/cat|{{{7|}}}}}{{disambiguation/cat|{{{8|}}}}}{{disambiguation/cat|{{{9|}}}}}{{disambiguation/cat|{{{10|}}}}}{{#if: {{{hn|}}} | [[Category:Human name disambiguation pages|{{{hn}}}]] }}{{#if:{{Title disambig text|1={{Str rep|{{FULLPAGENAME}}|(disambiguation)|}}}}|[[Category:Disambiguation pages with (qualified) titles]]|}}<!-- The preceding test should include articles like "Socialist Party (Sweden) (disambiguation)". -->
+
}}
| <!-- Don't categorise when not in main (article) space. However, note that {{Dmbox}} categorises pages into Category:All disambiguation pages and Category:All article disambiguation pages-->
+
 
}}<includeonly>{{#if:{{{nocat|}}}||{{#ifeq:{{#invoke:redirect|isRedirect|{{TALKPAGENAME}}}}|yes|[[Category:Unsynchronized disambiguation talk pages]]}}}}</includeonly><noinclude>
+
[[Category:Disambiguation templates{{#translation:}}]]
{{Documentation}}
+
[[Category:Categorizing templates{{#translation:}}|{{PAGENAME}}]]
<!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! -->
+
[[Category:Info templates{{#translation:}}|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Edição das 19h14min de 12 de abril de 2022


PáginaPredefinição:Disambiguation/styles.css deve ter o modelo de conteúdo "CSS limpo" para TemplateStyles (o modelo atual é "wikitexto").

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>