Difference between revisions of "Template:Category properties"
From ZooTerms (Dictionary of Invertebrate Zoology)
(Created page with "<includeonly><!-- -->{{#switch: {{LC: {{{show info|}}}}} |taxinfo|taxoninfo|taxon-info|taxon info={{Taxinfo|{{PAGENAME}}|Logos={{Trim|1={{{show logos|}}} }} }} |icon i...") |
m (paramters changed) |
||
Line 25: | Line 25: | ||
-->{{#if: {{{parent category|}}}|[[Category:{{{parent category|}}}]]}}<!-- | -->{{#if: {{{parent category|}}}|[[Category:{{{parent category|}}}]]}}<!-- | ||
− | -->{{#if: {{{has | + | -->{{#if: {{{has filters|}}}|{{#arraymap: {{{has filters|}}}|,|§|[[Has filter::Filter:§| ]]|}} }}<!-- |
+ | -->{{#if: {{{has default form|}}}|[[Has default form::{{{has default form|}}}| ]] }}<!-- | ||
− | -->{{#if: {{{ | + | -->{{#if: {{{show form|}}}<!-- |
− | -->| | + | -->|<!-- |
− | -->{{# | + | -->{{#ifexist: Form:{{{show form|}}}<!-- |
− | + | then-->|<div style="text-align:center;padding-bottom:1ex;padding-top:1ex;">{{#if: {{{show form autocompletion|}}}<!-- | |
− | + | then-->|<!---->{{#forminput: form={{{show form|}}}|size=50|button text=Create/Edit {{{show form|}}} |autocomplete on category={{PAGENAME}} }}<!-- | |
− | + | else-->|<!---->{{#forminput: form={{{show form|}}}|size=50|button text=Create/Edit {{{show form|}}}}}<!-- | |
− | + | -->}}</div><!--switch | |
− | + | else-->|<span class="error">Form “{{{show form|}}}” does not exist, [[Special:CreateForm/{{{show form|}}}|create form {{{show form|}}}]] first.</span><!-- | |
-->}}<!--if | -->}}<!--if | ||
− | |||
-->{{#switch: {{LC:{{{show index links|}}}}}|1|yes=<nowiki></nowiki> | -->{{#switch: {{LC:{{{show index links|}}}}}|1|yes=<nowiki></nowiki> | ||
Line 43: | Line 43: | ||
--></includeonly><noinclude><!-- | --></includeonly><noinclude><!-- | ||
− | + | Documentation here | |
-->{{Documentation}}<!-- | -->{{Documentation}}<!-- | ||
--></noinclude> | --></noinclude> |
Revision as of 13:23, 16 September 2013
[edit] [ ]
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: