Template:Commoncats/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Commoncats (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.
Note page has hidden operative code when viewed directly.
Version at a glance for M:TSP [ Template:Ltsmta ]
datestamp and programmer Version Origin Change Description

FrankB 04:03, 21 May 2007 (UTC) Ver:2d Commons (m) Refactor /doc page categories up into and consolidate noinclude block, fix the nesting of that, and the edit links. Neither the proper edit link, nor the usage was showing in the template page.

3)FrankB 03:51, 21 May 2007 (UTC)


2) FrankB 01:42, 21 May 2007 (UTC)
1) 01:06, 21 May 2007 FrankB

Ver: 2c


Ver: 2b
Ver: 2a
Commons



3/b)Trim out old documentation and call examples to WikiPcatXX/Wikipedia1A series, and rewrite as general usage for both sister projects.
Notable additions to text: The command metacharacters to default or skip an output
2) Install documentation history in this new table -- now needs a documentation rewrite
1) m (Template:WikiPcatUsage moved to Template:Commoncats/doc: New Common template name,
this page will become common 'Commoncats/doc' page per M:DPP, [including for wikipedia version].)

01:05, 21 May 2007 FrankB Ver: 2_ Commons (4,551 bytes) (Advance prepatory to rewrite and move to Commoncats/doc as new universal usage; subst {WPTSP version})

05:53, 14 May 2007 FrankB Ver: 1d Commons m (3,577 bytes) (misc minorish fixups)
05:52, 14 May 2007 FrankB Ver: 1c Commons m (3,574 bytes) ({subst:template doc page pattern})
05:51, 14 May 2007 FrankB Ver: 1b Commons (3,232 bytes) (Doc: Template:IWCG showcategory dependency)
04:47, 14 May 2007 FrankB Ver: 1a Commons m (3,205 bytes) (noinclude fence)
04:46, 14 May 2007 FrankB Ver: 1_ Commons (3,180 bytes) (revise to doc current WIP transition)

23:44, 1 March 2007 FrankB Ver: b Commons (Add (expected behavior) and usage from Wikipediacat1A (redirected) aka WikiPcat1M)
22:41, 14 July 2006 FrankB Ver: a Commons m (Comment out unformated help)
17:32, 27 June 2006 FrankB Ver:ORG Commons (Genesis - create common usage notes as did on wikipedia for CommonscatXX templates)


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}}.