Difference between revisions of "Template:AgentList"

From Wikispooks
Jump to navigation Jump to search
(Handy for lists)
 
(Clarify summary)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>A sub-template of [[template:DocProv]] used to display a list of [[Template:Agent]]<br/>
+
<noinclude>A sub-template of [[template:DocProv]] used to display a list of up to 10 [[Template:Agent]] items which share a common '''Predicate'''.<br/>
<nowiki>{{AgentList|Predicate|N1|D1|N2|D2|N3|D3|N4|D4|N5|D5|N6|D6|N7|D7}}</nowiki>
+
Agents must have a '''Name''', but '''Detail''' is optional.<br/>
</noinclude><includeonly>{{Agent|Predicate|{{{N1|}}}|{{{D1|}}}}}{{Agent|Predicate|{{{N3|}}}|{{{D3|}}}|, }}{{Agent|Predicate|{{{N4|}}}|{{{D4|}}}|, }}{{Agent|Predicate|{{{N5|}}}|{{{D5|}}}|, }}{{Agent|Predicate|{{{N6|}}}|{{{D6|}}}|, }}{{Agent|Predicate|{{{N7|}}}|{{{D7|}}}|, }}{{Agent|Predicate|{{{N2|}}}|{{{D2|}}}| &amp;&nbsp;}}</includeonly>
+
<br/>
 +
Usage:<br/>
 +
:{{t|<nowiki>{{AgentList|Predicate|Name1|Detail1|Name2|Detail2|...}}</nowiki>}}
 +
</noinclude><includeonly>{{List|{{Agent|{{{1}}}|{{{2|}}}|{{{3|}}}}}|{{Agent|{{{1}}}|{{{4|}}}|{{{5|}}}}}|{{Agent|{{{1}}}|{{{6|}}}|{{{7|}}}}}|{{Agent|{{{1}}}|{{{8|}}}|{{{9|}}}}}|{{Agent|{{{1}}}|{{{10|}}}|{{{11|}}}}}|{{Agent|{{{1}}}|{{{12|}}}|{{{13|}}}}}|{{Agent|{{{1}}}|{{{14|}}}|{{{15|}}}}}|{{Agent|{{{1}}}|{{{16|}}}|{{{17|}}}}}|{{Agent|{{{1}}}|{{{18|}}}|{{{19|}}}}}|{{Agent|{{1}}}|{{{20|}}}|{{{21|}}}}}}}</includeonly>

Latest revision as of 03:45, 2 December 2013

A sub-template of template:DocProv used to display a list of up to 10 Template:Agent items which share a common Predicate.
Agents must have a Name, but Detail is optional.

Usage:

{{AgentList|Predicate|Name1|Detail1|Name2|Detail2|...}}