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

From stencil.wiki
No edit summary
No edit summary
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|source=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:[[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>

Revision as of 03:25, 18 December 2024

This is a semantic display template, it takes no properties of its own.

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.