Template:PeopleDirectoryRow: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.0
 
WikiSync push v1.1
Line 1: Line 1:
<!-- WikiSync | version=1.0 | updated=2026-07-10 -->
<!-- WikiSync | version=1.1 | updated=2026-07-10 -->
<includeonly>|-
<includeonly>|-
| [[{{{1}}}|{{{2|{{{1}}}}}}]] || {{#if:{{{3|}}}|[[{{{3}}}]]|}} || {{#if:{{#show: {{{1}}} |?HasImage}}|[[{{#show: {{#show: {{{1}}} |?HasImage}} |?HasFile#-}}|thumb|20px|center]]|}}
| [[{{{1}}}|{{{2|{{{1}}}}}}]] || {{#if:{{{3|}}}|[[{{{3}}}]]|}} || {{#if:{{{4|}}}|[[{{{4}}}|thumb|20px|center]]|}}
</includeonly><noinclude>
</includeonly><noinclude>
Row template for the People Directory table on the Category:People page (used via <code>format=template</code>).
Row template for the People Directory table on the Category:People page (used via <code>format=template</code>).
Parameters (positional, from the #ask query): {{{1}}} = person page name, {{{2}}} = HasName, {{{3}}} = HasArticle.
Parameters (positional, from the #ask query): {{{1}}} = person page name, {{{2}}} = HasName, {{{3}}} = HasArticle, {{{4}}} = HasImage.HasFile.
Renders Name (linked to the person page), Related Article (linked), and a real 20px-wide thumbnail generated from HasImage HasFile — no CSS required.
Renders Name (linked to the person page), Related Article (linked), and a real 20px-wide thumbnail generated from the HasImage.HasFile printout — no CSS, no nested #show (SMW blocks #show/#ask inside a format=template row template).
To change the thumbnail size, edit the "20px" in the thumb link below.
To change the thumbnail size, edit the "20px" in the thumb link below.
</noinclude>
</noinclude>

Revision as of 11:29, 10 July 2026


Row template for the People Directory table on the Category:People page (used via format=template). Parameters (positional, from the #ask query): {{{1}}} = person page name, {{{2}}} = HasName, {{{3}}} = HasArticle, {{{4}}} = HasImage.HasFile. Renders Name (linked to the person page), Related Article (linked), and a real 20px-wide thumbnail generated from the HasImage.HasFile printout — no CSS, no nested #show (SMW blocks #show/#ask inside a format=template row template). To change the thumbnail size, edit the "20px" in the thumb link below.