Difference between revisions of "Template:Family"
Jump to navigation
Jump to search
m (created by WikiTask 2017-10-06T08:10:36Z) |
m (created by WikiTask 2017-10-10T06:13:22Z) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 37: | Line 36: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 52: | Line 50: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 68: | Line 65: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 83: | Line 79: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 98: | Line 93: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 113: | Line 107: | ||
|monthMarried= | |monthMarried= | ||
|divorced= | |divorced= | ||
− | |||
|husbandOf= | |husbandOf= | ||
|wifeOf= | |wifeOf= | ||
Line 129: | Line 122: | ||
{{#if:{{{?monthMarried|}}}|"{{{?monthMarried}}}" is monthMarried of it <br>|}} | {{#if:{{{?monthMarried|}}}|"{{{?monthMarried}}}" is monthMarried of it <br>|}} | ||
{{#if:{{{?divorced|}}}|"{{{?divorced}}}" is divorced of it <br>|}} | {{#if:{{{?divorced|}}}|"{{{?divorced}}}" is divorced 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>|}} | {{#if:{{{?wifeOf|}}}|"{{{?wifeOf}}}" is wifeOf of it <br>|}} | ||
Line 142: | Line 134: | ||
|Family monthMarried={{{monthMarried|}}} | |Family monthMarried={{{monthMarried|}}} | ||
|Family divorced={{{divorced|}}} | |Family divorced={{{divorced|}}} | ||
− | |||
|Family husbandOf={{{husbandOf|}}} | |Family husbandOf={{{husbandOf|}}} | ||
|Family wifeOf={{{wifeOf|}}} | |Family wifeOf={{{wifeOf|}}} | ||
Line 154: | Line 145: | ||
|Family monthMarried={{{monthMarried|}}} | |Family monthMarried={{{monthMarried|}}} | ||
|Family divorced={{{divorced|}}} | |Family divorced={{{divorced|}}} | ||
− | |||
|Family husbandOf={{{husbandOf|}}} | |Family husbandOf={{{husbandOf|}}} | ||
|Family wifeOf={{{wifeOf|}}} | |Family wifeOf={{{wifeOf|}}} | ||
Line 163: | Line 153: | ||
= children = | = children = | ||
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]] | {{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]] | ||
− | | ?Person | + | | ?Person qid = qid |
+ | | ?Person royal92id = royal92id | ||
| ?Person name = name | | ?Person name = name | ||
| ?Person nobleTitle = nobleTitle | | ?Person nobleTitle = nobleTitle | ||
| ?Person picture = picture | | ?Person picture = picture | ||
+ | | ?Person sex = sex | ||
| ?Person born = born | | ?Person born = born | ||
| ?Person yearBorn = yearBorn | | ?Person yearBorn = yearBorn | ||
Line 178: | Line 170: | ||
| ?Person wikiPedia = wikiPedia | | ?Person wikiPedia = wikiPedia | ||
| ?Person childOf = childOf | | ?Person childOf = childOf | ||
+ | | ?Person parentOf = parentOf | ||
+ | | ?Person spouse = spouse | ||
+ | |||
+ | |||
+ | |||
+ | }} | ||
+ | = parents = | ||
+ | {{#ask:[[Concept:Person]][[Person parentOf::{{FULLPAGENAME}}]] | ||
+ | | ?Person qid = qid | ||
+ | | ?Person royal92id = royal92id | ||
+ | | ?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 | ||
+ | | ?Person parentOf = parentOf | ||
+ | | ?Person spouse = spouse | ||
Line 183: | Line 202: | ||
}} | }} | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
− | !name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced | + | !name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!husbandOf!!wifeOf |
{{!}}- | {{!}}- | ||
|tablerow= | |tablerow= | ||
− | {{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced | + | {{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{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 | + | 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>husbandOf={{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}<br>wifeOf={{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}<br>|#default={{{!}} class='wikitable' |
! colspan='2' {{!}}Family | ! colspan='2' {{!}}Family | ||
{{!}}- | {{!}}- | ||
Line 214: | Line 233: | ||
!divorced | !divorced | ||
{{!}} {{#if:{{{divorced|}}}|{{{divorced|}}}|}} | {{!}} {{#if:{{{divorced|}}}|{{{divorced|}}}|}} | ||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
!husbandOf | !husbandOf | ||
Line 240: | Line 256: | ||
{{#if:{{{?monthMarried|}}}|"{{{?monthMarried}}}" is monthMarried of it <br>|}} | {{#if:{{{?monthMarried|}}}|"{{{?monthMarried}}}" is monthMarried of it <br>|}} | ||
{{#if:{{{?divorced|}}}|"{{{?divorced}}}" is divorced of it <br>|}} | {{#if:{{{?divorced|}}}|"{{{?divorced}}}" is divorced 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>|}} | {{#if:{{{?wifeOf|}}}|"{{{?wifeOf}}}" is wifeOf of it <br>|}} | ||
Line 253: | Line 268: | ||
|Family monthMarried={{{monthMarried|}}} | |Family monthMarried={{{monthMarried|}}} | ||
|Family divorced={{{divorced|}}} | |Family divorced={{{divorced|}}} | ||
− | |||
|Family husbandOf={{{husbandOf|}}} | |Family husbandOf={{{husbandOf|}}} | ||
|Family wifeOf={{{wifeOf|}}} | |Family wifeOf={{{wifeOf|}}} | ||
Line 265: | Line 279: | ||
|Family monthMarried={{{monthMarried|}}} | |Family monthMarried={{{monthMarried|}}} | ||
|Family divorced={{{divorced|}}} | |Family divorced={{{divorced|}}} | ||
− | |||
|Family husbandOf={{{husbandOf|}}} | |Family husbandOf={{{husbandOf|}}} | ||
|Family wifeOf={{{wifeOf|}}} | |Family wifeOf={{{wifeOf|}}} | ||
Line 274: | Line 287: | ||
= children = | = children = | ||
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]] | {{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]] | ||
− | | ?Person | + | | ?Person qid = qid |
+ | | ?Person royal92id = royal92id | ||
| ?Person name = name | | ?Person name = name | ||
| ?Person nobleTitle = nobleTitle | | ?Person nobleTitle = nobleTitle | ||
| ?Person picture = picture | | ?Person picture = picture | ||
+ | | ?Person sex = sex | ||
| ?Person born = born | | ?Person born = born | ||
| ?Person yearBorn = yearBorn | | ?Person yearBorn = yearBorn | ||
Line 289: | Line 304: | ||
| ?Person wikiPedia = wikiPedia | | ?Person wikiPedia = wikiPedia | ||
| ?Person childOf = childOf | | ?Person childOf = childOf | ||
+ | | ?Person parentOf = parentOf | ||
+ | | ?Person spouse = spouse | ||
+ | |||
+ | |||
+ | |||
+ | }} | ||
+ | = parents = | ||
+ | {{#ask:[[Concept:Person]][[Person parentOf::{{FULLPAGENAME}}]] | ||
+ | | ?Person qid = qid | ||
+ | | ?Person royal92id = royal92id | ||
+ | | ?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 | ||
+ | | ?Person parentOf = parentOf | ||
+ | | ?Person spouse = spouse | ||
Line 294: | Line 336: | ||
}} | }} | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
− | !name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced | + | !name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!husbandOf!!wifeOf |
{{!}}- | {{!}}- | ||
|tablerow= | |tablerow= | ||
− | {{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced | + | {{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{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 | + | 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>husbandOf={{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}<br>wifeOf={{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}<br>|#default={{{!}} class='wikitable' |
! colspan='2' {{!}}Family | ! colspan='2' {{!}}Family | ||
{{!}}- | {{!}}- | ||
Line 325: | Line 367: | ||
!divorced | !divorced | ||
{{!}} {{#if:{{{divorced|}}}|{{{divorced|}}}|}} | {{!}} {{#if:{{{divorced|}}}|{{{divorced|}}}|}} | ||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
!husbandOf | !husbandOf |
Latest revision as of 07:13, 10 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= |husbandOf= |wifeOf= |storemode=subobject }}
storemode property
{{Family |name= |weddingDate= |weddingPlace= |yearMarried= |monthMarried= |divorced= |husbandOf= |wifeOf= |storemode=property }}
storemode none
{{Family |name= |weddingDate= |weddingPlace= |yearMarried= |monthMarried= |divorced= |husbandOf= |wifeOf= |storemode=none }}
viewmode tableheader
{{Family |name= |weddingDate= |weddingPlace= |yearMarried= |monthMarried= |divorced= |husbandOf= |wifeOf= |viewmode=tableheader }}
viewmode tablerow
{{Family |name= |weddingDate= |weddingPlace= |yearMarried= |monthMarried= |divorced= |husbandOf= |wifeOf= |viewmode=tablerow }}
{{Family |name= |weddingDate= |weddingPlace= |yearMarried= |monthMarried= |divorced= |husbandOf= |wifeOf= |viewmode=tablefooter }}
viewmode labelfield
{{Family |name= |weddingDate= |weddingPlace= |yearMarried= |monthMarried= |divorced= |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:{{{?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 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 husbandOf={{{husbandOf|}}}
|Family wifeOf={{{wifeOf|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
= children =
{{#ask:[[Concept:Person]][[Person childOf::{{FULLPAGENAME}}]]
| ?Person qid = qid
| ?Person royal92id = royal92id
| ?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
| ?Person parentOf = parentOf
| ?Person spouse = spouse
}}
= parents =
{{#ask:[[Concept:Person]][[Person parentOf::{{FULLPAGENAME}}]]
| ?Person qid = qid
| ?Person royal92id = royal92id
| ?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
| ?Person parentOf = parentOf
| ?Person spouse = spouse
}}
|tableheader={{{!}} class='wikitable'
!name!!weddingDate!!weddingPlace!!yearMarried!!monthMarried!!divorced!!husbandOf!!wifeOf
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{weddingDate|}}}{{!}}{{!}}{{{weddingPlace|}}}{{!}}{{!}}{{{yearMarried|}}}{{!}}{{!}}{{{monthMarried|}}}{{!}}{{!}}{{{divorced|}}}{{!}}{{!}}{{{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>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
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!weddingDate
{{!}} {{#if:{{{weddingDate|}}}|{{{weddingDate|}}}|}}
{{!}}-
!weddingPlace
{{!}} {{#if:{{{weddingPlace|}}}|{{{weddingPlace|}}}|}}
{{!}}-
!yearMarried
{{!}} {{#if:{{{yearMarried|}}}|{{{yearMarried|}}}|}}
{{!}}-
!monthMarried
{{!}} {{#if:{{{monthMarried|}}}|{{{monthMarried|}}}|}}
{{!}}-
!divorced
{{!}} {{#if:{{{divorced|}}}|{{{divorced|}}}|}}
{{!}}-
!husbandOf
{{!}} {{#if:{{{husbandOf|}}}|[[{{{husbandOf|}}}]]|}}
{{!}}-
!wifeOf
{{!}} {{#if:{{{wifeOf|}}}|[[{{{wifeOf|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Family]]{{#default_form:Family}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.