Static Wikipedia February 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Web Analytics
Cookie Policy Terms and Conditions Template:Catlst/doc - Wikipedia, the free encyclopedia

Template:Catlst/doc

From Wikipedia, the free encyclopedia

Version at a glance for M:TSP [ Template:Ltsmta ]
Version Origin Change Description datestamp and programmer
Ver: A-1
Wikipedia
Both Iterim (evolving): (b)... change description 'B2'
(a) major change is fix to if-then logic in interwiki's, had bad 'comment' ends. Also started usage fixups in see also section.
(b) ~~ ~~
(a) from:FrankB 04:13, 8 March 2007 (UTC)
Ver: A Wikipedia (b) Initialize interwiki section and clean up and initialize this table and so forth. Page needs a severe copyedit, and better flow. Was writing too late at night!!!
(a) Add 2 pre blocks and header if'd for visibility only when not catlst, these describe option parameters being added to allow same flexibility in front end templates. SubstWPTSP version too ITERIM save.
(b)To: FrankB 01:38, 8 March 2007 (UTC)
(a) From: FrankB 00:09, 8 March 2007 (UTC)
Ver: _ Wikipedia (b) (Writing and stealing stuff... Iterim save- to section edit)<<<===This looks like the edit may still be out in an edit buffer!
(a)(Genesis--Subst interwiki doc page pattern)
<FrankB
(b) 06:44, 2 March 2007 (UTC)
(a) from: 05:03, 2 March 2007 (UTC)
This is the template documentation page for Template:Catlst.

This page is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.


en:Template:Catlst/doc

This page is a combined usage page compliant with doc page pattern for {{catlst}} as well as the several filter and typing-aid templates that act as front-end templates to {{catlst}}, the flexible rear end or working utility template of the following variants:

Message designed for parents and grandparent up-links:

  1. {{Catlist-up}} -- Always a redirect to the local sister project prefixed name in the following. This naming variant is primarily for administrative category pages, where a Commons list of links would not also appear. In subject space pages, generally both the local site and the commons categories are useful.
  2. {{Cms-catlist-up}} -- Always shows categories on Mediawiki Commons
  3. {{Mta-catlist-up}} -- Always shows categories on Meta
  4. {{Wpd-catlist-up}} -- Always shows categories on Wikipedia
  5. {{Wsp-catlist-up}} -- Always shows categories on Wikispecies
  6. {{Wvy-catlist-up}} -- Always shows categories on Wikiversity

Such up-link templates are extremely useful on the head end of categories of any length as they show more of the category structure, give more clues as to where one needs to navigate towards, and overcomes the perennial problem with the default page skin—that categories are all but invisible down on the page bottom, which is especially problematic for any long category, and doubly problematic when editing such a page.



The pre block below only has trouble with interwikitmp-grp when viewing this page directly. The Filter templates for which the usage is intended will not see interwikitmp-grp in the same relative location.

Similar templates at English sister projects [edit]
mta Meta-wiki Catlst/doc
wpd Wikipedia Catlst/doc
cms Commons Catlst/doc
wbk Wikibooks Catlst/doc
wqt Wikiquote Catlst/doc
wsr Wikisource Catlst/doc
wsp Wikispecies Catlst/doc
wvy Wikiversity Catlst/doc
This project under construction ...
Pardon our appearance whist we remodel,
pull the engine, and change the tires.

 

These defaults are sent to {{catlist}}, which are defined in terms of parameters you can override:
|PRE={{{pre|'''}}}
|POST={{{post|{{#if:{{{nowrap|{{{NW|}}}}}}|'' |<br />''}}}}}
|END={{{end|</b>''<br /><br />}}}
|SISTER=w:
|LABEL={{{label|<b>en.Wikipedia parent and upper level categories:'' }}} |

So you can define at need:

|pre=formating command, acts before all other output, including the title Label
|post=formating command, acts after the title, and before any list element
|end= formting (termination) command, acts at the exit of the string.
|label=to override the default message. Note the one given means the parents, 
 and grandparents and possibly, the great grand-parent levels. 

Convention: paste in parent categories from page bottom (assuming default skin). To the right of that, paste in the parents of the leftmost parent category, then the second from left's parents, then the third, until the rightmost parent and it's parents have joined the list. If properly named, most grandparents will be identifiable as to which parent category they belong to, and vice versa.

Contents

[edit] Usage

displays a list of category links as a 'comma separated list'
with a editor selectable label. If no label is given, defaults to 'Categories:' 'list of links...'
  • Up to 40 parameters are permitted: only the first is mandatory.
  • The list is dynamically generated so that a ", and " is always placed between the final two entries.
  • If more than 40 entries are supplied, a message will be displayed pointing out the run-over problem with the occurence of the 41st.
  • The template is interwiki capable: Defining the perameter |SISTER=Commons:| or |SISTER=Wikiquote:| will generate a cross-wiki list of categories on SISTER. In either local mode or cross-wiki, this allows the heads of categories to display parents and grandparents for navigation, within and without, with a custom message.

Example use:
     {{Catlst|LABEL=something sensible| Category Name_1 | optionalCategory Name_2 | optionalCategory Name_nn | ... | optionalCategory Name_40}}

Caution
Bad formatting: no newlines are permitted else the article links will be broken.


[edit] Filter utilities

The several filter utilities call catlst to do the work:

  1. They provide a proper link prefix which enables the utility to output the same result on any sister site and server. This is adaptable to interlingual link formation as well.
  2. The filter templates also provide standard boilerplate text.
1) '{{Cms-catlist}}' is designed to tag the tops of categories with upper level links to parent and grandparent categories located on the Commons.
It's message is: The Commons parent and upper level categories:

A) {{Cms-catlist}} is constructed from catlst by calls of the form:
{{catlst|SISTER={{CMS}}|LABEL=<br>''<b>The Commons parent and upper level categories:</b>'' :|Nature| Geomorphology| Landmarks|...}}
B) Example use is:


The Commons parent and upper level categories:
Nature  · Geomorphology  · Landmarks  · Landscapes  · Places  · Geography  · Landforms  · Geography  · Topics  · Earth sciences  and Social sciences




C) The equivilent catlst call would be:
{{catlst|SISTER=w:|LABEL=<br>''<b>The Commons parent and upper level categories:</b>'' : |Nature | Geomorphology | Landmarks | Landscapes | Places | Geography | Landforms | Geography | Topics | Earth sciences | Social sciences }}

2) {{Wpd-catlist}} is designed to tag the tops of categories with upper level links to parent and grandparent categories located on Wikipedia.
It's message is: en.Wikipedia parent and upper level categories:

A) '{{Wpd-catlist}}' is constructed from catlst by calls of the form:
{{catlst|LABEL=''<b>en.Wikipedia parent and upper level categories:</b>'' : |Nature| Geomorphology| Landmarks|...}}
B) Example use is:
en.Wikipedia parent and upper level categories:
Nature  · Geomorphology  · Landmarks  · Landscapes  · Places  · Geography  · Landforms  · Geography  · Topics  · Earth sciences  and Social sciences



C) The equivilent catlst call would be:
<nowiki>{{catlst |SISTER=w: |LABEL=''<b>en.Wikipedia parent and upper level categories:</b>'' : | Physical geography | Geomorphology | Nature | Topography |{{{5|}}}|{{{6|}}}|{{{7|}}}| ... |{{{40|}}}|{{{41|}}}}} and etc.

[edit] Key Innards

take note in particular the position of the parameters
PRE, LABEL POST and END... The whole is an series of If-Then-Else conditionals, one following on the heels of, or (most all) within, the Else body of the one preceding. Once the logic finds a FALSE condition, it executes the last Else and Exits.
  1. The 'LABEL=' is a title, such as for example: Parent Categories, Key Grand-daughter categories, and the like.
  2. The 'PRE=' is for a print effect command such as coloration, {{indent}}ation, Bolding, or such like <div style="border:#bfb1a3 solid 1px; Margin=0.5em; Padding=1.5em; background:#f2e0ce; ">
  3. The 'POST=' can be used to force a newline and begin an indentation, add or cancel bold or italics, and such.
  4. The 'END=' is to undo whatever either the PRE or POST or both put into effect.

Since passing a whole template into another template containing meta-characters is problematic, this breakage into three sections allows a lot of flexibility.


[edit] Purpose

{{Catlst}} is used for small to large sets of see also information at the end of text headers on category pages to give cross-links to category names locally.

Unlike {{cat see also}}, this list utility takes a Programmable argument, the parameter LABEL which over rides the generic list message, for example: 'LABEL=These are some map categories (two category layers down), might be given to better show a categorization scheme, highlighting the actual categories it it desired to list pages within, rather than the current skeleton category that should only contatain other categories in the categorization scheme.

This format allows the maximum flexibility in crafting messages and providing links on a theme which is satisfied by the list.

This is particularly valuable at major nexus points, where several categorization schemes intersect such as a major nation-state, or city.

A couple of see also lists can display category names by the scheme's respective theme, down several levels if necessary, giving the browsing reader a much broader and deeper look at the options and paths available, or the overall structure and direction the information they seek may lay.

This also aids in editor work adding or adjusting categories, as one may not know a scheme exists grouping vertical or cross links of related names looking at one little slice on that nexus. For the working editor, or the browsing reader having a peek into sub-categories, and seeing a group of organized lists can aid greatly in deciding where the appropriate direction to hunt, or level of categorisation may be.

Placing such groupings where category schemes fork with respect to en.wikipedia vs. the Commons, or to galleries, or to higher level categories might be excellent alternatives that should be considered in many circumstances. Such should be devised with the student in mind as aids to understanding the direction the normal category tree may take the user.

  • Program and format by perameter, {{catlst|...}}
  • 'Clean' Links are presented an auto-pipetricked (nice) form of [[:Category:Category Name|Category Name]].
  • If non-English wikipedians create a hard redirect in 'Category:Name In English' to the equivalent in their language, the links should also work interwiki across languages.

[edit] Other list templates

  • {{see also}} — Note: The commons template {{see also}} is interlingual and has nothing to do with lists of pages in namespaces per se.
    {{see also}} primarily used to forms links to main (article/gallery/book) namespace in Comma separated list format. It has some capability of displaying categories, but needs both the colon as a prefix and namespace to form the string ':Category:', and requires painstakingly careful input devoid of extra spaces. Such uses cause an occasional technical problem with parsing within the template due to the colon prefix needed, so cat see also below was developed to eliminate those problems and save typing as well.
  • {{see Also}} -- [Commons version] Same template, interwiki Name case alternative when prior use / naming collisions have occured on some sister projects. Other sister projects should implement as a redirect.
  • {{see also commons}} — interwiki version of the see also template to category namespace in en.wikipedia giving links of the form: [[commons:category:Name|Name]].
  • {{see also Wikipedia}} — interwiki version of the see also template to Wikipedia article space.
  • {{cat see also}} — Smaller grand-parent to 'catlst'. Similar to the 'see also' templates to main space but with the prefix meaning see also these Categories. Like 'catlst', it has been updated to allow links internally, or across SISTER projects. Builds a shorter comma delimited list of categories of up to fifteen names cross-linking to categories, up, down, or across as needed. Unlike 'catlst' it always wraps to a newline, indents, and does not allow the flexible formating parameters PRE, POST, LABEL, or END. It has the standard header message "See also categories:" (or category).
  • The two complimentary filter templates using {{cat see also}} as an output stage are:
  • {{catlst commons}} meaning See also on Mediawiki Commons the Categories: ...
Each are a 'front end' filter template (or typing-aid) using the {{catlst}} template as an output stage. Each uses a fixed 'SISTER=' parameter.
  • {{template list}} — essentially the above template with the namespace category replaced by the namespace template.


In other languages
Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2006 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu