Difference between revisions of "Template:MathGenealogy/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
imported>Zyxw (update usage and examples) |
||
| Line 2: | Line 2: | ||
{{Uses Wikidata|P549}} | {{Uses Wikidata|P549}} | ||
| − | ==Usage== | + | == Usage == |
| − | + | If the 'name' or 'title' parameter is not supplied, the name shown for the person will be that of the Wikipedia page where the template is included. | |
| − | |||
| − | |||
| − | < | + | ; Unnamed parameters |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | |
| − | {{ | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> |
| − | + | ; Named parameters | |
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''NAME'' }}</code> | ||
| + | |||
| + | ; Using [[Wikidata]] property {{Property|549}} | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''NAME'' }}</code> | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | === Unnamed parameters === | ||
| + | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 25274 | Sheila Adele Greibach }}</code> | ||
| + | |||
| + | ; Output | ||
| + | :* {{{{BASEPAGENAME}} | 25274 | Sheila Adele Greibach }} | ||
| + | |||
| + | ; URL | ||
| + | : [https://mathgenealogy.org/id.php?id=25274 https://mathgenealogy.org/id.php?id={{Highlight|25274}}] | ||
| + | |||
| + | === Named parameters === | ||
| + | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 38586 | name= Leonhard Euler }}</code> | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 38586 | title= Leonhard Euler }}</code> | ||
| + | |||
| + | ; Output | ||
| + | :* {{{{BASEPAGENAME}} | id= 38586 | name= Leonhard Euler }} | ||
| + | :* {{{{BASEPAGENAME}} | id= 38586 | title= Leonhard Euler }} | ||
| + | |||
| + | ; URL | ||
| + | : [https://mathgenealogy.org/id.php?id=38586 https://mathgenealogy.org/id.php?id={{Highlight|38586}}] | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>|id=|name=}}</nowiki></code> | ||
| + | |||
| + | ; Output | ||
| + | :* {{ {{BASEPAGENAME}} }} | ||
| + | :* {{ {{BASEPAGENAME}}|id=|name=}} | ||
==TemplateData== | ==TemplateData== | ||
Revision as of 00:15, 16 October 2020
| This is a documentation subpage for Template:MathGenealogy. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
If the 'name' or 'title' parameter is not supplied, the name shown for the person will be that of the Wikipedia page where the template is included.
- Unnamed parameters
{{MathGenealogy | ID }}{{MathGenealogy | ID | NAME }}
- Named parameters
{{MathGenealogy | id= ID }}{{MathGenealogy | id= ID | name= NAME }}{{MathGenealogy | id= ID | title= NAME }}
- Using Wikidata property Template:Property
{{MathGenealogy}}{{MathGenealogy | name= NAME }}{{MathGenealogy | title= NAME }}
Examples
Unnamed parameters
- Usage
* {{MathGenealogy | 25274 | Sheila Adele Greibach }}
- Output
-
- Sheila Adele Greibach at the Mathematics Genealogy ProjectScript error: No such module "EditAtWikidata".
Named parameters
- Usage
* {{MathGenealogy | id= 38586 | name= Leonhard Euler }}* {{MathGenealogy | id= 38586 | title= Leonhard Euler }}
- Output
-
- Leonhard Euler at the Mathematics Genealogy ProjectScript error: No such module "EditAtWikidata".
- Leonhard Euler at the Mathematics Genealogy ProjectScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
- Usage
* {{MathGenealogy}}* {{MathGenealogy|id=|name=}}
- Output
-
- Template:PAGENAMEBASE at the Mathematics Genealogy ProjectScript error: No such module "EditAtWikidata".
- Template:PAGENAMEBASE at the Mathematics Genealogy ProjectScript error: No such module "EditAtWikidata".
TemplateData
Mathematics Genealogy Project link
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | Mathematics Genealogy Project id | Number | required |
| title | title name 2 | optional display title | String | optional |