Template:PersonRole: Difference between revisions

From TITAF TANGOWIKI
No edit summary
Tag: Reverted
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{#template_params:PersonRole (label=Role;property=PersonRole)|PersonRoleOrchestra (label=Orchestra;property=PersonRoleOrchestra)|PersonRoleFrom (label=From;property=PersonRoleFrom)|PersonRoleTo (label=To;property=PersonRoleTo)}}
{{#template_params:PersonRole (label=Role;property=PersonRole)|PersonRoleOrchestra (label=Orchestra;property=PersonRoleOrchestra)|PersonRoleFrom (label=From;property=PersonRoleFrom)|PersonRoleTo (label=To;property=PersonRoleTo)}}
</noinclude><includeonly>
</noinclude><includeonly>
* [[PersonRole::{{{PersonRole|}}}]] from [[PersonRoleFrom::{{{PersonRoleFrom|}}}]] to [[PersonRoleTo::{{{PersonRoleTo|}}}]] at [[PersonRoleOrchestra::{{{PersonRoleOrchestra|}}}]]
<noinclude></noinclude>
<includeonly>
{{DISPLAYTITLE:{{{Title}}}}}


{| class="person"
<!-- Manually entered roles -->
|-
* [[PersonRole::{{{PersonRole|}}}]]
! Role
* [[PersonRoleOrchestra::{{{PersonRoleOrchestra|}}}]]
| [[PersonRole::{{{PersonRole|}}}]]
* [[PersonRoleFrom::{{{PersonRoleFrom|}}}]]
|-
* [[PersonRoleTo::{{{PersonRoleTo|}}}]]
! Orchestra
 
| [[PersonRoleOrchestra::{{{PersonRoleOrchestra|}}}]]
<!-- Fetch data from Wikidata if Wikidata_ID is available -->
|-
{{#if:{{{Wikidata_ID|}}}|
! From
  {{#get_web_data:
| [[PersonRoleFrom::{{{PersonRoleFrom|}}}]]
    url=https://www.wikidata.org/w/api.php?action=wbgetentities&ids={{{Wikidata_ID}}}&format=json;
|-
    format=json;
! To
    data=role=entities.{{{Wikidata_ID}}}.claims.P106.0.mainsnak.datavalue.value.id,
| [[PersonRoleTo::{{{PersonRoleTo|}}}]]
          orchestra=entities.{{{Wikidata_ID}}}.claims.P463.0.mainsnak.datavalue.value.id
|-
  }}
! Description
 
|-
  * Wikidata Role: [[PersonRole::{{#external_value:role}}]]
| [[TuneDescription::{{{Description|}}}]]
  * Wikidata Orchestra: [[PersonRoleOrchestra::{{#external_value:orchestra}}]]
|-
}}
! [https://iswcnet.cisac.org/ ISWC]
 
|-
[[TuneISWC::{{{ISWC|}}}]]
|-
! {{{Title}}} on …
|}
</includeonly>
</includeonly>
<noinclude>[[Category:PersonClass]]</noinclude>
<noinclude>[[Category:PersonClass]]</noinclude>

Latest revision as of 15:26, 18 March 2025

This is the "PersonRole" template.

It should be called in the following format:

{{PersonRole
|PersonRole=
|PersonRoleOrchestra=
|PersonRoleFrom=
|PersonRoleTo=
}}

Edit the page to see the template text.