Difference between revisions of "Template:Personjr/doc"
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} == See Also == * {{Purge}} == Template Data ==") |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
== IMPT TODO == | |||
<pre class="jjrPre"><nowiki>{{#if:{{{datedied}}}|'''Died:''' {{{datedied}}}|a?}} | |||
{{Ifdef|{{{occ}}}|* '''Occupation:''' {{{occ}}}}} | |||
{{Ifdef|{{{org}}}|* '''Organizational Affiliation:''' {{{org}}}}} | |||
</nowiki></pre> | |||
keys | |||
* datedied | |||
* occ | |||
* org | |||
are snafu and require bug fix | |||
== Usage == | |||
<pre><nowiki>{{Personjr | |||
|fullname= | |||
|gname= | |||
|lname= | |||
|dopt=1 | |||
|filmsAssoWith= | |||
|dateborn= | |||
|datedied= | |||
|occ=}}</nowiki></pre> | |||
[[Category:JR_templates]] | |||
== Helpers == | |||
* [[Template:pNoDobUnpack]] | |||
* [[Template:pFilmsUnpack]] | |||
== See Also == | == See Also == | ||
* {{Purge}} | * {{Purge}} | ||
* example of tpl in use: [[Person:Ken Nordine]] | |||
* preload? [[Template:Personjr/Preload]] - https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text | |||
== Template Data == | == Template Data == | ||
<templatedata> | |||
{ | |||
"params": { | |||
"fullname": { | |||
"label": "Full Name", | |||
"description": "this is used it as the displaytitle of the page", | |||
"type": "string" | |||
}, | |||
"gname": {}, | |||
"lname": { | |||
"label": "Last name" | |||
}, | |||
"dopt": { | |||
"label": "Display Option", | |||
"default": "1", | |||
"required": true | |||
}, | |||
"filmsAssoWith": { | |||
"label": "Films Associated With", | |||
"description": "A comma seperated list of the films he or she is associated with (ie was involved in making). This field needs to convert strings like \"Gifts of the Sun\" or \"Gifts+of+the+Sun\" or \"Gifts_of_the_Sun\" into [[Moving Image:Gifts_of_the_Sun]]", | |||
"type": "string", | |||
"example": "filmsAssoWith=Gifts+of+the+Sun" | |||
}, | |||
"dateborn": { | |||
"label": "Date of Birth", | |||
"type": "date" | |||
}, | |||
"datedied": { | |||
"label": "Date of Death", | |||
"type": "date" | |||
}, | |||
"occ": { | |||
"label": "Occupation", | |||
"description": "Most prominent occupation. Single value only (only one allowed)", | |||
"example": "occ=Film director", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "person template - note that this template takes the fullname param and uses it as a displaytitle", | |||
"maps": { | |||
"fff": {} | |||
}, | |||
"format": "block" | |||
} | |||
</templatedata> |
Latest revision as of 21:14, 28 February 2022
- - -
There is a documentation subpage housing the metadata about parent template: Personjr.
IMPT TODO
{{#if:{{{datedied}}}|'''Died:''' {{{datedied}}}|a?}} {{Ifdef|{{{occ}}}|* '''Occupation:''' {{{occ}}}}} {{Ifdef|{{{org}}}|* '''Organizational Affiliation:''' {{{org}}}}}
keys
- datedied
- occ
- org
are snafu and require bug fix
Usage
{{Personjr |fullname= |gname= |lname= |dopt=1 |filmsAssoWith= |dateborn= |datedied= |occ=}}
Helpers
See Also
- example of tpl in use: Ken Nordine
- preload? Template:Personjr/Preload - https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text
Template Data
person template - note that this template takes the fullname param and uses it as a displaytitle
Parameter | Description | Type | Status | |
---|---|---|---|---|
Full Name | fullname | this is used it as the displaytitle of the page | String | optional |
gname | gname | no description | Unknown | optional |
Last name | lname | no description | Unknown | optional |
Display Option | dopt | no description
| Unknown | required |
Films Associated With | filmsAssoWith | A comma seperated list of the films he or she is associated with (ie was involved in making). This field needs to convert strings like "Gifts of the Sun" or "Gifts+of+the+Sun" or "Gifts_of_the_Sun" into [[Moving Image:Gifts_of_the_Sun]]
| String | optional |
Date of Birth | dateborn | no description | Date | optional |
Date of Death | datedied | no description | Date | optional |
Occupation | occ | Most prominent occupation. Single value only (only one allowed)
| String | optional |