Template:Infobox place/people/person: Difference between revisions
Robertbaxter (talk | contribs) m (Robertbaxter moved page Template:Infobox place/people/individual to Template:Infobox place/people/person) |
Robertbaxter (talk | contribs) No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><tr><th>{{#ask:[[Category:people]][[Has name::{{{1}}}]]|?Has role|mainlabel=-|headers=hide|format=plainlist}}</th><td>{{#if:{{#ask:[[Category:people]][[Has name::{{{1}}}]]|?Has | <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 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.