Template:Person

From BITPlan royal-family Wiki
Revision as of 06:01, 7 October 2017 by Wf (talk | contribs) (created by WikiTask 2017-10-07T05:01:32Z)
Jump to navigation Jump to search

This is the template Person. It belongs to the concept/topic Concept:Person
You may find examples for the use of this template via the List of Persons.

Usage

storemode subobject

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|storemode=subobject
}}

storemode property

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|storemode=property
}}

storemode none

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|storemode=none
}}


viewmode tableheader

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|viewmode=tableheader
}}

viewmode tablerow

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|viewmode=tablerow
}}

viewmode tablefooter

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|viewmode=tablefooter
}}

viewmode labelfield

{{Person
|id=
|name=
|nobleTitle=
|picture=
|sex=
|born=
|yearBorn=
|monthBorn=
|birthPlace=
|died=
|diedAt=
|yearDied=
|monthDied=
|noInLine=
|wikiPedia=
|childOf=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Person<br>|}}
{{#if:{{{?id|}}}|"{{{?id}}}" is id of it <br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?nobleTitle|}}}|"{{{?nobleTitle}}}" is nobleTitle of it <br>|}}
{{#if:{{{?picture|}}}|"{{{?picture}}}" is picture of it <br>|}}
{{#if:{{{?sex|}}}|"{{{?sex}}}" is sex of it <br>|}}
{{#if:{{{?born|}}}|"{{{?born}}}" is born of it <br>|}}
{{#if:{{{?yearBorn|}}}|"{{{?yearBorn}}}" is yearBorn of it <br>|}}
{{#if:{{{?monthBorn|}}}|"{{{?monthBorn}}}" is monthBorn of it <br>|}}
{{#if:{{{?birthPlace|}}}|"{{{?birthPlace}}}" is birthPlace of it <br>|}}
{{#if:{{{?died|}}}|"{{{?died}}}" is died of it <br>|}}
{{#if:{{{?diedAt|}}}|"{{{?diedAt}}}" is diedAt of it <br>|}}
{{#if:{{{?yearDied|}}}|"{{{?yearDied}}}" is yearDied of it <br>|}}
{{#if:{{{?monthDied|}}}|"{{{?monthDied}}}" is monthDied of it <br>|}}
{{#if:{{{?noInLine|}}}|"{{{?noInLine}}}" is noInLine of it <br>|}}
{{#if:{{{?wikiPedia|}}}|"{{{?wikiPedia}}}" is wikiPedia of it <br>|}}
{{#if:{{{?childOf|}}}|"{{{?childOf}}}" is childOf of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Person
|Person id={{{id|}}}
|Person name={{{name|}}}
|Person nobleTitle={{{nobleTitle|}}}
|Person picture={{{picture|}}}
|Person sex={{{sex|}}}
|Person born={{{born|}}}
|Person yearBorn={{{yearBorn|}}}
|Person monthBorn={{{monthBorn|}}}
|Person birthPlace={{{birthPlace|}}}
|Person died={{{died|}}}
|Person diedAt={{{diedAt|}}}
|Person yearDied={{{yearDied|}}}
|Person monthDied={{{monthDied|}}}
|Person noInLine={{{noInLine|}}}
|Person wikiPedia={{{wikiPedia|}}}
|Person childOf={{{childOf|}}}
}}
|#default={{#set:
|isA=Person
|Person id={{{id|}}}
|Person name={{{name|}}}
|Person nobleTitle={{{nobleTitle|}}}
|Person picture={{{picture|}}}
|Person sex={{{sex|}}}
|Person born={{{born|}}}
|Person yearBorn={{{yearBorn|}}}
|Person monthBorn={{{monthBorn|}}}
|Person birthPlace={{{birthPlace|}}}
|Person died={{{died|}}}
|Person diedAt={{{diedAt|}}}
|Person yearDied={{{yearDied|}}}
|Person monthDied={{{monthDied|}}}
|Person noInLine={{{noInLine|}}}
|Person wikiPedia={{{wikiPedia|}}}
|Person childOf={{{childOf|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!id!!name!!nobleTitle!!picture!!sex!!born!!yearBorn!!monthBorn!!birthPlace!!died!!diedAt!!yearDied!!monthDied!!noInLine!!wikiPedia!!childOf
{{!}}-
|tablerow=
{{!}}{{{id|}}}{{!}}{{!}}{{{name|}}}{{!}}{{!}}{{{nobleTitle|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{sex|}}}{{!}}{{!}}{{{born|}}}{{!}}{{!}}{{{yearBorn|}}}{{!}}{{!}}{{{monthBorn|}}}{{!}}{{!}}{{{birthPlace|}}}{{!}}{{!}}{{{died|}}}{{!}}{{!}}{{{diedAt|}}}{{!}}{{!}}{{{yearDied|}}}{{!}}{{!}}{{{monthDied|}}}{{!}}{{!}}{{{noInLine|}}}{{!}}{{!}}{{{wikiPedia|}}}{{!}}{{!}}{{{childOf|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
id={{#if:{{{id|}}}|{{{id|}}}|}}<br>name={{#if:{{{name|}}}|{{{name|}}}|}}<br>nobleTitle={{#if:{{{nobleTitle|}}}|{{{nobleTitle|}}}|}}<br>picture={{#if:{{{picture|}}}|{{{picture|}}}|}}<br>sex={{#if:{{{sex|}}}|{{{sex|}}}|}}<br>born={{#if:{{{born|}}}|{{{born|}}}|}}<br>yearBorn={{#if:{{{yearBorn|}}}|{{{yearBorn|}}}|}}<br>monthBorn={{#if:{{{monthBorn|}}}|{{{monthBorn|}}}|}}<br>birthPlace={{#if:{{{birthPlace|}}}|{{{birthPlace|}}}|}}<br>died={{#if:{{{died|}}}|{{{died|}}}|}}<br>diedAt={{#if:{{{diedAt|}}}|{{{diedAt|}}}|}}<br>yearDied={{#if:{{{yearDied|}}}|{{{yearDied|}}}|}}<br>monthDied={{#if:{{{monthDied|}}}|{{{monthDied|}}}|}}<br>noInLine={{#if:{{{noInLine|}}}|{{{noInLine|}}}|}}<br>wikiPedia={{#if:{{{wikiPedia|}}}|{{{wikiPedia|}}}|}}<br>childOf={{#if:{{{childOf|}}}|[[{{{childOf|}}}]]|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Person
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Person/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!id
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id|}}}|}}
{{!}}-
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!nobleTitle
{{!}}&nbsp;{{#if:{{{nobleTitle|}}}|{{{nobleTitle|}}}|}}
{{!}}-
!picture
{{!}}&nbsp;{{#if:{{{picture|}}}|{{{picture|}}}|}}
{{!}}-
!sex
{{!}}&nbsp;{{#if:{{{sex|}}}|{{{sex|}}}|}}
{{!}}-
!born
{{!}}&nbsp;{{#if:{{{born|}}}|{{{born|}}}|}}
{{!}}-
!yearBorn
{{!}}&nbsp;{{#if:{{{yearBorn|}}}|{{{yearBorn|}}}|}}
{{!}}-
!monthBorn
{{!}}&nbsp;{{#if:{{{monthBorn|}}}|{{{monthBorn|}}}|}}
{{!}}-
!birthPlace
{{!}}&nbsp;{{#if:{{{birthPlace|}}}|{{{birthPlace|}}}|}}
{{!}}-
!died
{{!}}&nbsp;{{#if:{{{died|}}}|{{{died|}}}|}}
{{!}}-
!diedAt
{{!}}&nbsp;{{#if:{{{diedAt|}}}|{{{diedAt|}}}|}}
{{!}}-
!yearDied
{{!}}&nbsp;{{#if:{{{yearDied|}}}|{{{yearDied|}}}|}}
{{!}}-
!monthDied
{{!}}&nbsp;{{#if:{{{monthDied|}}}|{{{monthDied|}}}|}}
{{!}}-
!noInLine
{{!}}&nbsp;{{#if:{{{noInLine|}}}|{{{noInLine|}}}|}}
{{!}}-
!wikiPedia
{{!}}&nbsp;{{#if:{{{wikiPedia|}}}|{{{wikiPedia|}}}|}}
{{!}}-
!childOf
{{!}}&nbsp;{{#if:{{{childOf|}}}|[[{{{childOf|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Person]]{{#default_form:Person}}

Source

Click on "Edit" to edit the noinclude-part Source of this Template.