Difference between revisions of "Template:Personjr/doc"

From Ephemeral Film Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
== See Also ==
 
* {{Purge}}
== IMPT TODO ==
* example of tpl in use: [[Person:Ken Nordine]]
 
<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 ==
== Usage ==
Line 14: Line 26:
|datedied=
|datedied=
|occ=}}</nowiki></pre>
|occ=}}</nowiki></pre>
[[Category:JR_templates]]
== Helpers ==
* [[Template:pNoDobUnpack]]
* [[Template:pFilmsUnpack]]
== See Also ==
* {{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 ==
Line 19: Line 43:
{
{
"params": {
"params": {
"fullname": {},
"fullname": {
"label": "Full Name",
"description": "this is used it as the displaytitle of the page",
"type": "string"
},
"gname": {},
"gname": {},
"lname": {
"lname": {
Line 31: Line 59:
"filmsAssoWith": {
"filmsAssoWith": {
"label": "Films Associated With",
"label": "Films Associated With",
"description": "A comma seperated list of the films he or she is associated with (ie was involved in making)",
"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"
"type": "string",
"example": "filmsAssoWith=Gifts+of+the+Sun"
},
"dateborn": {
"label": "Date of Birth",
"type": "date"
},
"datedied": {
"label": "Date of Death",
"type": "date"
},
},
"dateborn": {},
"datedied": {},
"occ": {
"occ": {
"label": "Occupation",
"label": "Occupation",
Line 43: Line 78:
}
}
},
},
"description": "person template"
"description": "person template - note that this template takes the fullname param and uses it as a displaytitle",
"maps": {
"fff": {}
},
"format": "block"
}
}
</templatedata>
</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

Template Data

person template - note that this template takes the fullname param and uses it as a displaytitle

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Full Namefullname

this is used it as the displaytitle of the page

Stringoptional
gnamegname

no description

Unknownoptional
Last namelname

no description

Unknownoptional
Display Optiondopt

no description

Default
1
Unknownrequired
Films Associated WithfilmsAssoWith

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]]

Example
filmsAssoWith=Gifts+of+the+Sun
Stringoptional
Date of Birthdateborn

no description

Dateoptional
Date of Deathdatedied

no description

Dateoptional
Occupationocc

Most prominent occupation. Single value only (only one allowed)

Example
occ=Film director
Stringoptional