Template:Interwikitmp-grp

From Wikipedia, the free encyclopedia

 

Ver: Pass 2FL --
Pedia  Version 2F
meta   2F
commons, 2Fa 
books, 2Fb, 06:44, 28 January 2007 (UTC), 2Fg update, 08:33, 28 January 2007 (UTC) 
species, 2Fc, 07:15, 28 January 2007 (UTC) + 08:05, 28 January 2007 (UTC)
versity, 2Fd, 2Ff 07:43, 28 January 2007 (UTC) http://en.wikiversity.org/w/index.php?title=Species:Template:Interwikitmp-grp&action=edit trying to go to Wikispecies from versity
source, 2Fe, 07:59,  28 January 2007 (UTC) http://en.wikisource.org/w/index.php?title=Species:Template:Interwikitmp-grp&action=edit  trying to go to  Wikispecies from source
quote, 2Fg,  08:22, 28 January 2007 (UTC) http://en.wikiquote.org/w/index.php?title=Species:Template:Interwikitmp-grp&action=edit, trying to go to Wikispecies from source
Versity3, 2Fg, 08:23, 28 January 2007 (UTC) 
WikiPedia2, 2Fg, 08:41, 28 January 2007 (UTC)
Wikimedia Commons, 2F-h, 16:34, 30 January 2007 (UTC)
WikiPedia3         2F-k, 15:42, 31 January 2007 (UTC) 
Latest:
WikiPedia4 2F-L, 07:18, 8 February 2007 (UTC)

  ...stub in parameter version usage, began auto-categorization logic (See line== 'content of W:template:tt0 goes here when tested.'), and other misc. fixups.


Rev: 2F-L: In general: Prep for adding pass 3 auto-categorisation...
   (A) stub in switch parameters usage.
   (B) Assert w:magic word 'lcfirst' for wiktionary namecon compliance when possible. (Note: TL/tl is a likely problem there!)
   (C) extensive use of {i} templates today... Need wikisource to un-depreciate use of Indent. (D) Unplanned edit: Am getting a spurious /includeonly that disappears when call here is turned into an lts call... which pins things down TO HERE or daughter templates.

Rev: 2F-k:

Adds Edit link to array box, Fixed logic sense of ALL param., added Inhib/Override params (All UCASE) to bypass a sister if they don't or do want a template... whichever is opposite case from normal.
(Downside: If they accept or not accept the project, then will have to change all tagging here and re-export... but we're doing that now. It's going to get far harder as time as more goes out.
  • Hmmmm, can a BOT do a list and remove or add OVR=xxx| segments within a line? Seems likely.


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


Contents

[edit] Usage

This template can be used when more than one English language sister projects has a similar template. If the templates have different names on different projects you can use parameters to specify those names:

[edit] Switch and override pagename parameters

  • mta=template name at Meta-wiki
  • wpd=template name at English Wikipedia
  • cms=template name at Commons
  • wbk=template name at English Wikibooks
  • wqt=template name at English Wikiquote
  • wsr=template name at English Wikisource
  • wdy=template name at English Wikitionary
  • wnw=template name at English Wikinews
  • wsp=template name at English Wikispecies
  • wvr=template name at English Wikiversity
  • mdw=template name at Media-wiki
(In some of the discussion below, any one of the above is represented by 'xxx'.)

Passing an empty parameter will cause the item to be omitted from the list. Some sister-projects only have marginal inclusion in, or need for this template sharing. These default to 'off' in the normal display (Wiktionary, Media-wiki, Wikinews currently).

Flip parameters

Those which are off, but do use the template being tagged, may be included in the list by defining an all capital letters version of the above all lower case parameters. (Example: '|WDY=y' will include Wiktionary under the same default template name by the template code: '{{{wdy|{{{2|{{PAGENAME}} }}} }}} }}} , thus typing in a long name when a normally suppressed template auto-link IS desired, is not necessary. Using XXX=1 to turn off a link, such as when a Sister project TfD decides to not allow the template locally, would be redundant with 'xxx=', add complexity, and is subject to confusion. So the Capital letter flip parameters are available only those sister projects which normally suppress a template.

Example:

{{Template:Interwikitmp-grp
|mta=
|wqt=
|wnw=foo
|WDY=on
|MDW=1
|!Goo|{{PAGENAME}}
}}

This produces a box with the Meta and Wikiquote rows ommitted, and the "Template:foo" linked to in the Wikinews row (alternate name of same template), and link to the normal name on Wiktionary and Media-wiki. '!Goo' is the category pipe-trick, {{PAGENAME}} is redundant </nowiki>{{{2}}}</nowiki> argument.

An interesting experiment: See the different uses the templates {{w}}, {{c}}, {{cat}} and {{tl}} are put to on each English sister project. The shorter the name, the more likely a naming collision will occur with a different use of the tool template!

[edit] Other parameters

  1. General Auto-categorization applies pipe-tricked category sorting using '{{{xxx|{{{1|{{PAGENAME}} }}} }}} }}} , which allows the lowercase override name 'xxx', the general sorting name {{{1}}}, or the overall default, the Magic word '{{PAGENAME}} .

  2. V=letter 'D' or numbers: {0, 1, 2,..., 6}} — from Version P3 will provide auto-categorization same as the suffixed versions of 'interwikitmp-grp##' listed in template:interwikitmp-grp/doc. (Not currently in place!) // FrankB 07:19, 8 February 2007 (UTC)

  3. ALL=anything — turns on all links forming elements. Can use to poll sister projects for template presence, or to distribute the template, despite normal non-participation by that sister in the project.

  4. cat=bare name... value supplants for V=3, 4, 5, and V=6 auto-categorization modes. The replacement category is generally a sub-category of Miscellaneous, such as typing-aid templates or uncategorized templates. 'cat=' may be defined false (not uncommon in V=6 calls where template is a category tagging template linking both internally and externally but used on category pages. Example: W:Template:Commonscat1A, Template:Wikipediacat1A, Template:WikiPtmp (or any 'XXXXtmp' templates listed below) and etcetera.)

  5. ALL2= or ALLCATS= anything — is an edit-check mode parameter. It is the same as specifying all variations of 'V=' parameter, and turns on ALL autocategorization. (It should not be used on any page in a permanent save, but is for preview mode testing.)

  6. CATS=[[Category:non-standard category1|pipetrick1]][[[[Category:non-standard category2|pipetrick2]]...[[Category:non-standard categoryNN|pipetrickNN]]
         Used primarily in administrative templates where the category structure has been duplicated locally for compatibility.


    1. Cat1=, Cat2=, Cat3=, ..., Cat5=[[Category:catname|pipe-trick]], for keeping things neat on separate lines... especially useful when using different pipe-tricked forms.

  1. inhib=anything — Inhib suppresses auto-categorization to Category:Interwiki utility templates (Normally lists tools or other Utility templates), in conjuction with parameter V=0, it also asserts Category:Interwiki template-links-tagging templates provided the 'V=0' condition is also a parameter, and always causes auto-categorization to Category:Interwiki templates on all sister projects regardlss of V=#.

    In use, inhib is for templates that are part of one interwiki linking system, or the other (two other tagging systems that tie categories together which came first, albeit unofficially as experimental implementations began in the summer of 2006), and lastly, for the site independent templates which are used to generate uniform messages and documentation for such templates, many of these being formating typing aids (i, i0, i2, i5, and indent) powerful category or template links generating tools (lc, lts), or site independent link templates (w2, w2c, Mw, wd).

  2.  ??? - Stay tuned.

[edit] Individual tags

Templates to use when only some small number of sister projects has a similar template
  1. template:Metatmp
  2. template:commonstmp
  3. template:WikiBookstmp
  4. template:Wikiquote
  5. template:Wikisourcetmp
  6. template:Wiktionarytmp
  7. template:WikiNewstmp
  8. template:WikiSpeciestmp
  9. template:WikiVersitytmp
Interwiki task management templates (for misc. Maintenance)
As of 4 February, the below uses are depreciated--- use '|V=##| syntax matching suffixed names.
Auxilliaries



content of W:template:tt0 goes here when tested.


Template:Interwikitmp-grp/doc (edit talk links history)Template:Interwikitmp-grpNN usage (edit talk links history)

quicklinks

validations
(Temporary availability check for documentation compatibility)
On {{Mw }} /{{W2 }} /{{W2c}} / {{Wb }} /{{Wq }} /{{Ws }} /{{Wd }} /{{Wn }} /{{Wsp }} /{{Wv }} /{{Mdw }} (sister templates)
On {{mta}} /{{wpd}} /{{cms}} / {{wbk}} /{{wqt}} /{{wsp}} /{{wdy}} /{{wnw}} /{{wsp}} /{{wvy}} /{{mdw}} (sister templates)

Key categories
Categories in the system Interwikitmp-grp##'s tagging templates with category
Category:Interwiki template-links-tagging templates (edit talk links history) a
Category:Interwiki utility templates (edit talk links history) b
Category:Interwiki templates on all sisterprojects (edit talk links history) c
Category:Interwiki link templates (edit talk links history) d
Category:Miscellaneous templates (edit talk links history) e
Category:Typing-aid templates (edit talk links history) f
Category:Interwiki utility templates (edit talk links history) g
Category:Interwiki templates varying on other sister projects (edit talk links history) h
Interwiki name difference other sister project i
Category:Uncategorized templates (edit talk links history) j
Category:Navigation templates (edit talk links history) k
Category:Redirect templates (edit talk links history) l

1 Category:Interwiki link templates and Category:Interwiki utility templates -- bridge a gulf

2 Category: Internal link templates and Category:Interwiki utility templates.-- Link/Edit another page internally

3 Category:[ Miscellaneous || Typing-aid || Uncategorized ] templates and Category:Interwiki utility templates

4 Category:Interwiki link templates and Category:Miscellaneous templates -- Combo's of 1 + 3

5 Category: Internal link templates and Category:Miscellaneous templates -- Combo's of 2 + 3

6 Interwiki link templates, Internal link templates and Category:Miscellaneous templates -- Combo's of 1 + 2 + 3

{{IWTG size}}==35 {{IWTG width}}== 250px Template:Interwiki class-sisterproject (edit talk links history)

 

:This Interwikitmp-grp (family of) templates documentation is transcluded from w:Template:Interwikitmp-grp/doc [edit local page].

[edit] General usage

This is usage for the nine+ 'interwiki template linking' and the various (8) interwikitmp-grpX 'auto-categorization' and template tagging and linking utilities.
  1. Each individual sister template ends with the suffix 'tmp' and start with the menemonic name of the sister, sometimes in abbreviated or CamelCase text form. (e.g. WikiPtmp, WikiNews, WikiSpecies are all CamelBack, whilst WikiPtmp is also an abbreviation.
  2. Each of the interwikitmp-grpX templates differ mainly in the categorization they perform and slight differences in usage text they present (interwikitmp-grpD, where 'D' is for documentation).
  3. Each number suffixed version differs in the mix of categories which they autotag for uniform categorization across the English language sister projects. This aids people by having common tools in common places that perform the same common way.
  4. Foreign language adaptations of this system are encouraged, but beyond the scope of this project. Copy the pages, and translate the usage, and you should be in good shape.


[edit] Which Interwikitmp-grp is what

This template documentation is transcluded from Template:Interwikitmp-grps see also [edit].
TABLE I — Iterwikitmp-grp## applications guide

Interwikitmp-grp Page Suffix ##'s Designatinations versus key associated autocategorizations


Template:Interwikitmp-grp (edit talk links history) — Common template that does the display for most of the other templates below, AND the one to use to tag vanilla utilities with when in doubt.

Associated Autocategories:
   Category:Interwiki utility templates (edit talk links history)
.


Template:Interwikitmp-grp0 (edit talk links history) — This template is used to tag all the other templates that make up this interconnection system—those used to tag templates with interwiki scope. These are currently also tagged under Category:Interwiki utility templates pipesorted by '!' (exclaimation point). [depreciated method]
  • note: The various individual template tagging templates Metatmp, commontmp, ..., Wikiversitytmp also autocategorze in this manner.

Associated Autocategory:
   Category:Interwiki template-links-tagging templates.


Template:Interwikitmp-grp1 (edit talk links history) — Use to tag generic and special purpose templates that link externally
      as their primary service function.
Associated Autocategories:
   Category:Interwiki link templates (edit talk links history), Category:Interwiki templates on all sisterprojects (edit talk links history) and Category:Interwiki utility templates. (These templates for example.)


Template:Interwikitmp-grp2 (edit talk links history) — Utility templates which create internal links used for analysis, discussion and tracking other system elements (Categories, Templates, User pages, et. al.) by service function on the local (some are inter-sister) project site. (Lts, TL, Tlx, Cl, Cc, Lcs, CAT, etc.)


Associated Autocategories:
   Category:Internal link templates (edit talk links history) and Category:Interwiki utility templates
.


Template:Interwikitmp-grp3 (edit talk links history) — Utility templates that do other tasks besides linking. Some of these are typing or display aids for use within tables, etc.

Associated Autocategories:
   Category:Miscellaneous templates (edit talk links history) and Category:Interwiki utility templates

Takes a perameter 'cat=alternate name' to override default 'Miscellaneous' with whatever is passed. (normally a sub-category of Miscellaneous. A blank perameter 'cat=|' inhibits that category altogether.)


Template:Interwikitmp-grp4 (edit talk links history) — Combined '-1' and '-3' tagging of Miscellaneous class utility templates that also link externally.
Associated Autocategories:
   Additive by Interwikitmp-grp## suffixes per above key groups.

   Category:Interwiki link templates and Category:Miscellaneous templates
   Takes a perameter 'cat=alternate name' to override default 'Miscellaneous' with whatever is passed. (normally a sub-category of Miscellaneous. A blank perameter 'cat=|' inhibits that category altogether.)


Template:Interwikitmp-grp5 (edit talk links history) — Combined '-2' and '-3' Interwikitmp-grp## suffixes,
for tagging of 'Miscellaneous class' utility templates that also link internally.


Associated Autocategories:
   Additive by Interwikitmp-grp## suffixes per above key groups.

   Category:Internal link templates and Category:Miscellaneous templates
   Takes a perameter 'cat=alternate name' to override default 'Miscellaneous' with whatever is passed. (normally a sub-category of Miscellaneous. A blank perameter 'cat=|' inhibits that category altogether.)

Note: This does not auto-categorize to 'Interwiki templates on all sisterprojects'.

Template:Interwikitmp-grp6 (edit talk links history) — Combined '-1' + '-2' + '-3' Interwikitmp-grp## suffixes, however rare in that possess linking both locally and interwiki; usually various category tagging templates (a series) with the commons, Wikipedia, or Metawiki back-linked articles fit this group.


Associated Autocategories:

Additive by Interwikitmp-grp## suffixes per above key groups.
  • (Such templates have both 'interwiki' and 'internal' (intra-wiki) links and map to both major link's categories.

Category:Interwiki link templates + Interwiki link templates + Category:Miscellaneous templates

  • However, tagging for Category:Miscellaneous templates should be local to enable maximum flexibility of the overall system. Such category tagging templates are NOT Miscellaneous.)

    Note: This does not auto-categorize to 'Interwiki templates on all sisterprojects'.
Interwikitmp-grp7 (provisional—not used)
Associated Autocategories: none, use not allocated.
Interwikitmp-grp8 (provisional—not used)
Associated Autocategories: none, use not allocated.
Interwikitmp-grp9 (provisional—not used)
Associated Autocategories: none, use not allocated.
Interwikitmp-grp10 (provisional—not used)
Associated Autocategories: none, use not allocated.

[edit] Exceptions table (Revised concept)

TABLE II - Exceptions handling... When a name is already used differently in a local sister project
Tag with {{Interwikitmp-grp exception}}— denotes and tags a This name in use conflict Exception— Thus this name is not available on all sister's for the same function as used for something else on another sister project.


:Autocategory: Category:Interwiki name difference other sister project

Procedure:

  1. It should not need said, but check to see how widely a 'deviant template' is used. If its use is slight, it may be easiest to 'cure the deviation' by substiuting another template name on the given sister project.
  2. Tag the generic (or 'common template', the one to be the most widespread as a name on most sister projects before porting it) with Template:Interwikitmp-grp exception (edit talk links history) which compliments the below template and autocategorizes, plus asserts a status message box.
  3. Consider whether the incompatible template makes a good utility for export to other sister projects
         (Some may exist as minor or essentially identical variations of other universal template names. If so, don't alias such. One is enough!)
  4. Other tagging in the 'common template' must be manual inserting the array in {{Interwikitmp-grp}} and changing the appropriate arguments for the chosen aliased name in the sister(s) linking template with the name collision.
  5. Tag with the common category/(ies) extant in {{Interwikitmp-grp}}, or other such case as fits best to the groupings delineated in TABLE I above.
  6. Procede as below on that sister which has the template deviation, and any others with incompatible templates.
On the flip-side:
In general
Use Template:Interwikitmp-grp ineligible (edit talk links history) to tag the local name exceptions.
Both the above exceptions templates take the 'work around' (alias) name for self documentation of the anomaly. That name should be provided the master template copy being aliased on the sister(s) with the name conflict in their normal template set.

Associated Autocategory:

Category:Interwiki templates varying on other sister projects, provided by the correct tagging.
The replacement template 'alias' (providing name-to-function mapping) must be universally available on all sister's, and tagged normally and copied to same with the appropriate Interwikitmp-grp##. If the Sister(s) with a template name conflict have that name as a useful general purpose utility or tool template, that name should also be aliased and distributed.
Examples of name remapping':
  1. e.g Tl-->TL, Cat-->CAT, etc., Using a case-of-name alternative.
  2. e.g. 'S'/'s' --> '{{SP}}', 'W'/'w' ---> '{{w2}}', etc., all examples of Suffix alternatives
  3. e.g. '{{c}}'/'c' --> '{{w2c}}', (the commons), a special case to maintain similar syntax with 'W2' for Wikipedia, and 'Wd' for Wiktionary (Wiki-Dictionary) and 'Wb' for Wikibooks, etc., all part of a family of user friendly utility templates that pipetrick and display nicely, yet allow an edit change of a one or two letter(s) to redirect the mnemonic link name to another sister project.
Any universal name 'alias' should either duplicate the original source template (prefered) or redirect to it on all sister's capable of having both name variations.

test

Interwikitmp-grp Wikipedia