Difference between revisions of "Template:PersonList"

(Fix curly braces for 4th argument)
(Add usage examples)
Line 1: Line 1:
{{#if:{{{1|}}}|{{Person|{{{1}}}}}|}}{{#if:{{{2|}}}|, {{Person|{{{2}}}}}|}}{{#if:{{{3|}}}|, {{Person|{{{3}}}}}|}}{{#if:{{{4|}}}|<span class="mw-collapsible mw-collapsed" data-collapsetext="-" data-expandtext="..." style="overflow:auto;">{{Person|{{{4}}}}}{{#if:{{{5|}}}|, {{Person|{{{5}}}}}|}}{{#if:{{{6|}}}|, {{Person|{{{6}}}}}|}}{{#if:{{{7|}}}|, {{Person|{{{7}}}}}|}}{{#if:{{{8|}}}|, {{Person|{{{8}}}}}|}}{{#if:{{{9|}}}|, {{Person|{{{9}}}}}|}}{{#if:{{{10|}}}|, {{Person|{{{10}}}}}|}}{{#if:{{{11|}}}|, {{Person|{{{11}}}}}|}}{{#if:{{{12|}}}|, {{Person|{{{12}}}}}|}}{{#if:{{{13|}}}|, {{Person|{{{13}}}}}|}}{{#if:{{{14|}}}|, {{Person|{{{14}}}}}|}}{{#if:{{{15|}}}|, {{Person|{{{15}}}}}|}}{{#if:{{{16|}}}|, {{Person|{{{16}}}}}|}}{{#if:{{{17|}}}|, {{Person|{{{17}}}}}|}}{{#if:{{{18|}}}|, {{Person|{{{18}}}}}|}}{{#if:{{{19|}}}|, {{Person|{{{19}}}}}|}}{{#if:{{{20|}}}|, {{Person|{{{20}}}}}|}}{{#if:{{{21|}}}|, {{Person|{{{21}}}}}|}}{{#if:{{{22|}}}|, {{Person|{{{22}}}}}|}}{{#if:{{{23|}}}|, {{Person|{{{23}}}}}|}}{{#if:{{{24|}}}|, {{Person|{{{24}}}}}|}}{{#if:{{{25|}}}|, {{Person|{{{25}}}}}|}}{{#if:{{{26|}}}|, {{Person|{{{26}}}}}|}}{{#if:{{{27|}}}|, {{Person|{{{27}}}}}|}}{{#if:{{{28|}}}|, {{Person|{{{28}}}}}|}}{{#if:{{{29|}}}|, {{Person|{{{29}}}}}|}}{{#if:{{{30|}}}|, {{Person|{{{30}}}}}|}}{{#if:{{{31|}}}|, {{Person|{{{31}}}}}|}}{{#if:{{{32|}}}|, {{Person|{{{32}}}}}|}}{{#if:{{{33|}}}|, {{Person|{{{33}}}}}|}}{{#if:{{{34|}}}|, {{Person|{{{34}}}}}|}}{{#if:{{{35|}}}|, {{Person|{{{35}}}}}|}}{{#if:{{{36|}}}|, {{Person|{{{36}}}}}|}}{{#if:{{{37|}}}|, {{Person|{{{37}}}}}|}}{{#if:{{{38|}}}|, {{Person|{{{38}}}}}|}}{{#if:{{{39|}}}|, {{Person|{{{39}}}}}|}}{{#if:{{{40|}}}|, {{Person|{{{40}}}}}|}}</span>|}}
+
<includeonly>{{#if:{{{1|}}}|{{Person|{{{1}}}}}|}}{{#if:{{{2|}}}|, {{Person|{{{2}}}}}|}}{{#if:{{{3|}}}|, {{Person|{{{3}}}}}|}}{{#if:{{{4|}}}|<span class="mw-collapsible mw-collapsed" data-collapsetext="-" data-expandtext="..." style="overflow:auto;">{{Person|{{{4}}}}}{{#if:{{{5|}}}|, {{Person|{{{5}}}}}|}}{{#if:{{{6|}}}|, {{Person|{{{6}}}}}|}}{{#if:{{{7|}}}|, {{Person|{{{7}}}}}|}}{{#if:{{{8|}}}|, {{Person|{{{8}}}}}|}}{{#if:{{{9|}}}|, {{Person|{{{9}}}}}|}}{{#if:{{{10|}}}|, {{Person|{{{10}}}}}|}}{{#if:{{{11|}}}|, {{Person|{{{11}}}}}|}}{{#if:{{{12|}}}|, {{Person|{{{12}}}}}|}}{{#if:{{{13|}}}|, {{Person|{{{13}}}}}|}}{{#if:{{{14|}}}|, {{Person|{{{14}}}}}|}}{{#if:{{{15|}}}|, {{Person|{{{15}}}}}|}}{{#if:{{{16|}}}|, {{Person|{{{16}}}}}|}}{{#if:{{{17|}}}|, {{Person|{{{17}}}}}|}}{{#if:{{{18|}}}|, {{Person|{{{18}}}}}|}}{{#if:{{{19|}}}|, {{Person|{{{19}}}}}|}}{{#if:{{{20|}}}|, {{Person|{{{20}}}}}|}}{{#if:{{{21|}}}|, {{Person|{{{21}}}}}|}}{{#if:{{{22|}}}|, {{Person|{{{22}}}}}|}}{{#if:{{{23|}}}|, {{Person|{{{23}}}}}|}}{{#if:{{{24|}}}|, {{Person|{{{24}}}}}|}}{{#if:{{{25|}}}|, {{Person|{{{25}}}}}|}}{{#if:{{{26|}}}|, {{Person|{{{26}}}}}|}}{{#if:{{{27|}}}|, {{Person|{{{27}}}}}|}}{{#if:{{{28|}}}|, {{Person|{{{28}}}}}|}}{{#if:{{{29|}}}|, {{Person|{{{29}}}}}|}}{{#if:{{{30|}}}|, {{Person|{{{30}}}}}|}}{{#if:{{{31|}}}|, {{Person|{{{31}}}}}|}}{{#if:{{{32|}}}|, {{Person|{{{32}}}}}|}}{{#if:{{{33|}}}|, {{Person|{{{33}}}}}|}}{{#if:{{{34|}}}|, {{Person|{{{34}}}}}|}}{{#if:{{{35|}}}|, {{Person|{{{35}}}}}|}}{{#if:{{{36|}}}|, {{Person|{{{36}}}}}|}}{{#if:{{{37|}}}|, {{Person|{{{37}}}}}|}}{{#if:{{{38|}}}|, {{Person|{{{38}}}}}|}}{{#if:{{{39|}}}|, {{Person|{{{39}}}}}|}}{{#if:{{{40|}}}|, {{Person|{{{40}}}}}|}}</span>|}}</includeonly><noinclude>
 +
== Usage ==
 +
Specify a list of people as per the [[Template:Person|person template]]. If the list exceeds three people, only the first three are shown, with an ellipsis to expand the complete list.
 +
 
 +
== Examples ==
 +
<pre>{{PersonList|Rasband|Rueden|Dietzc|marktsuchida|Jane Doe}}</pre>
 +
{{PersonList|Rasband|Rueden|Dietzc|marktsuchida|Jane Doe}}
 +
 
 +
<pre>{{PersonList|Pietzch|Saalfeld|StephanPreibisch}}</pre>
 +
{{PersonList|Pietzch|Saalfeld|StephanPreibisch}}
 +
</noinclude>

Revision as of 10:22, 24 April 2018

Usage

Specify a list of people as per the person template. If the list exceeds three people, only the first three are shown, with an ellipsis to expand the complete list.

Examples

{{PersonList|Rasband|Rueden|Dietzc|marktsuchida|Jane Doe}}

Wayne Rasband, Curtis Rueden, Christian Dietz, Mark Tsuchida, Jane Doe

{{PersonList|Pietzch|Saalfeld|StephanPreibisch}}

Pietzch, Stephan Saalfeld, Stephan Preibisch