Difference between revisions of "Template:Family"

From BITPlan royal-family Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-10-05T12:33:31Z)
m (created by WikiTask 2017-10-06T08:10:36Z)
Line 24: Line 24:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 38: Line 39:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 52: Line 54:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 67: Line 70:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 81: Line 85:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 95: Line 100:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 109: Line 115:
 
|parentOf=
 
|parentOf=
 
|husbandOf=
 
|husbandOf=
 +
|wifeOf=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 124: Line 131:
 
{{#if:{{{?parentOf|}}}|"{{{?parentOf}}}" is parentOf of it <br>|}}
 
{{#if:{{{?parentOf|}}}|"{{{?parentOf}}}" is parentOf of it <br>|}}
 
{{#if:{{{?husbandOf|}}}|"{{{?husbandOf}}}" is husbandOf of it <br>|}}
 
{{#if:{{{?husbandOf|}}}|"{{{?husbandOf}}}" is husbandOf of it <br>|}}
 +
{{#if:{{{?wifeOf|}}}|"{{{?wifeOf}}}" is wifeOf of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 136: Line 144:
 
|Family parentOf={{{parentOf|}}}
 
|Family parentOf={{{parentOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 +
|Family wifeOf={{{wifeOf|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 147: Line 156:
 
|Family parentOf={{{parentOf|}}}
 
|Family parentOf={{{parentOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 +
|Family wifeOf={{{wifeOf|}}}
 
}}
 
}}
 
}}
 
}}
Line 153: Line 163:
 
= children =
 
= children =
 
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]]
 
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]]
 +
| ?Person id = id
 
| ?Person name = name
 
| ?Person name = name
 
| ?Person nobleTitle = nobleTitle
 
| ?Person nobleTitle = nobleTitle
Line 172: Line 183:
 
}}
 
}}
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!parentOf!!husbandOf
+
!name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!parentOf!!husbandOf!!wifeOf
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{parentOf|}}}{{!}}{{!}}{{{husbandOf|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{parentOf|}}}{{!}}{{!}}{{{husbandOf|}}}{{!}}{{!}}{{{wifeOf|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>weddingDate={{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}<br>weddingPlace={{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}<br>yearMarried={{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}<br>monthMarried={{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}<br>divorced={{#if:{{{divorced|}}}|{{{divorced|}}}|}}<br>parentOf={{#if:{{{parentOf|}}}|{{{parentOf|}}}|}}<br>husbandOf={{#if:{{{husbandOf|}}}|{{{husbandOf|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>weddingDate={{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}<br>weddingPlace={{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}<br>yearMarried={{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}<br>monthMarried={{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}<br>divorced={{#if:{{{divorced|}}}|{{{divorced|}}}|}}<br>parentOf={{#if:{{{parentOf|}}}|{{{parentOf|}}}|}}<br>husbandOf={{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}<br>wifeOf={{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Family
 
! colspan='2' {{!}}Family
 
{{!}}-
 
{{!}}-
Line 208: Line 219:
 
{{!}}-
 
{{!}}-
 
!husbandOf
 
!husbandOf
{{!}}&nbsp;{{#if:{{{husbandOf|}}}|{{{husbandOf|}}}|}}
+
{{!}}&nbsp;{{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}
 +
{{!}}-
 +
!wifeOf
 +
{{!}}&nbsp;{{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 228: Line 242:
 
{{#if:{{{?parentOf|}}}|"{{{?parentOf}}}" is parentOf of it <br>|}}
 
{{#if:{{{?parentOf|}}}|"{{{?parentOf}}}" is parentOf of it <br>|}}
 
{{#if:{{{?husbandOf|}}}|"{{{?husbandOf}}}" is husbandOf of it <br>|}}
 
{{#if:{{{?husbandOf|}}}|"{{{?husbandOf}}}" is husbandOf of it <br>|}}
 +
{{#if:{{{?wifeOf|}}}|"{{{?wifeOf}}}" is wifeOf of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 240: Line 255:
 
|Family parentOf={{{parentOf|}}}
 
|Family parentOf={{{parentOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 +
|Family wifeOf={{{wifeOf|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 251: Line 267:
 
|Family parentOf={{{parentOf|}}}
 
|Family parentOf={{{parentOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 
|Family husbandOf={{{husbandOf|}}}
 +
|Family wifeOf={{{wifeOf|}}}
 
}}
 
}}
 
}}
 
}}
Line 257: Line 274:
 
= children =
 
= children =
 
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]]
 
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]]
 +
| ?Person id = id
 
| ?Person name = name
 
| ?Person name = name
 
| ?Person nobleTitle = nobleTitle
 
| ?Person nobleTitle = nobleTitle
Line 276: Line 294:
 
}}
 
}}
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!parentOf!!husbandOf
+
!name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!parentOf!!husbandOf!!wifeOf
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{parentOf|}}}{{!}}{{!}}{{{husbandOf|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{parentOf|}}}{{!}}{{!}}{{{husbandOf|}}}{{!}}{{!}}{{{wifeOf|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>weddingDate={{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}<br>weddingPlace={{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}<br>yearMarried={{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}<br>monthMarried={{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}<br>divorced={{#if:{{{divorced|}}}|{{{divorced|}}}|}}<br>parentOf={{#if:{{{parentOf|}}}|{{{parentOf|}}}|}}<br>husbandOf={{#if:{{{husbandOf|}}}|{{{husbandOf|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>weddingDate={{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}<br>weddingPlace={{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}<br>yearMarried={{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}<br>monthMarried={{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}<br>divorced={{#if:{{{divorced|}}}|{{{divorced|}}}|}}<br>parentOf={{#if:{{{parentOf|}}}|{{{parentOf|}}}|}}<br>husbandOf={{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}<br>wifeOf={{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Family
 
! colspan='2' {{!}}Family
 
{{!}}-
 
{{!}}-
Line 312: Line 330:
 
{{!}}-
 
{{!}}-
 
!husbandOf
 
!husbandOf
{{!}}&nbsp;{{#if:{{{husbandOf|}}}|{{{husbandOf|}}}|}}
+
{{!}}&nbsp;{{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}
 +
{{!}}-
 +
!wifeOf
 +
{{!}}&nbsp;{{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Revision as of 09:10, 6 October 2017

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

Usage

storemode subobject

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|storemode=subobject
}}

storemode property

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|storemode=property
}}

storemode none

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|storemode=none
}}


viewmode tableheader

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|viewmode=tableheader
}}

viewmode tablerow

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|viewmode=tablerow
}}

viewmode tablefooter

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|viewmode=tablefooter
}}

viewmode labelfield

{{Family
|name=
|weddingDate=
|weddingPlace=
|yearMarried=
|monthMarried=
|divorced=
|parentOf=
|husbandOf=
|wifeOf=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Family<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?weddingDate|}}}|"{{{?weddingDate}}}" is weddingDate of it <br>|}}
{{#if:{{{?weddingPlace|}}}|"{{{?weddingPlace}}}" is weddingPlace of it <br>|}}
{{#if:{{{?yearMarried|}}}|"{{{?yearMarried}}}" is yearMarried of it <br>|}}
{{#if:{{{?monthMarried|}}}|"{{{?monthMarried}}}" is monthMarried of it <br>|}}
{{#if:{{{?divorced|}}}|"{{{?divorced}}}" is divorced of it <br>|}}
{{#if:{{{?parentOf|}}}|"{{{?parentOf}}}" is parentOf of it <br>|}}
{{#if:{{{?husbandOf|}}}|"{{{?husbandOf}}}" is husbandOf of it <br>|}}
{{#if:{{{?wifeOf|}}}|"{{{?wifeOf}}}" is wifeOf of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Family
|Family name={{{name|}}}
|Family weddingDate={{{weddingDate|}}}
|Family weddingPlace={{{weddingPlace|}}}
|Family yearMarried={{{yearMarried|}}}
|Family monthMarried={{{monthMarried|}}}
|Family divorced={{{divorced|}}}
|Family parentOf={{{parentOf|}}}
|Family husbandOf={{{husbandOf|}}}
|Family wifeOf={{{wifeOf|}}}
}}
|#default={{#set:
|isA=Family
|Family name={{{name|}}}
|Family weddingDate={{{weddingDate|}}}
|Family weddingPlace={{{weddingPlace|}}}
|Family yearMarried={{{yearMarried|}}}
|Family monthMarried={{{monthMarried|}}}
|Family divorced={{{divorced|}}}
|Family parentOf={{{parentOf|}}}
|Family husbandOf={{{husbandOf|}}}
|Family wifeOf={{{wifeOf|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
= children =
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]]
| ?Person id = id
| ?Person name = name
| ?Person nobleTitle = nobleTitle
| ?Person picture = picture
| ?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



}}
|tableheader={{{!}} class='wikitable'
!name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!parentOf!!husbandOf!!wifeOf
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{parentOf|}}}{{!}}{{!}}{{{husbandOf|}}}{{!}}{{!}}{{{wifeOf|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>weddingDate={{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}<br>weddingPlace={{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}<br>yearMarried={{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}<br>monthMarried={{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}<br>divorced={{#if:{{{divorced|}}}|{{{divorced|}}}|}}<br>parentOf={{#if:{{{parentOf|}}}|{{{parentOf|}}}|}}<br>husbandOf={{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}<br>wifeOf={{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Family
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Family/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!weddingDate
{{!}}&nbsp;{{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}
{{!}}-
!weddingPlace
{{!}}&nbsp;{{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}
{{!}}-
!yearMarried
{{!}}&nbsp;{{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}
{{!}}-
!monthMarried
{{!}}&nbsp;{{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}
{{!}}-
!divorced
{{!}}&nbsp;{{#if:{{{divorced|}}}|{{{divorced|}}}|}}
{{!}}-
!parentOf
{{!}}&nbsp;{{#if:{{{parentOf|}}}|{{{parentOf|}}}|}}
{{!}}-
!husbandOf
{{!}}&nbsp;{{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}
{{!}}-
!wifeOf
{{!}}&nbsp;{{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Family]]{{#default_form:Family}}

Source

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