Template:Disambig: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(added image)
mNo edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing="8" cellpadding="0" style="width: 100%; font-size: 95%; border-width: 2px; border-top-style: solid; margin-top: 1em; clear: both; position:relative;"
<includeonly>{{ambox
| style="width: 30px; height:31px; vertical-align: middle" | [[File:Disambig_colour.svg|28px|alt=|link=]]
|style = margin-top: 1em;
| style="height:31px; vertical-align: middle" | {{#ifeq:{{#sub:{{PAGENAME}}|-16}}|(disambiguation)
|image = [[File:Disambig_colour.svg|40px|alt=|link=]]
  |<includeonly>[[Category:Disambiguation]]</includeonly> This is a [[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.
|textstyle = line-height:300%;
  |<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  = [[Category:Disambiguation]]{{#switch:{{{1|}}}
|}<noinclude>
      |<!-- if empty -->
      |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 =[[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  =[[Category:Disambiguation of publications]] This is a [[:Category:Disambiguation of publications|disambiguation]] page — a list of publications that otherwise might share the same title.
      |name =[[Category:Disambiguation of names]] This is a [[:Category:Disambiguation of names|disambiguation]] page – a list of people who share the same name.
    }}
}}</includeonly><noinclude>
{{Doc|text=
{{prot-temp}}
;Syntax
:{{tl|Disambig}}


{{prot-temp}}
;Syntax with parameter
[[Category:Templates]]</noinclude>
:{{tl|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.)
When no parameter is specified the template defaults to "work".
}}
[[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>

Latest revision as of 22:21, 7 December 2020


Documentation
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.)

When no parameter is specified the template defaults to "work".