Template:Place/person: Difference between revisions
Robertbaxter (talk | contribs) No edit summary Tag: Reverted |
Robertbaxter (talk | contribs) No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#subobject:{{{person_name|}}} | <noinclude>{{Class subtemplate}} | ||
This is a helper function for [[Template:Place]], it handles the semantic assignment of properties for a single person. It should not need to be invoked directly—it is the output for the people values in [[Form:Place]]. | |||
It generates no direct display, however the values it assigns are displayed with queries through [[Template:Infobox place/people]]. | |||
== TemplateData == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"person_name": { | |||
"label": "Name", | |||
"description": "The name of the person", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"person_role": { | |||
"label": "Role", | |||
"description": "The role the person holds at this place.", | |||
"type": "string" | |||
}, | |||
"person_url": { | |||
"label": "Link", | |||
"description": "A link to a website for this person.", | |||
"type": "url" | |||
} | |||
}, | |||
"description": "Support function for the \"Place\" class to make semantic annotations for a person.", | |||
"paramOrder": [ | |||
"person_role", | |||
"person_name", | |||
"person_url" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude><includeonly>{{#subobject:{{{person_name|}}}|@category=People | |||
|Has role={{{person_role|}}} | |Has role={{{person_role|}}} | ||
|With role={{#if:{{{person_role|}}}|true|false}} | |||
|Has name={{{person_name|}}} | |Has name={{{person_name|}}} | ||
|Has | |Has URL={{{person_url|}}} | ||
}}</includeonly> | |||
}} |
Latest revision as of 03:22, 18 December 2024
This is a helper function for Template:Place, it handles the semantic assignment of properties for a single person. It should not need to be invoked directly—it is the output for the people values in Form:Place.
It generates no direct display, however the values it assigns are displayed with queries through Template:Infobox place/people.
TemplateData
Support function for the "Place" class to make semantic annotations for a person.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Role | person_role | The role the person holds at this place. | String | optional |
Name | person_name | The name of the person | String | required |
Link | person_url | A link to a website for this person. | URL | optional |