Difference between revisions of "Template:Person"
Jump to navigation
Jump to search
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="d-none"> | + | <includeonly><div class="d-none"> |
{{{Names|}}} | {{{Names|}}} | ||
{{{Dates|}}} | {{{Dates|}}} | ||
Line 5: | Line 5: | ||
{{{Education|}}} | {{{Education|}}} | ||
{{{Occupation|}}} | {{{Occupation|}}} | ||
+ | {{{Denominations|}}} | ||
{{{Images|}}} | {{{Images|}}} | ||
{{{Relatives|}}} | {{{Relatives|}}} | ||
− | {{#vardefine: fullname|{{# | + | {{#vardefine: fullname|{{#show: {{FULLPAGENAME}}|?First name}} {{#show: {{FULLPAGENAME}}|?Middle name|default={{#show: {{FULLPAGENAME}}|?Surname}}}} {{#if:{{#show: {{FULLPAGENAME}}|?Middle name}}|{{#show: {{FULLPAGENAME}}|?Surname}}}}}} |
− | |||
− | |||
− | |||
− | |||
− | }}}} | ||
{{#set: Full name={{#var: fullname}}}} | {{#set: Full name={{#var: fullname}}}} | ||
+ | [[Category:People]] | ||
</div><!-- | </div><!-- | ||
− | --><div class="wcpl-infobox"> | + | --><div class="wcpl-infobox">{{#if:{{{Images|}}} |
− | <div class="wcpl-infobox-image">{{{Images|}}}</div> | + | |<div class="wcpl-infobox-image">{{{Images|}}}</div> |
+ | |[[File:Wiki.png|link=|class=wcpl-infobox-image]] | ||
+ | }} | ||
<div class="wcpl-infobox-section"> | <div class="wcpl-infobox-section"> | ||
− | <div class="wcpl-infobox-section-header">About</div> | + | <div class="wcpl-infobox-section-header">About {{#if: {{CURRENTLOGGEDUSER}}|<span class="float-right">[[Special:FormEdit/Person/{{FULLPAGENAME}}|<span class="icon-edit"></span>]]</span>}}</div> |
<div class="wcpl-infobox-section-body"> | <div class="wcpl-infobox-section-body"> | ||
<div class="d-flex"> | <div class="d-flex"> | ||
Line 37: | Line 36: | ||
}} | }} | ||
| | | | ||
− | }} | + | }}<!-- |
− | {{# | + | |
− | + | ### BORN | |
− | + | ||
− | + | -->{{#vardefine:d|{{#show: {{FULLPAGENAME}}|?Date of birth}}}}<!-- | |
− | {{# | + | -->{{#arraydefine:p|{{#show: {{FULLPAGENAME}}|?Place of birth}}}}<!-- |
− | + | -->{{#arraydefine:x|United States of America}}<!-- | |
+ | -->{{#arraydiff:u|p|x}}<!-- | ||
+ | |||
+ | -->{{#if: {{#var:d}}{{#arrayprint:u}} | ||
+ | | | ||
<div class="d-flex"> | <div class="d-flex"> | ||
<dl><dt>Born</dt></dl> | <dl><dt>Born</dt></dl> | ||
− | <ul><li>{{#var: | + | <ul><li>{{#var:d}}{{#if:{{#var:d}}|<br><small>{{#arrayprint:u}}</small>|{{#arrayprint:u}}}}</li></ul> |
</div> | </div> | ||
− | |Date of death | + | }}<!-- |
+ | |||
+ | ### RESIDENCE | ||
+ | |||
+ | -->{{#arraydefine:p|{{#show: {{FULLPAGENAME}}|?Place of residence}}}}<!-- | ||
+ | -->{{#arraydiff:u|p|x}}<!-- | ||
+ | |||
+ | -->{{#ifexpr: 0{{#arraysize:u}} > 0 | ||
+ | | | ||
+ | <div class="d-flex"> | ||
+ | <dl><dt>Residence</dt></dl> | ||
+ | <ul><li>{{#arrayprint:u}}</li></ul> | ||
+ | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | ### DENOMINATION | ||
+ | |||
+ | -->{{#if:{{{Denominations|}}} | ||
+ | | | ||
+ | <div class="d-flex"> | ||
+ | <dl><dt>Denomination</dt></dl> | ||
+ | <ul>{{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Denomination::+]] OR [[-Has subobject::{{FULLPAGENAME}}]][[Denomination other::+]] | ||
+ | |?Denomination | ||
+ | |?Denomination other | ||
+ | |?Source of info | ||
+ | |format=plainlist | ||
+ | |template=Denomination/Item | ||
+ | |mainlabel=- | ||
+ | |headers=hide | ||
+ | |named args=yes | ||
+ | }}</ul> | ||
+ | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | ### DIED | ||
+ | |||
+ | -->{{#vardefine:d|{{#show: {{FULLPAGENAME}}|?Date of death}}}}<!-- | ||
+ | -->{{#arraydefine:p|{{#show: {{FULLPAGENAME}}|?Place of death}}}}<!-- | ||
+ | -->{{#arraydiff:u|p|x}}<!-- | ||
+ | |||
+ | -->{{#if: {{#var:d}}{{#arrayprint:u}} | ||
+ | | | ||
<div class="d-flex"> | <div class="d-flex"> | ||
<dl><dt>Died</dt></dl> | <dl><dt>Died</dt></dl> | ||
− | <ul><li>{{#var: | + | <ul><li>{{#var:d}}{{#if:{{#var:d}}|<br><small>{{#arrayprint:u}}</small>|{{#arrayprint:u}}}}</li></ul> |
+ | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{#arraydefine:p|{{#show: {{FULLPAGENAME}}|?Resting place}}}}<!-- | ||
+ | -->{{#arraydiff:u|p|x}}<!-- | ||
+ | |||
+ | -->{{#if: {{#arrayprint:u}} | ||
+ | | | ||
+ | <div class="d-flex"> | ||
+ | <dl><dt>Resting</dt></dl> | ||
+ | <ul><li>{{#arrayprint:u}}</li></ul> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
}} | }} | ||
</div> | </div> | ||
Line 169: | Line 221: | ||
|headers=hide | |headers=hide | ||
|format=plainlist | |format=plainlist | ||
+ | |sort=Year of birth | ||
+ | |order=asc | ||
|template=Relative/Item | |template=Relative/Item | ||
|named args=yes | |named args=yes | ||
Line 177: | Line 231: | ||
</div> | </div> | ||
}} | }} | ||
− | </div> | + | </div></includeonly> |
− | |||
− |