Template:Commoncats/doc

The template documentation below is transcluded from Template:Commoncats/doc [ [ edit] ]


 * Note page has hidden operative code when viewed directly.


 * Usage notes for the new Commoncats interwiki templates :(Preliminary, W.I.P.!)

Commoncats is a replacement template and name for the several templates of 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 and  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  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.


 * 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 as one of the characters   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  and either specify the other sister's category name, or let it default. (Whatever creates a good link to the other sister site).


 * The tracking (Work in Progress, or list of tagged pages) categories are now operated by a toggle parameter (IWCG showcategory that operates globally within the sister site. Clearing it's content will cause the categorization of the page to: Category:Wikipedia categories matching with Wikimedia Commons categories Category:Wikipedia categories equalized with Wikimedia Commons categories to be ommitted unless an editor defines IWCG showcategory to a non-whitespace (a value, which when included evaluates as TRUE to wikimarkups' parserfunctions.


 * 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 and  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 for Skipping a category or article link in place of the default.


 * The Command meta characters ( '@', '"', or ' ' ) are used as placeholders in either or both  for explicitly directing a category or article link be made with the default.