Jump to content

Template:Disambiguation: Difference between revisions

No edit summary
Same fix for the qualified-title category test
 
(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 Chabadpedia, MOS, Portal, and everything else-->
| text = {{#switch: {{{nsoverride|<includeonly>{{NAMESPACE}}</includeonly>}}}|<!--detects namespace between Chabadpedia, MOS, Portal, and everything else-->
  | #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|Chabadpedia=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-->
  | #default = This [[Help:Disambiguation|disambiguation]] page lists {{{type|{{#if:{{{ignore_parentheses|}}}||{{Title disambig text|1={{Str rep|{{Str rep|{{#if:{{{page-title|}}}|{{{page-title|}}}|{{FULLPAGENAME}}}}|(disambiguation)|}}|(Disambiguation)|}}}}}}}}} {{namespace detect|main=articles|category=categories|Chabadpedia=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-->
  | Chabadpedia  = This page is a list of [[Chabadpedia:Project namespace|project pages]] associated with the same title or shortcut.{{Category handler|Chabadpedia=[[Category:Chabadpedia disambiguation pages]]|nocat={{{nocat|}}}}}<!--for Chabadpedia disambiguation pages-->
  | Chabadpedia  = This page is a list of [[Chabadpedia:Project namespace|project pages]] associated with the same title or shortcut.{{Category handler|Chabadpedia=[[Category:Chabadpedia disambiguation pages]]|nocat={{{nocat|}}}}}<!--for Chabadpedia disambiguation pages-->
  | MOS = This page is a list of [[Chabadpedia:Manual of Style|Chabadpedia 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 [[Chabadpedia:Manual of Style|Chabadpedia 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-->
Line 15: Line 15:
}}{{main other
}}{{main other
| demospace = {{{demospace|}}}
| demospace = {{{demospace|}}}
| [[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)". -->
| [[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|{{Str rep|{{FULLPAGENAME}}|(disambiguation)|}}|(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><noinclude>
}}<includeonly>{{main other|{{#if:{{{nocat|}}}||{{#ifeq:{{#invoke:redirect|isRedirect|{{TALKPAGENAME}}}}|yes|[[Category:Unsynchronized disambiguation talk pages]]}}}}}}</includeonly><noinclude>

Latest revision as of 19:22, 21 November 2026