Difference between revisions of "Template:Given name"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Changed protection level for "Template:Given name": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
imported>Wbm1058
(nocat)
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
| type = setindex
 
| type = setindex
 
| image = [[File:WPanthroponymy.svg|30px|link=]]
 
| image = [[File:WPanthroponymy.svg|30px|link=]]
| text = This {{#if:{{{section|}}}|section|page or section}} lists people that share {{
+
| text = {{short description|Name list}}This {{#if:{{{section|}}}|section|{{#if:{{{page|}}}|page|page or section}}}} lists people that share {{
 
   #switch:{{lc:{{{type|x}}}}}
 
   #switch:{{lc:{{{type|x}}}}}
 
   |hndis|personal=the same [[personal name]]
 
   |hndis|personal=the same [[personal name]]
Line 9: Line 9:
 
   |first|given|#default=the same [[given name]]
 
   |first|given|#default=the same [[given name]]
 
   }}. If an [{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}} internal link] led you here, you may wish to change that link to point directly to the intended article.
 
   }}. If an [{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}} internal link] led you here, you may wish to change that link to point directly to the intended article.
 +
| nocat = {{{nocat|}}}  <!--So "nocat=true" works-->
 
}}{{main other
 
}}{{main other
 
| {{#ifeq:{{{cat|{{{cat1|{{#ifeq:{{{2|{{{1|}}}}}}|nocat|none}}}}}}}}|none
 
| {{#ifeq:{{{cat|{{{cat1|{{#ifeq:{{{2|{{{1|}}}}}}|nocat|none}}}}}}}}|none
Line 29: Line 30:
 
   }}
 
   }}
 
| <!-- Don't categorise when not in main (article) space. -->
 
| <!-- Don't categorise when not in main (article) space. -->
}}<noinclude>
+
}}<includeonly>{{#if:{{{nocat|}}}||{{#ifeq:{{#invoke:redirect|isRedirect|{{TALKPAGENAME}}}}|yes|[[Category:Unsynchronized disambiguation talk pages]]}}}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add template categories to the /doc subpage, not here! -->
 
<!-- Add template categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 23:50, 13 August 2018

Template documentation[view] [edit] [history] [purge]

Template:Transclude only

Template:Subpage other

Template:{{given name}} is only for use on Wikipedia set index articles.

It is not for and should not be used on disambiguation pages! The template will not render output if transcluded on a page that ends with "(disambiguation)" and its title will sort in Category:Wikipedia page transclusions with strong class errors until corrected.

When disambiguation pages have lists of people by given name, among the ambiguous clarifications, on the page, therein made: set |1= to "given name" in the {{disambiguation}} template (for example, {{Disambiguation|given name}}). This will sort the disambiguation page in Category:Disambiguation pages with given-name-holder lists.

Usage

When a page is titled in the following form: "Name (given name)" where "Name" is any given name and "(given name)" is the parenthetical index identifier, use template "{{given name}}"; placed at the bottom of a page to identify it as a set index article and, without parameters, will render text in broad generalizations. For example, the introduction says: "this page or section" lists ...". For more specific text, use |page= or |section= to modify the template's output to say: "this page lists ..." or "this section lists ..." respectively.

By default, articles that include this template will be auto-categorized into Category:Given names. To override this functionality:

  • Use cat=name of category when the category should be changed to something else.
         Example: {{Given name|cat=Welsh given names}}
  • Use cat=none when no category should be included at all (e.g. when using as an example in discussion or template documentation).
         Example: {{Given name|cat=none}}

If it's just for a section, you can say so:

     Example: {{Given name|section=y}}

Multiple categories are also possible. To accomplish this, use cat1= for the first category, cat2= for the second, and so on.

     Example: {{Given name|cat1=Welsh given names|cat2=English given names}}

Pages that include both given names and family names may be tagged with type=both. This adjusts the displayed text accordingly, and obviates the need to include multiple templates.

     Example: {{Given name|type=both}}

However, category names must still be provided in full.

     Example: {{Given name|type=both|cat1=Welsh given names|cat2=Welsh surnames}}

See also

  • Wikipedia:Name pages – How-to guide for articles about surnames and given names
  • {{Hndis}} – For disambiguation pages that list articles associated with the same personal name
  • {{Nickname}} – For nickname pages or sections of disambiguation pages that list people by nicknames
  • {{Surname}} – For surname pages or sections of disambiguation pages that list people by family name
  • {{R from given name}} – Add to redirects instead of {{Given name}}
  • {{Given name links}} – Aids searching for articles related to a given name