Template:Surname/doc: Difference between revisions
Voogt is a surname of my parents who immigrated to canada from nederland in 1950. I've met my relatives in Rotterdam. |
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
(24 intermediate revisions by 18 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
|||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
|||
{{High-use}} |
|||
{{Auto short description|sometimes=y}} |
|||
== Usage == |
|||
*'''{{tlc|Surname|{{var|display}}}}''' |
*'''{{tlc|Surname|{{var|display}}}}''' |
||
:{{var|display}} – the unqualified surname [optional] |
:{{var|display}} – the unqualified [[surname]] [optional] |
||
⚫ | On English Wikipedia (en.WP), '''surname page''' – '''Foo (surname)''' – should have a brief [[MOS:LEAD|lead section]] that describes the [[etymological]] and (when applicable) the pronunciational history of the surname. This can be a single sentence, as in the example, [[Cross (surname)]]. If this lead is absent, consider doing a little research in [[wikt:Wiktionary:Main Page|Wiktionary]], etc. to improve the surname page's opening. |
||
⚫ | Place {{tlc|Surname}} at the bottom of surname pages. Do not use this template on those [[Wikipedia:Disambiguation pages|disambiguation pages]] which contain a list of people by family name as well as the more usual types of other entries. Instead, categorize the disambiguation page by including the ''surname'' parameter with the {{tl|Disambiguation}} template. For example, {{tlc|Disambiguation|surname}}. This will include the disambiguation page in [[:Category:Surnames]]. |
||
⚫ | |||
⚫ | |||
⚫ | Place {{tlc|Surname}} at the bottom of surname pages. Do not use this template on disambiguation pages |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
If it's just for a section, you can say so: {{tlx|Surname|section{{=}}y|Lee}} |
If it's just for a section, you can say so: {{tlx|Surname|section{{=}}y|Lee}} |
||
Doing so will change the wording to say "this section" instead of "this article", and will also suppress the automatic generation of {{tlx|Short description|Surname list}}. If an article is a general article on a surname, that happens to contain a section with a list of people bearing the surname, it should instead have a manually added description at the top of the page, e.g. {{tnull|Short description|Elbonian surname}}. |
|||
== |
==TemplateData== |
||
{{TemplateDataHeader}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Surname (override)", |
|||
"description": "The surname(s) this page is about, if not included in the page title", |
|||
"type": "content", |
|||
"default": "Default is to infer from the page title.", |
|||
"suggested": true |
|||
}, |
|||
"2": { |
|||
"label": "Category", |
|||
"description": "By default, this rcat will populate [[Category:Surname]]. That can be suppressed using \"nocat\" in this unnamed parameter.", |
|||
"type": "string", |
|||
"default": "Add category:Surnames.", |
|||
"suggested": false |
|||
}, |
|||
"section": { |
|||
"label": "Section only?", |
|||
"description": "If set to any content, this template applies only to the section in which it is placed, and will say so.", |
|||
"type": "string", |
|||
"default": "Template applies to whole page." |
|||
} |
|||
}, |
|||
"description": "Place {{Surname}} at the bottom of surname pages. Do not use this template on disambiguation pages that contain other entries besides a list of people by family name. Instead categorize the disambiguation page by including the surname parameter with the {{Disambiguation}} template. For example, {{Disambiguation|surname}}. This will include the disambiguation page in Category:Surnames." |
|||
} |
|||
</templatedata> |
|||
== See also == |
|||
* [[Wikipedia:Name pages]] – How-to guide for articles about surnames and given names |
|||
* {{tl|Given name}} – For given name pages or sections of disambiguation pages that list people by given names. Can also be used for pages with both given names and surnames |
* {{tl|Given name}} – For given name pages or sections of disambiguation pages that list people by given names. Can also be used for pages with both given names and surnames |
||
* {{tl|Hndis}} – For disambiguation pages that list articles associated with the same personal name |
* {{tl|Hndis}} – For disambiguation pages that list articles associated with the same personal name |
||
* {{tl|Nickname}} – For nickname pages or sections of disambiguation pages that list people by nicknames |
* {{tl|Nickname}} – For nickname pages or sections of disambiguation pages that list people by nicknames |
||
* {{tl|R from surname}} – |
* {{tl|R from surname}} – To add to redirects instead of {{tl|Surname}} |
||
* {{tl|Surname links}} – |
* {{tl|Surname links}} – For help searching for articles related to a surname |
||
* {{tl-r|Family name}} – a redirect to {{tl|Infobox name}} |
|||
<includeonly>{{ |
<includeonly>{{Sandbox other|| |
||
<!-- Categories below this line, please; interwikis at Wikidata --> |
|||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> |
|||
[[Category:Set index article templates]] |
[[Category:Set index article templates]] |
||
[[Category:WikiProject Anthroponymy templates]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 22:49, 29 July 2024
This is a documentation subpage for Template:Surname. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 72,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template sometimes adds an automatically generated short description. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article. |
Usage
[edit]{{Surname|display}}
- display – the unqualified surname [optional]
On English Wikipedia (en.WP), surname page – Foo (surname) – should have a brief lead section that describes the etymological and (when applicable) the pronunciational history of the surname. This can be a single sentence, as in the example, Cross (surname). If this lead is absent, consider doing a little research in Wiktionary, etc. to improve the surname page's opening.
Place {{Surname}}
at the bottom of surname pages. Do not use this template on those disambiguation pages which contain a list of people by family name as well as the more usual types of other entries. Instead, categorize the disambiguation page by including the surname parameter with the {{Disambiguation}} template. For example, {{Disambiguation|surname}}
. This will include the disambiguation page in Category:Surnames.
If the page title is not the surname itself, add the surname as the first parameter. For example, Lee (surname) uses {{Surname|Lee}}
. However, this parameter is for display purposes only. {{DEFAULTSORT}}
controls sorting of all categories for consistency.
Category:Surnames automatically includes all articles that have this template. Any surname language categories should immediately follow {{Surname}}
at the bottom of surname pages, after you have verified them via reliable sources.
Category:Surname template has extra parameters includes any template instances with too many or obsolete parameters. This maintenance category should ideally be empty, so correct any pages that appear in that category.
If it's just for a section, you can say so: {{Surname|section=y|Lee}}
Doing so will change the wording to say "this section" instead of "this article", and will also suppress the automatic generation of {{Short description|Surname list}}
. If an article is a general article on a surname, that happens to contain a section with a list of people bearing the surname, it should instead have a manually added description at the top of the page, e.g. {{Short description|Elbonian surname}}
.
TemplateData
[edit]TemplateData for Surname
Place {{Surname}} at the bottom of surname pages. Do not use this template on disambiguation pages that contain other entries besides a list of people by family name. Instead categorize the disambiguation page by including the surname parameter with the {{Disambiguation}} template. For example, {{Disambiguation|surname}}. This will include the disambiguation page in Category:Surnames.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Surname (override) | 1 | The surname(s) this page is about, if not included in the page title
| Content | suggested |
Category | 2 | By default, this rcat will populate [[Category:Surname]]. That can be suppressed using "nocat" in this unnamed parameter.
| String | optional |
Section only? | section | If set to any content, this template applies only to the section in which it is placed, and will say so.
| String | optional |
See also
[edit]- Wikipedia:Name pages – How-to guide for articles about surnames and given names
- {{Given name}} – For given name pages or sections of disambiguation pages that list people by given names. Can also be used for pages with both given names and surnames
- {{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
- {{R from surname}} – To add to redirects instead of {{Surname}}
- {{Surname links}} – For help searching for articles related to a surname
- {{Family name}} – a redirect to {{Infobox name}}