Template:Person: Difference between revisions

From TITAF TANGOWIKI
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<noinclude>
<noinclude>
<!-- parameter doc omitted -->
<!-- Documentation or usage instructions here -->
</noinclude><includeonly>
</noinclude><includeonly>


<!-- Get Wikidata values if ID is provided -->
<!-- Fetch Data from Wikidata if Wikidata_ID is provided -->
{{#if:{{{Wikidata_ID|}}}|
{{#if:{{{Wikidata_ID|}}}|
   {{#get_web_data:
   {{#get_web_data:
Line 13: Line 13:
}}
}}


<!-- Display title and sorting -->
{{DISPLAYTITLE:{{{NameFirst}}}{{#if:{{{NameNick|}}}|&#32;({{{NameNick}}})|}} {{{NameLast}}}}}
{{DISPLAYTITLE:{{{NameFirst}}}{{#if:{{{NameNick|}}}|&#32;({{{NameNick}}})|}} {{{NameLast}}}}}
{{DEFAULTSORT:{{{NameLast}}},{{{NameFirst}}}}}
{{DEFAULTSORT:{{{NameLast}}},{{{NameFirst}}}}}


{| class="person"
<!-- Table of Person Data -->
{| class="wikitable"
! First name
! First name
| [[PersonNameFirst::{{{NameFirst|}}}]]
| [[PersonNameFirst::{{{NameFirst|}}}]]
Line 54: Line 56:
|}
|}


<!-- Output from Wikidata -->
<!-- Wikidata-derived dates (formatted nicely) -->
{{#if:{{#external_value:birthday}}|Wikidata Date of Birth: {{#external_value:birthday}}<br>}}
{{#if:{{#external_value:birthday}}|
{{#if:{{#external_value:deathday}}|Wikidata Date of Death: {{#external_value:deathday}}<br>}}
'''Wikidata Date of Birth:''' {{#time:j F Y|{{#replace:{{#external_value:birthday}}|+|}}}}<br>
}}
{{#if:{{#external_value:deathday}}|
'''Wikidata Date of Death:''' {{#time:j F Y|{{#replace:{{#external_value:deathday}}|+|}}}}<br>
}}


[[Category:Person]]
[[Category:Person]]
</includeonly><noinclude>[[Category:PersonClass]]</noinclude>
 
</includeonly><noinclude>
[[Category:PersonClass]]
</noinclude>

Revision as of 13:08, 6 April 2025