Difference between revisions of "Template:Category properties"

From ZooTerms (Dictionary of Invertebrate Zoology)
Jump to: navigation, search
(Created page with "<includeonly><!-- -->{{#switch: {{LC: {{{show info|}}}}} |taxinfo|taxoninfo|taxon-info|taxon info={{Taxinfo|{{PAGENAME}}|Logos={{Trim|1={{{show logos|}}} }} }} |icon i...")
 
m (fix size → height)
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  -->{{#switch: {{LC: {{{show info|}}}}}
 
  -->{{#switch: {{LC: {{{show info|}}}}}
 
   |taxinfo|taxoninfo|taxon-info|taxon info={{Taxinfo|{{PAGENAME}}|Logos={{Trim|1={{{show logos|}}} }} }}
 
   |taxinfo|taxoninfo|taxon-info|taxon info={{Taxinfo|{{PAGENAME}}|Logos={{Trim|1={{{show logos|}}} }} }}
   |icon info|icon-info={{Icon info|titel={{{title icon info|}}}
+
   |icon info|icon-info={{Icon info|title={{{title icon info|}}}
 
     |1={{Trim|1={{#explode: {{{show logos|}}}|,|0}} }}
 
     |1={{Trim|1={{#explode: {{{show logos|}}}|,|0}} }}
 
     |2={{Trim|1={{#explode: {{{show logos|}}}|,|1}} }}
 
     |2={{Trim|1={{#explode: {{{show logos|}}}|,|1}} }}
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 -->}}
+
     |height={{#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 25: Line 25:
 
   -->{{#if: {{{parent category|}}}|[[Category:{{{parent category|}}}]]}}<!--
 
   -->{{#if: {{{parent category|}}}|[[Category:{{{parent category|}}}]]}}<!--
  
   -->{{#if: {{{has filter|}}}|{{#arraymap: {{{has filter|}}}|,|§|[[Has filter::Filter:§| ]]|}}}}<!--
+
   -->{{#if: {{{has filters|}}}|{{#arraymap: {{{has filters|}}}|,|§|[[Has filter::Filter:§| ]]|}} }}<!--
 +
  -->{{#if: {{{has default form|}}}|[[Has default form::{{{has default form|}}}| ]] }}<!--
  
   -->{{#if: {{{use form|}}}<!--
+
   -->{{#if: {{{show form|}}}<!--
     -->|[[Has default form::{{{use form|}}}| ]]<!--
+
     -->|<!--
     -->{{#if:{{{show form|}}}<!--
+
     -->{{#ifexist: Form:{{{show form|}}}<!--
   dann-->|<div style="text-align:center;padding-bottom:1ex;padding-top:1ex;">{{#switch: {{LC:{{{show form|}}}}}<!--
+
   then-->|<div style="text-align:center;padding-bottom:1ex;padding-top:1ex;">{{#if: {{{show form autocompletion|}}}<!--
      -->|1|yes={{#forminput: form={{{use form|}}}|size=50|button text=Create/Edit {{{use form|}}}}}<!--
+
        then-->|<!---->{{#forminput: form={{{show form|}}}|size=50|button text=Create/Edit {{{show form|}}} |autocomplete on category={{PAGENAME}} }}<!--
      -->|with autocompletion={{#forminput: form={{{use form|}}}|size=50|button text=Create/Edit {{{use form|}}} |autocomplete on category={{PAGENAME}}}}<!--
+
        else-->|<!---->{{#forminput: form={{{show form|}}}|size=50|button text=Create/Edit {{{show form|}}}}}<!--
      -->|#default=Value of “show form={{{show form|}}}” is unknown. Possible values are: “yes” or “with autocompletion”.<!--
+
        -->}}</div><!--switch
      -->}}</div><!--switch
+
  else-->|<span class="error">Form “{{{show form|}}}” does not exist, [[Special:CreateForm/{{{show form|}}}|create form {{{show form|}}}]] first.</span><!--
 
     -->}}<!--if
 
     -->}}<!--if
 
   -->}}<!--if
 
   -->}}<!--if
Line 40: Line 41:
 
-->{{#switch: {{LC:{{{show index links|}}}}}|1|yes=<nowiki></nowiki>
 
-->{{#switch: {{LC:{{{show index links|}}}}}|1|yes=<nowiki></nowiki>
  
{{Subpageindex | linkto ={{PAGENAME}}?pagefrom=}} }}<!--
+
 
 +
{{Subpageindex | linkto ={{FULLPAGENAME}}?pagefrom=}} }}<!--
 
--></includeonly><noinclude><!--
 
--></includeonly><noinclude><!--
  
   Dokumentation hier.
+
   Documentation here
 
-->{{Documentation}}<!--
 
-->{{Documentation}}<!--
 
--></noinclude>
 
--></noinclude>

Latest revision as of 16:04, 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: