Template:Commoncats

From Wikipedia, the free encyclopedia

English Wikipedia article:
Commoncats


Commons related category:
Commoncats


Version at a glance for M:TSP W: & Commons: [ Template: Commoncats]
Version Origin Change Description datestamp and programmer

Ver:Ac Commons Import to Wikipedia along with /doc page. ++fix en.wp logo and re-export to commons. FrankB 05:18, 21 May 2007 (UTC)
Ver:Ab Commons Move categories, interwikitmpgrp declarations to Commonscat/doc and enable that link to do it's work. FrankB 04:06, 21 May 2007 (UTC)

Ver:Aa Commons a) Export category and declaration links and install newly moved {{Commoncats/doc}}, to provide those declarations. FrankB 04:06, 21 May 2007 (UTC)
Ver: A Commons move to Commoncats -- descendent of the various commons:WikiPcatXX family and w:CommonscatXX templates, consolidated into a single general template in April-May 2007;
2) Originals precursors date back to June 2006.
~~~~
from: 19:55, 5 March 2007 (UTC)


The template documentation below is transcluded from Template:Commoncats/doc [edit]
Similar templates at English sister projects [edit]
mta Meta-wiki Commoncats
wpd Wikipedia Commonscat1A
cms Commons Wikipediacat1A
Usage notes for the new Commoncats interwiki templates 
(Preliminary, W.I.P.!)

Template:Commoncats (edit talk links history) is a replacement template and name for the several templates of the Commons Template series 'WikiPcatXX', 'Wikipediacat', and Wikipediacat1A as well as 'CommonscatXX' templates on en.wikipedia.

This is common usage notes for the new consolidated template used for interwiki connecting the category schemes of the two sister projects and providing a link to the main article page which bears on the topic of the category.

This template family is undergoing a transition from 4-6 templates per site (WikiPcatxx and on en.wikipedia, Commonscatxx) with differing behaviours to a single template common to BOTH sister projects.

  • The most likely immediate impact (before we clear such ourselves) will be a need to reverse the article and category fields given as parameters {{{1}}} and {{{2}}} while one of the older template names is a redirect to Commoncats, the new common name of the single template.

    The new default order is article name first, followed by any variant category name. Usually, the category names are identical, and so defaulted to the Magic word {{PAGENAME}} so that when the category names match, no second parameter need be specified. (A common occurence).
  • A template which did not connect to articles has been subsumed into the common template. To turn off references to a non-existant (and therefore inappropriate) main article page, correct the call syntax by giving a exclaimation point as {{{1}}}.
  • In some of the older (replaced templates) the first and only parameter was the cross-sister category name. These same templates thus connected only categories, and the new template unless silence by defining parameter {{{1}}} as one of the characters '@', '*', or '!' will display an erroneous (Full url) link to a bad article page. If these is the case, when encountered, the article name may be displaying as the correct category link as an article and defaulting to a bad category name as well. Should an article link prove bad, substitute '!' as {{{1}}} and either specify the other sister's category name, or let it default. (Whatever creates a good link to the other sister site).
  • The new template also provides for capability to link to multiple articles and multiple categories. It will shortly provide a backlink to a commons main page (normally a image gallery or Atlas page)
  • If given explicitly, both {{{1}}} and {{{2}}} overide the default and are used to build a link to the page in question. Article links are to en.wikipedia where additional interwiki links are available to non-English users of the Commons. The category links on Wikipedia are to the Commons, and the converse is true. Both sisters have additional interwiki links to non-English Wikipedia's as well.
  • The Command meta characters ('!', '$', or '#') are used as placeholders in either or both {{Commoncats|{{{1}}}|{{{2}}} }} for
    Skipping a category or article link in place of the default {{PAGENAME}}.
  • The Command meta characters ('@', '"', or ' ') are used as placeholders in either or both {{Commoncats|{{{1}}}|{{{2}}} }} for explicitly directing a category or article link be made with the default {{PAGENAME}}.
Languages