Template:Disambiguation: Difference between revisions
Appearance
Also strip "(Disambiguation)" (capital D, the site convention) when building the footer text |
Same fix for the qualified-title category test |
||
| 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> | ||