Template:Disambiguation: Difference between revisions
Appearance
NeonWabbit (talk | contribs) No edit summary |
NeonWabbit (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
| type = disambig | | type = disambig | ||
| text = {{#switch: {{{nsoverride|<includeonly>{{NAMESPACE}}</includeonly>}}}|<!--detects namespace between Wikipedia, MOS, Portal, and everything else--> | | text = {{#switch: {{{nsoverride|<includeonly>{{NAMESPACE}}</includeonly>}}}|<!--detects namespace between Wikipedia, MOS, Portal, and everything else--> | ||
| #default = This [[Help:Disambiguation|disambiguation]] page lists {{{type|{{#if:{{{ignore_parentheses|}}}||{{Title disambig text|1={{Str rep|{{{page-title|{{FULLPAGENAME | | #default = This [[Help:Disambiguation|disambiguation]] page lists {{{type|{{#if:{{{ignore_parentheses|}}}||{{Title disambig text|1={{Str rep|{{#if:{{{page-title|}}}|{{{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|}}}|{{#if:{{{page-title|}}}|{{{page-title|}}}|{{FULLPAGENAME}}}}|{{PAGENAMEBASE|{{#if:{{{page-title|}}}|{{{page-title|}}}|{{FULLPAGENAME}}}}}}}}'''.<!--for normal disambiguation pages--> | ||
| Wikipedia = This page is a list of [[Wikipedia:Project namespace|project pages]] associated with the same title or shortcut.{{Category handler|wikipedia=[[Category:Wikipedia disambiguation pages]]|nocat={{{nocat|}}}}}<!--for Wikipedia disambiguation pages--> | | Wikipedia = This page is a list of [[Wikipedia:Project namespace|project pages]] associated with the same title or shortcut.{{Category handler|wikipedia=[[Category:Wikipedia disambiguation pages]]|nocat={{{nocat|}}}}}<!--for Wikipedia disambiguation pages--> | ||
| WikipediNyah = This page is a list of project pages associated with the same title or shortcut.{{Category handler|WikipediNyah=[[Category:WikipediNyah disambiguation pages]]|nocat={{{nocat|}}}}}<!--for WikipediNyah disambiguation pages--> | |||
| MOS = This page is a list of [[Wikipedia:Manual of Style|Wikipedia Manual of Style pages or sections]] associated with the same title or shortcut.[[Category:Manual of Style disambiguation pages]]<!--for Manual of Style disambiguation pages--> | | MOS = This page is a list of [[Wikipedia:Manual of Style|Wikipedia Manual of Style pages or sections]] associated with the same title or shortcut.[[Category:Manual of Style disambiguation pages]]<!--for Manual of Style disambiguation pages--> | ||
| Portal = This page is a list of [[Wikipedia:Contents/Portals|portals]] associated with the same title.{{Category handler|portal=[[Category:Portal disambiguation pages]]|nocat={{{nocat|}}}}}<!--for Portal disambiguation pages--> | | Portal = This page is a list of [[Wikipedia:Contents/Portals|portals]] associated with the same title.{{Category handler|portal=[[Category:Portal disambiguation pages]]|nocat={{{nocat|}}}}}<!--for Portal disambiguation pages--> | ||
}}<br /><small>{{main other<!--detects if in mainspace or not--> | }}<br /><small>{{main other<!--detects if in mainspace or not--> | ||
| demospace = {{{demospace|}}}<!--for testing, see docs at [[Template:Main other]]--> | | demospace = {{{demospace|}}}<!--for testing, see docs at [[Template:Main other]]--> | ||
| If an [{{fullurl:Special:WhatLinksHere/ | | If an [{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}} internal link] incorrectly 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"--> | ||
| If an [{{fullurl:Special:WhatLinksHere/ | | If an [{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}}} internal link] incorrectly 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"--> | ||
}}</small> | }}</small> | ||
| nocat = {{{nocat|}}} <!--So "nocat=true" works--> | | nocat = {{{nocat|}}} <!--So "nocat=true" works--> | ||
}}{{main other | }}{{main other | ||
| demospace = {{{demospace|}}} | | demospace = {{{demospace|}}} | ||
| [[Category:Disambiguation pages]]{{disambiguation/cat|{{{1|}}} | | [[Category:Disambiguation pages]]{{for loop|call=disambiguation/cat||{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{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--> | | <!-- 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>{{main other|{{#if:{{{nocat|}}}||{{#ifeq:{{#invoke:redirect|isRedirect|{{TALKPAGENAME}}}}|yes|[[Category:Unsynchronized disambiguation talk pages]]}}}}}}</includeonly> | }}<includeonly>{{main other|{{#if:{{{nocat|}}}||{{#ifeq:{{#invoke:redirect|isRedirect|{{TALKPAGENAME}}}}|yes|[[Category:Unsynchronized disambiguation talk pages]]}}}}}}</includeonly> | ||