Template:Disambig: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
(Rewritten to properly include both categories.) |
||
Line 1: | Line 1: | ||
{{ambox | <includeonly>{{ambox | ||
|style = margin-top: 1em; | |style = margin-top: 1em; | ||
|image = [[File:Disambig_colour.svg|40px|alt=|link=]] | |image = [[File:Disambig_colour.svg|40px|alt=|link=]] | ||
|textstyle = line-height:300%; | |textstyle = line-height:300%; | ||
|text = {{#ifeq:{{#sub:{{PAGENAME}}|-16}}|(disambiguation) | |text = {{#ifeq:{{#sub:{{PAGENAME}}|-16}}|(disambiguation) | ||
| | |[[Category:Disambiguation]]{{#switch:{{{1|}}} | ||
|<!-- if empty --> | |<!-- if empty --> | ||
|work = | |work =[[Category:Disambiguation of works]] This is a [[:Category:Disambiguation of works|disambiguation]] page — a list of pages that otherwise might share the same title. | ||
|text = | |text =[[Category:Disambiguation of texts]] This is a [[:Category:Disambiguation of texts|disambiguation]] page — a list of pages that otherwise might share the same title. | ||
|pub = | |pub =[[Category:Disambiguation of publications]] This is a [[:Category:Disambiguation of publications|disambiguation]] page — a list of pages that otherwise might share the same title. | ||
|name = | |name =[[Category:Disambiguation of names]] This is a [[:Category:Disambiguation of names|disambiguation]] page – a list of people who share the same name. | ||
}} | }} | ||
}} }}<noinclude> | |[[Category:Disambiguation of works]] This is a [[:Category:Disambiguation of works|disambiguation]] page — a list of pages that otherwise might share the same title.}} }}</includeonly><noinclude> | ||
{{Doc|text= | {{Doc|text= | ||
{{prot-temp}} | {{prot-temp}} | ||
Line 25: | Line 24: | ||
*pub - for publication pages | *pub - for publication pages | ||
*name - for people (composers, lyricists, editors, etc.) | *name - for people (composers, lyricists, editors, etc.) | ||
If no parameter is informed | If no parameter is informed, or the page title does *not* contain the word "(disambiguation)", then the template defaults to "work". | ||
}} | }} | ||
[[Category:Message box templates]]</noinclude> | [[Category:Message box templates]] | ||
<!--OLD CODE | |||
{{ambox | |||
|style = margin-top: 1em; | |||
|image = [[File:Disambig_colour.svg|40px|alt=|link=]] | |||
|textstyle = line-height:300%; | |||
|text = {{#ifeq:{{#sub:{{PAGENAME}}|-16}}|(disambiguation) | |||
|This is a <includeonly>[[Category:Disambiguation]]</includeonly>[[Help:What if there's more than one composer with the same name?|disambiguation]] page — a list of pages that otherwise might share the same title. | |||
|{{#switch:{{{1|}}} | |||
| | |||
|work =<includeonly>[[Category:Disambiguation of works]]</includeonly> This is a [[:Category:Disambiguation of works|disambiguation]] page — a list of pages that otherwise might share the same title. | |||
|text =<includeonly>[[Category:Disambiguation of texts]]</includeonly> This is a [[:Category:Disambiguation of texts|disambiguation]] page — a list of pages that otherwise might share the same title. | |||
|pub =<includeonly>[[Category:Disambiguation of publications]]</includeonly> This is a [[:Category:Disambiguation of publications|disambiguation]] page — a list of pages that otherwise might share the same title. | |||
|name =<includeonly>[[Category:Disambiguation of names]]</includeonly> This is a [[:Category:Disambiguation of names|disambiguation]] page – a list of people who share the same name. | |||
}} | |||
}} }} | |||
END OF OLD CODE--> | |||
<noinclude> |
Revision as of 17:33, 30 May 2020
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
- Syntax
- {{Disambig}}
- Syntax with parameter
- {{Disambig|xxxx}}
Where xxxx can be one of the following:
- work - for works pages
- text - for text pages
- pub - for publication pages
- name - for people (composers, lyricists, editors, etc.)
If no parameter is informed, or the page title does *not* contain the word "(disambiguation)", then the template defaults to "work".