Template:Interwikicat-grp

From Wikiversity

Jump to: navigation, search

 

Corresponding categories at
English-language sister projects

Cms Commons Commons-logo.svg
Wbk Wikibooks Wikibooks-logo.svg
Sew Simple en.wp Wikipedia-logo-simple.png
Wpd Wikipedia Wikipedia-logo.png
Wsp Wikispecies Wikispecies-logo.svg
Similar templates at English sister projects [edit]
Wikimedia-logo.svg mta Meta-wiki interwikitmp-grp
Wikipedia-logo.png wpd Wikipedia Interwikicat-grp
Commons-logo.svg cms Commons Interwikicat-grp
Wikibooks-logo.svg wbk Wikibooks Interwikicat-grp
Wikispecies-logo.svg wsp Wikispecies Interwikicat-grp
Wikiversity-logo.svg wvy Wikiversity Interwikicat-grp
Version-at-a-glance

Ver: F2,

temp tests
  • 1 [[:simple:Category:Germany]]; simple:Category:Germany; works fine as inline form
  • 2 [[{{#ifeq:{{SITENAME}}|Wikipedia|{{WPD}}|}}simple:Category:Germany]] -- -- forms language interwiki on en.wp, wikibooks, and commons etc.
  • 3 w:simple:Category:Germany -- works fine as inline form everywhere
  • 4 simple:Category:Germany -- forms language interwiki on en.wp, otherwise forms a good link on commons +wikibooks etc. (which become same as case 2 locally... ?Add ":" prefix in WPD?
  • [1]
  • |w:|
  • |Template:SEW (edit talk links history),

 |

usage
  1. Three letter mnemonics of the sister projects are used to change behavior (e.g. "wdy" means wiki-Dictionary or Wiktionary, "mta" means Meta-wiki, "mdw" Mediawiki, "wbk" wikibooks, "wqt" Wikiquote, "wnw" wikinews, etcetera.

    1. All upper case mnemonics toggle the display for that sister project. So "MDW" will cause a link line to Mediawiki, though that sister's category scheme is usually skipped. Conversely, Projects like en.wikipedia which have analogs of most categories can be toggle from it's default behavior as "Display on" to "Off"
    2. The template assumes the current {{PAGENAME}} is also the category to link to on the other sister. However,

    3. All lower case mnemonics will override that, and connect to a category name you define with 'xyz=Sister category name'

  2. For situations where the local category is the oddly named one, {{{1}}} will provide the more common category name and the specific sistername (e.g. cms=xxxfoo or wpd=Wikipedia template namespace) should be expressed respectively.

    • The local category name is in all cases NOT shown or link (it's skipped by testing the 'sitename magic word'), so defining the local mnemonic will have no side effect.

    • Defining it in any case does no harm, and can be an aid to updating all the sisters sharing the category type, so the same form of the template can be used with simple cut and paste edits, in succession.

  • Defining the ALL parameter ("|All=something, anything|..." will turn on All the possible links—this can be used to test cross-sister for an equivalent category name (or category type or purpose, with more navigation) on the other sisters.
    • Defining ALL={{PAGENAME}} is the most efficacious and efficient of using this feature to poll for similar category names sister to sister.


Technical note: This template depends on mnemonically named subtemplates for proper logic and link formation. In quasi-alphabetical order (by matching sister project nicknames) these are:

{{CMS}} / {{MDW}} / {{MTA}} / {{SIM}}‡ / {{WBK}} / {{WDY}} / {{WJR}}‡ / {{WQT}} / {{WNW}} / {{WPD}} / {{WSR}} / {{WSP}} / {{WVY}}

Corresponding to the Wikimedia Foundation projects:

The commons, Mediawiki, Meta, Simple, Wikibooks, Wiktionary, Wikijunior, Wikiquote, Wikinews, Wikipedia, Wikisource, Wikispecies, and Wikiversity.

‡ - means not currently implemented

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

Ver: F2
Ver: F1
Wikiversity (sub 2) inserted needed pipe in Meta's display logic, annoted subtemplates as Tech note, format changes, and stubbed in simple English wikipedia.
(sub 1)Continue troubleshooting fixes from July: Missing pipe and an extra pipe in case Mta, undesired linefeed in wikiquote line link construction. (With delay, and a lost edit)
To: FrankB 07:48, 16 August 2008 (UTC)
from: FrankB 21:14, 15 August 2008 (UTC)

Ver: F Wikiversity
Restore auto-links using Mnemonics template calls. Someone had stripped out:
A) breaking portability B) Breaking ability to redlink detect and display locally and
also fixed some adverse behaviour (ALL modes). Striped out logic using {{{2}}} and modified link generation to take {{{ALL}}} to form suppressed links, however temporarily it's expressed. This was noticed when some sistersites were suppressed locally, and ALL was defined.
FrankB 16:12, 9 July 2008 (UTC)

Ver: E.d4 Wikiversity5 d4) Had to switch to Image:Wikinews-logo-51px.png Crossing fingers.
d3.) Change all image dimensions to "15x15px" from "15px", as some (Wikinews logo) blowing up when Checking using 'ALL=1' mode.
d2.) noinclude.../noinclude ('nowiki boxed') changed to &l t;noinclude>...</noinclude&g t; (as still a problem-something weird happening)
d1.) Try to Fix <noinclude>...</noinclude> nesting issue...was displaying things it shouldn't, like this table.
d.) Also trimmed out inline commented history, and truncated this table
d-d4.) Iterative edits, all
d4.) FrankB 07:57, 8 July 2008 (UTC)
d3.) FrankB 07:24, 8 July 2008 (UTC)

d1,2.) troubleshooting
d.) FrankB 05:25, 8 July 2008 (UTC)

Ver: E.c Commons
Commons
Commons
c.) Add ifexist test for sites not liking /doc pages
b.) 03:21, 8 July 2008 fx bug reported in WP version. This re-exported there too.
a.)Updated logic for ability to turn off unwanted links
c.) FrankB 03:45, 8 July 2008 (UTC)
b) FrankB 03:21, 8 July 2008
a) a few days earlier.

Ver: Da,b Wikipedia a) fix typo + Mediawiki link abbrev and {subst:WPTSP version}) b) Import Wikipedia history as comment FrankB 07:03, 10 May 2007 (UTC)

Ver: Ca-C? Meta Many fiddles and tweaks by User Patrick of WP and Meta, I made a few of my own, inasmuch as that was a new developing version. FrankB 07:03, 10 May 2007 (UTC)

Ver: Ba,d Meta a) Various improvements (4) by self and others 18-20 Feb 2007
b) (Iterim--pending new Meta version, --{{cms} and {{wsp} ++{{CMS} and {{WSP})

b) FrankB 19:09, 6 March 2007 (UTC)
This template documentation is transcluded from Template:Interwikicat-grp/doc [edit]
Similar templates at English sister projects [edit]
Wikipedia-logo.png wpd Wikipedia Interwikicat-grp
Commons-logo.svg cms Commons Interwikicat-grp
Wikibooks-logo.svg wbk Wikibooks Interwikicat-grp
Wikiquote-logo.svg wqt Wikiquote [[q:Template:|]]
Wikisource-logo.svg wsr Wikisource [[s:Template:|]]
Wikinews-logo.svg wnw Wikinews Interwikicat-grp
Wikispecies-logo.svg wsp Wikispecies Interwikicat-grp
Wikiversity-logo.svg wvy Wikiversity Interwikicat-grp

The template interwikicat-grp uses the same syntax as {{interwikitmp-grp}} which allows minimal editting to use. Each sister project has been assigned a three letter menemonic, which will double as an override parameter when defined thusly: "wsr=glops". This would say that the category "glops" was the same as the current page on which ever the current sister project the template was assigned, and would connect to that by forming links.

  • By the same token, wsr=| means that the current page has no analog on wikisource, and inhibits such links to be listed.
  • All sister projects can be linked using this template, but some sisters are not listed by default as they do not participate in Wikiproject Template Sharing.
In other languages