Form:Person: Difference between revisions

From TITAF TANGOWIKI
No edit summary
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
{{#formlink:form=Person|link text=Add new person|link type=button}}
{{#formlink:form=Person|link text=Add new person|link type=button}}
</noinclude><includeonly>


<!--{{#forminput:form=Person|autocomplete on category=Person}}-->
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{info|edit title=<page name>|page name=IND30<unique number;random;6>}}}
{{{info|edit title=<page name>|page name=IND30<unique number;random;6>}}}
Line 36: Line 33:
! Country of origin:  
! Country of origin:  
| {{{field|Country}}}
| {{{field|Country}}}
! Wikidata ID:
| {{{field|Wikidata_ID|input type=text}}}
|-
|-
! Date of birth:  
! Wikidata ID: <!-- Added field here -->
| {{{field|DateBirth|input type=text|autocomplete off}}}
{{#get_web_data:
  url=https://www.wikidata.org/w/api.php?action=wbgetentities&ids={{{Wikidata_ID}}}&format=json;
  format=json;
  data=birthday=entities.{{{Wikidata_ID}}}.claims.P569.0.mainsnak.datavalue.value.time
}}
{{#external_value:birthday|R:([\d-]+)}}
! Wikidata ID:
| {{{field|Wikidata_ID|input type=text}}}
| {{{field|Wikidata_ID|input type=text}}}
|-
! Date of birth wikidata:
| {{{field|DateBirth|input type=text|autocomplete off}}}
{{#get_web_data:
  url=https://www.wikidata.org/w/api.php?action=wbgetentities&ids={{{Wikidata_ID}}}&format=json;
  format=json;
  data=birthday=entities.{{{Wikidata_ID}}}.claims.P569.0.mainsnak.datavalue.value.time
}}
{{#external_value:birthday|R:([\d-]+)}}
|-
|-
! Date of birth:  
! Date of birth:  
Line 66: Line 44:
|}
|}
{{{end template}}}
{{{end template}}}
{{{for template|PersonRole|multiple|add button text=Add a role}}}
{| class="formtable"
|-
! Role:
| {{{field|PersonRole|input type=combobox}}}
|-
! Orchestra:
| {{{field|PersonRoleOrchestra|input type=combobox}}}
|-
! From:
| {{{field|PersonRoleFrom}}}
|-
! To:
| {{{field|PersonRoleTo}}}
|}
{{{end template}}}
'''Free text:'''
{{{standard input|free text|rows=10}}}
</includeonly><noinclude>[[Category:PersonClass]]</noinclude>

Latest revision as of 15:28, 18 March 2025