Template:Place/person: Difference between revisions

From stencil.wiki
No edit summary
Tag: Reverted
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#subobject:
<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 link={{{person_url|}}}
|Has URL={{{person_url|}}}
}}
}}</includeonly>

Latest revision as of 03:22, 18 December 2024

Warning: Class subtemplate
This is a support template for the main class template Template:Place—it should not invoked in other circumstances.

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Roleperson_role

The role the person holds at this place.

Stringoptional
Nameperson_name

The name of the person

Stringrequired
Linkperson_url

A link to a website for this person.

URLoptional