Template:Cms-catlist

From Wikiversity

Jump to: navigation, search
Similar templates at English sister projects [edit]
wpd Wikipedia Cms-catlist
cms Commons Cms-catlist
wbk Wikibooks Cms-catlist
wsp Wikispecies Cms-catlist
wvy Wikiversity Cms-catlist
Note- Hidden content above... this template generates an error message when given no parameters.
In use, it acts as a front end or filter template providing boilerplate definitions and passing through received parameters to {{catlst}}.

Version-at-a-glance:

Ver- 1a 
source: Wikipedia -- (m) Version-at-a-glance, usage formatting tweaks, in general, clean up usage.
(iterative with V-1_): (20:25, 19 August 2008 (UTC) Ver: 1_
000000Wikipedia Belated switch to Calling {{catlst}} instead of {{Catlist}} [Switched with each other last month] to restore the Comma-separated values (CSV) formatting.) earlier. // FrankB 21:33, 19 August 2008 (UTC)
Purpose
  • Forms an expandable list of comma separated links to category pages, which may also be used to access interwiki and/or interlingual interwiki sister projects category namespaces.
  1. {{catlst}} is the working template which builds the Comma-separated value formated links...
       an output string which is comma delimited. (Templates which are bullet delimited use the {{catlist}} base template instead.)
  2. This template {Cms-catlist} is a front end, or filter module which does most of the typing for you for the working (and very generalized template). This filter refines and eases your effort to simple cut and paste, and thus allows you to focus on names and keeping category relationships straight instead of formatting syntax and trifles.

The defaults provided (listed below with override parameters) and your list of categories are sent to {{catlist}}, which are co-defined in conjunction with parameters you can use to override said defaults like {pre, post, end, and label}, all of which affect formatting, or sister, which can be used to reach even another language's wiki-pages or another 'in English' sister project:

Option parameters for template:Cms-catlist:

{{catlst
|PRE={{{pre|''}}}
|POST={{{post|<!--
 -->{{#if:{{{nowrap|}}}{{{NW|}}}<!--
+++    +++ -->|'' <!--
+++    +++ -->|{{#if:{{{label|}}}||<br />''}}<!--
 -->}}<!--  + + +
+++    +++ -->}}}
|END={{{end|<br /><br />}}}
|SISTER={{{sister|{{CMS}}}}}
|CALLEDBY=Cms-catlist
|LABEL={{{label|Commons same level categories:}}}  |

So you can define at need:

|000pre = 000formating command, acts before all other output, including the title Label
|00post = 000formating commnad, acts after the title, and before any list element
|000end = 000formating (termination) command, acts at the exit of the string.
|0label = 000to override the default message. Note the one given means the peer level categories.
|sister = 000parameter defaults to access the commons categories... it can be defined to any sister project and language, as inherited from {{catlst}}— though normally one would copy this sort of utility template, and create one linking another site as a general tool.

For further information, see
W:template:catlst/doc


Version at a glance for Wikiproject Template Sharing [ Template:Cms-catlist ]
datestamp and programmer Version Origin Change Description

FrankB 20:25, 19 August 2008 (UTC) Ver: 1_  Wikipedia a) (m) Version-at-a-glance, usage formatting tweaks, in general, clean up usage.
_ (m) Belated switch to Calling {{catlst}} instead of {{Catlist}} [Switched with each other last month] to restore the Comma separated values ( CSV) formatting.

FrankB 17:31, 23 May 2007 (UTC)
(same edit)
Ver: 0c
Ver: 0b
Wikipedia V:c) Add option params 'sister' and 'label' to allow override of defaults; + spell fix and
V:b) Replace redirect with new adaptation, i.e. 'Wpd-catlist' morphed for proper sister creating planned 'Cms-catlist' interwiki capable Comma separated version.
FrankB 04:29, 22 May 2007 (UTC) Ver: 0a Wikipedia (As Wpd-catlist) ... Complete version table marriage with data, and put away Wpd-catlist version. Export that.
FrankB 17:03, 16 May 2007 (UTC) Ver: _a Commons (As Wpd-catlist) ... Promoted redirect from (unsaved 'horrible name' <g>) Cms-siblings... forgot own name scheme!
Adapted to call Cms-catlist, which is comma delmited reconstruction of earlier 'catlst' template ca. 3 Mar 2007)
FrankB 01:56, 3 March 2007
FrankB 01:55, 3 March 2007
Ver: R Wikipedia ('m') ++{TSP loose ends}--Use this for SAME LEVEL links later???
1) Redirect created from original name: (moved Template:Cms-catlist to Template:Cms-catlist-up: Better name)-- better discription of purpose... uplinks)
Personal tools