Difference between revisions of "Template:MathGenealogy/doc"
Jump to navigation
Jump to search
imported>Zyxw m (add link, update example) |
imported>David Eppstein (→TemplateData: id is not required when it can be found on wikidata) |
||
| Line 61: | Line 61: | ||
"label": "id", | "label": "id", | ||
"description": "Mathematics Genealogy Project id", | "description": "Mathematics Genealogy Project id", | ||
| − | "type": "number" | + | "type": "number" |
| − | |||
}, | }, | ||
"title": { | "title": { | ||
Latest revision as of 01:43, 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. |
| This template uses Lua: |
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}}
- Output
-
- 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 | optional |
| title | title name 2 | optional display title | String | optional |