Template:WikiTree/doc
This is a documentation subpage for Template:WikiTree. It may contain usage information, categories and other content that is not part of the original template page. |
This template should be used very sparingly and in most cases the template (or links to WikiTree not using this template) should be removed from articles.
This template uses Lua: |
Template:WikiTree displays an external link or a reference to a profile on the WikiTree website.
Usage
[edit]External link
[edit]Unnamed parameters:
* {{WikiTree | ID }}
* {{WikiTree | ID | NAME }}
Named parameters:
* {{WikiTree | id= }}
* {{WikiTree | id= | name= }}
Using Wikidata property WikiTree person ID (P2949):
* {{WikiTree}}
* {{WikiTree | name= }}
Reference
[edit]Two unnamed parameters:
{{WikiTree | ID | NAME}}
Named parameters:
{{WikiTree | id= | name= }
Using Wikidata property P2949:
{{WikiTree | }}
{{WikiTree | name= }}
Usage guidance
[edit]Care should be taken when deciding to make a link to the WikiTree website. The biographical and other details may not be reliable. If there are fully reliable sources which may be used, then the WikiTree link should not be used, or should be removed in place of the more reliable source.
As an WP:External link
[edit]To comply with WP:ELNO, only place in External links section if the website contains unique information not already mentioned and cited in the body of the article and is not a WP:COPYLINK violation. Remove from External links if WikiTree is already cited in main body, if burial information is provided in main body by a more reliable source, or if the page contains any unlicensed copyrighted information (e.g., professional portrait photography or copies of obituaries from a newspaper).
Parameters
[edit]id
orwtid
(parameter 1, required unless using Wikidata) – The WikiTree profile ID, found at the top of the WikiTree page or in the URL (e.g., “LastName-1234" for https://www.WikiTree.com/wiki/LastName-1234). This parameter is optional if Wikidata property P2949 exists, but required if not.name
(parameter 2, optional) – The name of the deceased. Defaults to {{PAGENAME}} if not specified.
Examples
[edit]- External link with unnamed parameters
* {{WikiTree | DeMille-39 | Cecil B. DeMille }}
- displays as:
- The Genealogy of Cecil Blount DeMille at WikiTree
- External link with named parameters
* {{WikiTree | id= Wofford-497 | name= Toni Morrison }}
- displays as:
- The Genealogy of Toni Morrison at WikiTree
- External link using Wikidata property P2949
* {{WikiTree}}
- pulls the WikiTree ID from Wikidata and uses the page title. On the Cecil B. DeMille article, it will display as:
- The Genealogy of Cecil B. DeMille at WikiTree
- Missing ID and no Wikidata
{{WikiTree}}
- if the article's Wikidata item does not have the WikiTree property, this will display as:
- The Genealogy of {{WikiTree}} template missing ID and not present in Wikidata.
- Reference using all of the parameters
{{WikiTree | id = Wofford-497 | name = Toni Morrison }}
- displays as:
- :
- The Genealogy of Toni Morrison at WikiTree
TemplateData
[edit]This template displays an external link or a reference to a profile on the WikiTree website.
Parameter | Description | Type | Status | |
---|---|---|---|---|
WTid # | id wtid 1 | The WikiTree profile number, found at the top of the WikiTree profile or in the URL (e.g., ‘LastName-1234' for https://www.WikiTree.com/wiki/LastName-1234). This parameter is optional if Wikidata property P2949 exists, but required if not.
| String | optional |
Name | name 2 | he name of the deceased. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.
| Line | suggested |
Tracking categories
[edit]- template with ID
- Category:WikiTree template (0)
- Category:WikiTree template with ID different from Wikidata (0)
- Category:WikiTree template with ID not in Wikidata (0)
- template missing ID
See also
[edit]