Difference between revisions of "Template:Category properties"

From ZooTerms (Dictionary of Invertebrate Zoology)
Jump to: navigation, search
m (paramters changed)
m (fix {{)
Line 14: Line 14:
 
     |9={{Trim|1={{#explode: {{{show logos|}}}|,|8}} }}
 
     |9={{Trim|1={{#explode: {{{show logos|}}}|,|8}} }}
 
     |10={{Trim|1={{#explode: {{{show logos|}}}|,|9}} }}
 
     |10={{Trim|1={{#explode: {{{show logos|}}}|,|9}} }}
     |size={{#ifexpr: {{#len:{{#arraymap:{{{show logos|}}}|,|$|X|}}}} < 2|35px<!-- 1 Logo -->|24px<!-- multiple Logos -->}}
+
     |size={{#ifexpr: {{#len:{{#arraymap:{{{show logos|}}}|,|$|X|}} }} < 2|35px<!-- 1 Logo -->|24px<!-- multiple Logos -->}}
 
     }}
 
     }}
 
   |#default={{Category info|{{{parent category|{{PAGENAME}} }}}}}
 
   |#default={{Category info|{{{parent category|{{PAGENAME}} }}}}}
Line 37: Line 37:
 
   else-->|<span class="error">Form “{{{show form|}}}” does not exist, [[Special:CreateForm/{{{show form|}}}|create form {{{show form|}}}]] first.</span><!--
 
   else-->|<span class="error">Form “{{{show form|}}}” does not exist, [[Special:CreateForm/{{{show form|}}}|create form {{{show form|}}}]] first.</span><!--
 
     -->}}<!--if
 
     -->}}<!--if
 +
  -->}}<!--if
  
 
-->{{#switch: {{LC:{{{show index links|}}}}}|1|yes=<nowiki></nowiki>
 
-->{{#switch: {{LC:{{{show index links|}}}}}|1|yes=<nowiki></nowiki>

Revision as of 13:52, 16 September 2013

[edit] [purge] Template-info.svg Template documentation

Usage

Parameters:

description 
(optional) a description of the current category
show info 
(optional) values may be “taxon info” or “icon info”
show logos 
(optional, comma separated list) specified icon/logo for show info
parent category 
(optional) a parent category
has filters 
(optional, comma separated list) a set of filters
has default form 
(optional) specify a form name to be used in this category
show form 
(optional) show specified form (for names see also category: Forms)
show form autocompletion
(optional) valus may be “yes” add autocompletion
show index links 
(optional) show a link index of letters (A B C D etc.)

Technical dependencies

Icon infos: