Template:Infobox place/people/person: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:{{#ask:[[Category:people]][[Has name::{{{1}}}]][[With role::true]]||format=count}}>0|<tr><th>{{#ask:[[Category:people]][[Has name::{{{1}}}]]|?Has role|mainlabel=-|headers=hide|format=plainlist}}</th><td>|<div>}}{{#if:{{#ask:[[Category:people]][[Has name::{{{1}}}]]|?Has URL|mainlabel=-|headers=hide|format=plainlist}}|[{{#ask:[[Category:people]][[Has name::{{{1}}}]]|?Has URL#|mainlabel=-|headers=hide|format=plainlist}} {{{1}}}]|{{{1}}}}}{{#ifexpr:{{#ask:[[Category:people]][[Has name::{{{1}}}]][[With role::true]]||format=count}}>0|</td></tr>|</div>}}</includeonly>
<noinclude>{{Semantic display template|Place/person}}
This is a helper template for [[Template:Infobox place/people]], it displays a single person in a row (if they have a role/label) or a <code><nowiki><div/></nowiki></code> if they are being grouped within the "People" row.
</noinclude><includeonly>{{#ifexpr:{{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:people]][[Has name::{{{1}}}]][[With role::true]]||format=count}}>0|<tr><th>{{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:people]][[Has name::{{{1}}}]]|?Has role|mainlabel=-|headers=hide|format=plainlist}}</th><td>|<div>}}{{#if:{{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:people]][[Has name::{{{1}}}]]|?Has URL|mainlabel=-|headers=hide|format=plainlist}}|[{{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:people]][[Has name::{{{1}}}]]|?Has URL#|mainlabel=-|headers=hide|format=plainlist}} {{{1}}}]|{{{1}}}}}{{#ifexpr:{{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:people]][[Has name::{{{1}}}]][[With role::true]]||format=count}}>0|</td></tr>|</div>}}</includeonly>

Latest revision as of 09:08, 10 April 2025

This is a semantic display template, it takes no properties of its own. The annotations it uses are made in Template:Place/person.

This is a helper template for Template:Infobox place/people, it displays a single person in a row (if they have a role/label) or a <div/> if they are being grouped within the "People" row.