Difference between revisions of "Template:ShowTargets"

From Istaria Lexica

 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>==Target mobs==
+
<includeonly>{{#arraydefine:targets|{{#show:{{FULLPAGENAME}}|?Target|+order=n-asc|valuesep=$?|limit=99999}}|$?}}
{{#show: {{PAGENAME}}|?Target|default=0|format=count}}<div style="column-count: {{#if:{{#expr:{{#show: {{PAGENAME}}|?Target|default=0|format=count}}>20}}==1|3|{{#if:{{#expr:{{#show: {{PAGENAME}}|?Target|default=0|format=count}}>=10}}==1|2|1}}">{{#show: {{PAGENAME}}|?Target|default=No targets found.}}</div>
+
{{#ifexpr:{{#arraysize:targets}} > 0|<nowiki/>
</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Templates]]</noinclude>
+
==Target mobs==
 +
<div style="display:inline-block; {{ColumnCounter|{{#arraysize:targets}}}}">{{#arrayprint:targets|<br />}}</div>}}</includeonly><noinclude>{{Documentation}}[[Category:List Templates]][[Category:Semantic Mediawiki Templates]]</noinclude>

Latest revision as of 19:24, 21 October 2022

Template documentation (for the template shown above, sometimes hidden or invisible)

Description[edit]

Used to show target creatures in quest details. To add mobs to the list, use Template:AddTarget.

Example[edit]

{{ShowTargets}}
Visit Template:ShowTargets/doc to edit this text. (How to: document correctly)