Plantilla:Infotaula geografia política: diferència entre les revisions

Contingut suprimit Contingut afegit
m traspassar coord_display
simplificar peu_bandera i peu_escut per "bandera" i "escut" + majúscules en tractament "nom_cap_estat" + evitar repetir "nom_original" quan = nom article, segons discussió
Línia 14:
}}
| nom = {{{nom|{{{nom_oficial|{{{topònim|{{títol sense cua}} }}} }}} }}}
| nom_original_txt = {{#invoke:Wikidades | claim | property=P1705 |list=firstrank |editicon=no
| value={{{nom_original|}}}| formatting=text}} <!-- agafa
format "text" per poder determinar si està duplicat amb el nom bàsic. -->
Línia 39:
}} }} }}
| peu_bandera = {{#if:{{{peu_bandera|}}} | {{{peu_bandera|}}}
| {{#invoke:Wikidades | claim| property=P163 | formatting=ucfirst| list=false}}
| formatting=[[$1|{{GetLabelFix|Q14660|lang={{{lang|}}}|linked=no}}]] | list=false }}
}}
| peu_escut = {{#if:{{{peu_escut|}}} | {{{peu_escut|}}}
|{{#if:{{#invoke:Wikidades|validProperty|P94|item={{{item|}}}}}<!--Si tenim
P94 (escut) >> P237 -->|{{#invoke:Wikidades | claim| property=P237 | formatting=ucfirst| list=false}}
| formatting=[[$1|{{GetLabelFix|Q14659|lang={{{lang|}}}|linked=no}}]]}}
|{{#if:{{#invoke:Wikidades|validProperty|P158|item={{{item|}}}}}<!--Si
P158 (segell) >> P418 -->|{{#invoke:Wikidades | claim| property=P418 |formatting=ucfirst |list=false}}
|formatting=[[$1|{{GetLabelFix|Q14659|lang={{{lang|}}}|linked=no}}]] }}
}} }} }}
<!-- Eliminat en passar a multi-llengua. Agafarà el valor de peu_xxxxx
Linha 358 ⟶ 361:
| list=false | value={{{organ_legislatiu|}}} }}
| etiqueta_cap_estat = {{#invoke:Wikidades | claim | property=P1906
| list=false | formatting=label | case=genderinfoboxlabel
| value={{{etiqueta_cap_estat|}}}
| itemgender={{#invoke:Wikidades | claim | property=P35
Linha 367 ⟶ 370:
| etiqueta_cap_govern = {{#invoke:Wikidades | claim | property=P1313
| list=false | formatting=label | case=infoboxlabel
| value={{{etiqueta_cap_govern|}}}
| itemgender={{#invoke:Wikidades | claim | property=P6
| list=false |formatting=raw }} }}