Template:Interwikitmp-grp: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{WPTSP}}&nbsp;<!-----
<noinclude>&nbsp;<!-----
---- Begin block comment to retain old change record until Pass 3 is proven in tests on Wikipedia.
---- Begin block comment to retain old change record until Pass 3 is proven in tests on Wikipedia.
---- '''Ver: Pass 3_''' Meta   
---- '''Ver: Pass 3_''' Meta   
Line 38: Line 38:
* '1'=='E'dit / '2'=='L'inks / '3'=='H'istory / '4'=='SISTER'(prefix) [add colons too!]
* '1'=='E'dit / '2'=='L'inks / '3'=='H'istory / '4'=='SISTER'(prefix) [add colons too!]
* '5'=='PAGENAME override /  T=toggle namespace, undefined--category space, defined Template space.</tt>
* '5'=='PAGENAME override /  T=toggle namespace, undefined--category space, defined Template space.</tt>
* {{lts|IWG links}} -- {{Tlx|IWG links|<nowiki>T=1| | | | </nowiki>}}
* -- {{Tlx|IWG links|<nowiki>T=1| | | | </nowiki>}}
</noinclude><!---
</noinclude><!---
----- ------------------------------------------------------------------
----- ------------------------------------------------------------------
Line 73: Line 73:
{{#if: {{{wpd}}}{{{wp|}}} | <!--- en.Wikipedia ---->
{{#if: {{{wpd}}}{{{wp|}}} | <!--- en.Wikipedia ---->
   <tr>
   <tr>
     <td>[[Image:Wikipedia-logo.png|25x25px]]</td>
     <td> </td>
     <td> wpd </td>
     <td> wpd </td>
     <td>Wikipedia</td>
     <td>Wikipedia</td>
Line 86: Line 86:
{{#if: {{{cms}}}{{{com|}}} | <!--- Mediawiki Commons, aka The Commons --->
{{#if: {{{cms}}}{{{com|}}} | <!--- Mediawiki Commons, aka The Commons --->
   <tr>
   <tr>
     <td>[[Image:Commons-logo.svg|25x25px]]</td>
     <td> </td>
     <td> cms </td>
     <td> cms </td>
     <td>Commons</td>
     <td>Commons</td>
Line 104: Line 104:
{{#if: {{{wbk}}}{{{wb|}}} | <!--- Wikibooks ---->
{{#if: {{{wbk}}}{{{wb|}}} | <!--- Wikibooks ---->
   <tr>
   <tr>
     <td>[[Image:Wikibooks-logo.svg|25x25px]]</td>
     <td>[[Image:Wikibooks-logo.png|25x25px]]</td>
     <td> wbk </td>
     <td> wbk </td>
     <td>Wikibooks</td>
     <td>Wikibooks</td>
Line 121: Line 121:
{{#if: {{{wqt|}}}{{{wq|}}}{{{WQT|}}}{{{ALL|}}} | <!--- Wikiquote ---->
{{#if: {{{wqt|}}}{{{wq|}}}{{{WQT|}}}{{{ALL|}}} | <!--- Wikiquote ---->
   <tr>
   <tr>
     <td>[[Image:Wikiquote-logo.svg|25x25px]]</td>
     <td> </td>
     <td> wqt </td>
     <td> wqt </td>
     <td>Wikiquote</td>
     <td>Wikiquote</td>
Line 134: Line 134:
{{#if: {{{wsr|}}}{{{ws|}}}{{{WSR|}}}{{{ALL|}}} | <!--- Wikisource  ---->
{{#if: {{{wsr|}}}{{{ws|}}}{{{WSR|}}}{{{ALL|}}} | <!--- Wikisource  ---->
   <tr>
   <tr>
     <td>[[Image:Wikisource-logo.svg|25x25px]]</td>
     <td> </td>
     <td> wsr </td>
     <td> wsr </td>
     <td>Wikisource</td>
     <td>Wikisource</td>
Line 178: Line 178:
{{#if: {{{wsp}}}{{{species|}}} |  <!-- Wikispecies --->
{{#if: {{{wsp}}}{{{species|}}} |  <!-- Wikispecies --->
   <tr>
   <tr>
     <td>[[Image:Wikispecies-logo.svg|25x25px]]</td>
     <td> </td>
     <td> wsp </td>
     <td> wsp </td>
     <td>Wikispecies</td>
     <td>Wikispecies</td>
Line 193: Line 193:
{{#if: {{{wvy}}} | <!-- Wikiversity  --->
{{#if: {{{wvy}}} | <!-- Wikiversity  --->
   <tr>
   <tr>
     <td>[[Image:Wikiversity-logo.svg|25x25px]]</td>
     <td> </td>
     <td> wvy </td>
     <td> wvy </td>
     <td>Wikiversity</td>
     <td>Wikiversity</td>
Line 212: Line 212:
     <td> mdw </td>
     <td> mdw </td>
     <td>Mediawiki</td>
     <td>Mediawiki</td>
     <td>[[mw:Template:{{{mdw|{{{mw|{{{2|{{PAGENAME}} }}} }}} }}}|{{{mdw|{{{mw|{{{2|{{PAGENAME}} }}} }}} }}}]]</td>
     <td>mw:Template:{{{mdw|{{{mw|{{{2|{{PAGENAME}} }}} }}} }}}|{{{mdw|{{{mw|{{{2|{{PAGENAME}} }}} }}} }}}]]</td>
   </tr>
   </tr>
}}<!--------------------------------------------------------------------
}}<!--------------------------------------------------------------------
Line 279: Line 279:


===Other parameters===
===Other parameters===
# inhib=''anything'' &mdash; Inhib suppresses auto-categorization to [[:Category:Interwiki utility templates]] (Normally lists tools or other Utility templates).<br/><br />{{I2}}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). {{I2}}
# inhib=''anything'' &mdash; Inhib suppresses auto-categorization to [Category:Interwiki utility templates (Normally lists tools or other Utility templates).<br/><br />{{I2}}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). {{I2}}
# General Auto-categorization applies pipe-tricked category sorting using <code>'<nowiki>{{{xxx|{{{1|{{PAGENAME}} }}} }}} }}}</nowiki> </code>, which allows the lowercase override name 'xxx', the general sorting name {{{1}}}, or the overall default, the [[M:Help:Magic word|Magic word]] <code>'<nowiki>{{PAGENAME}}</nowiki> </code>.{{I2}}
# General Auto-categorization applies pipe-tricked category sorting using <code>'<nowiki>{{{xxx|{{{1|{{PAGENAME}} }}} }}} }}}</nowiki> </code>, which allows the lowercase override name 'xxx', the general sorting name {{{1}}}, or the overall default, the M:Help:Magic word|Magic word <code>'<nowiki>{{PAGENAME}}</nowiki> </code>.{{I2}}
# General parameter '''<code> <nowiki>{{{2}}}</nowiki>is coded to be a generic override for a locally differently named template using '<nowiki>{{{xxx|{{{2|{{PAGENAME}} }}} }}} }}}</nowiki> </code>. {{I5}}Example: Assume Wikitionary uses <!---Subst of {{Tl2}}follows----><tt><nowiki>{{</nowiki>[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}: tl|tl]]<nowiki>}}</nowiki></tt><!---Subst of {{Tl2}} ends----><!---
# General parameter '''<code> <nowiki>{{{2}}}</nowiki>is coded to be a generic override for a locally differently named template using '<nowiki>{{{xxx|{{{2|{{PAGENAME}} }}} }}} }}}</nowiki> </code>. {{I5}}Example: Assume Wikitionary uses <!---Subst of {{Tl2}}follows----><tt><nowiki>{{</nowiki>[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}: tl|tl]]<nowiki>}}</nowiki></tt><!---Subst of {{Tl2}} ends----><!---
-----
-----
----> for something involving lexicographical meaning (as it does), so assuming the '''local template name''' used instead is 'TL' (all uppercase). A proper back link would then be given as <nowiki>{{interwikitmp-grp|wdy=TL|{{PAGENAME}}|tl}} where {{{1}}}=={{PAGENAME}} (''the category pipetrick''), {{{2}}}=='tl'</nowiki>.<br /><br />
----> for something involving lexicographical meaning (as it does), so assuming the '''local template name''' used instead is 'TL' (all uppercase). A proper back link would then be given as <nowiki>{{interwikitmp-grp|wdy=TL|{{PAGENAME}}|tl}} where {{{1}}}=={{PAGENAME}} (''the category pipetrick''), {{{2}}}=='tl'</nowiki>.<br /><br />
# V=<i>letter 'D' or numbers: {0, 1, 2,..., 6}}</i> &mdash; 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!) // <b>[[User:Fabartus|Fra]]</b><font color="green">[[User talk:Fabartus|nkB]]</font> 07:19, 8 February 2007 (UTC){{I2}}
# V=<i>letter 'D' or numbers: {0, 1, 2,..., 6}}</i> &mdash; 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!) // <b>User:Fabartus|Fra</b><font color="green">User talk:Fabartus|nkB</font> 07:19, 8 February 2007 (UTC){{I2}}
# ALL=''anything'' &mdash; turns on all links forming elements including those normally shut down. This can use to poll sister projects for template presence, or to distribute the template, despite ''normal non-participation'' by that sister in the template sharing project.{{I2}}
# ALL=''anything'' &mdash; turns on all links forming elements including those normally shut down. This can use to poll sister projects for template presence, or to distribute the template, despite ''normal non-participation'' by that sister in the template sharing project.{{I2}}
# cat=''bare name''... value supplants [[:Category:Miscellaneous templates]] 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]], {{W2c|Template:Wikipediacat1A}}, [[Template:WikiPtmp]] (or any 'XXXXtmp' templates listed below) and etcetera.){{I2}}{{#if: {{{cats|}}}|'''PARAMETER ERROR: Parameter 'cats=' depreciated in favor of 'CATS=' or 'cat=' as noted above. {{I2}}}}
# cat=''bare name''... value supplants :Category:Miscellaneous templates 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.){{I2}}{{#if: {{{cats|}}}|'''PARAMETER ERROR: Parameter 'cats=' depreciated in favor of 'CATS=' or 'cat=' as noted above. {{I2}}}}
# ALL2=  or ALLCATS= ''anything'' &mdash; 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.){{I2}}
# ALL2=  or ALLCATS= ''anything'' &mdash; 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.){{I2}}
# CATS=<small><nowiki>[[Category:non-standard category1|pipetrick1]][[[[Category:non-standard category2|pipetrick2]]...[[Category:non-standard categoryNN|pipetrickNN]]</nowiki></small>{{I5}}Used primarily in administrative templates where the category structure has been duplicated locally for compatibility.{{i0}}
# CATS=<small><nowiki>Category:non-standard category1|pipetrick1Category:non-standard category2|pipetrick2...Category:non-standard categoryNN|pipetrickNN</nowiki></small>{{I5}}Used primarily in administrative templates where the category structure has been duplicated locally for compatibility.{{i0}}
##Cat1=, Cat2=, Cat3=, ..., Cat5=<nowiki>[[Category:catname|pipe-trick]]</nowiki>, for keeping things neat on separate lines... especially useful when using different pipe-tricked forms.{{I2}}
##Cat1=, Cat2=, Cat3=, ..., Cat5=<nowiki>Category:catname|pipe-trick</nowiki>, for keeping things neat on separate lines... especially useful when using different pipe-tricked forms.{{I2}}
# SYS=''defined'', or V=0, it asserts [[:Category:Interwiki template-links-tagging templates]] regardless of the 'V=#' parameter's other affects on auto-categorization.
# SYS=''defined'', or V=0, it asserts Category:Interwiki template-links-tagging templates regardless of the 'V=#' parameter's other affects on auto-categorization.
# ??? - Stay tuned.
# ??? - Stay tuned.


Line 310: Line 310:
----> {{#if: {{{ALLCATS|}}} {{{ALL2|}}} |<!-- This is a test 'when applying' mode, not auto-categorization
----> {{#if: {{{ALLCATS|}}} {{{ALL2|}}} |<!-- This is a test 'when applying' mode, not auto-categorization
---->
---->
# :Category:Interwiki templates on all sisterprojects <br />
# <br />
# :Category:template namespace templates <br />
# :Category:template namespace templates <br />
# :Category:redirects from other template <br />
# :Category:redirects from other template <br />
Line 318: Line 318:
# :Category:Interwiki link templates <br />
# :Category:Interwiki link templates <br />
# :Category:Miscellaneous templates <br />
# :Category:Miscellaneous templates <br />
{{#if: {{{cat|}}}|# [[:Category:{{{cat}}} <br />}}
{{#if: {{{cat|}}}|# :Category:{{{cat}}} <br />}}
# :Category:templates used in categories <br />
# :Category:templates used in categories <br />
# :Category:Exported templates used only on {{{only|sitename}}} <br />
# :Category:Exported templates used only on {{{only|sitename}}} <br />
Line 325: Line 325:
}} <!--- <<<=== endif:Category defined test mode ALLCATS/ALL2 ----
}} <!--- <<<=== endif:Category defined test mode ALLCATS/ALL2 ----
-----
-----
---->{{#ifeq: {{{inhib|}}}|{{#if:{{{cat|}}}|<!--- do nothing --->|[[Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]}} | [[Category:Interwiki utility templates | {{{1|{{PAGENAME}} }}} ]]}}<!---
---->{{#ifeq: {{{inhib|}}}|{{#if:{{{cat|}}}|<!--- do nothing --->|Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]}} | Category:Interwiki utility templates | {{{1|{{PAGENAME}} }}} ]]}}<!---
-----
-----
---->{{#if: {{{ALL|}}} |[[Category:Interwiki templates on all sisterprojects | {{{1|{{PAGENAME}} }}} ]] <!--- These are very rare, context is participating sister's not literally all sister projects --->
---->{{#if: {{{ALL|}}} | | {{{1|{{PAGENAME}} }}} <!--- These are very rare, context is participating sister's not literally all sister projects --->
}}<!---
}}<!---
-----
-----
---->{{#if: {{{CAT|}}} | [[Category:templates used in categories | {{{1|{{PAGENAME}} }}} ]]
---->{{#if: {{{CAT|}}} | Category:templates used in categories | {{{1|{{PAGENAME}} }}}
}}<!---
}}<!---
-----
-----
---->{{#if: {{{TMP|}}} | [[Category:template namespace templates | {{{1|{{PAGENAME}} }}} ]]
---->{{#if: {{{TMP|}}} | Category:template namespace templates | {{{1|{{PAGENAME}} }}}
}}<!---
}}<!---
-----
-----
---->{{#if: {{{SYS|}}} | [[Category:Interwiki template-links-tagging templates | {{{1|{{PAGENAME}} }}} ]]<!-- These are the templates that are part of the tagging system, or necessary for it's minimal set (thus includes typing-aids for documentation of templates too).---->[[Category:template namespace templates | {{{1|{{PAGENAME}} }}} ]]
---->{{#if: {{{SYS|}}} | Category:Interwiki template-links-tagging templates | {{{1|{{PAGENAME}} }}} <!-- These are the templates that are part of the tagging system, or necessary for it's minimal set (thus includes typing-aids for documentation of templates too).---->Category:template namespace templates | {{{1|{{PAGENAME}} }}}
}}<!---
}}<!---
-----
-----
---->{{#if: {{{V|}}} |
---->{{#if: {{{V|}}} |
{{#ifeq: {{{V|}}}| R | [[Category:redirects from other template | {{{1|{{PAGENAME}} }}} ]]
{{#ifeq: {{{V|}}}| R | Category:redirects from other template | {{{1|{{PAGENAME}} }}}
}}<!--- <<<=== endif:V==R ----
}}<!--- <<<=== endif:V==R ----
---->{{#ifeq: {{{V|}}}| D | [[Category:template documentation | {{{1|{{PAGENAME}} }}} ]]
---->{{#ifeq: {{{V|}}}| D | Category:template documentation | {{{1|{{PAGENAME}} }}}  
}}<!--- <<<=== endif:V==D ----
}}<!--- <<<=== endif:V==D ----
-----
-----
---->{{#ifeq: {{{V|}}}| 0 | {{#if:{{{SYS|}}}|<!-- then skip, already defined --->|[[Category:Interwiki template-links-tagging templates | {{{1|{{PAGENAME}} }}} ]]}}  
---->{{#ifeq: {{{V|}}}| 0 | {{#if:{{{SYS|}}}|<!-- then skip, already defined --->|Category:Interwiki template-links-tagging templates | {{{1|{{PAGENAME}} }}} }}  
}}<!--- <<<=== endif:V==0 ----
}}<!--- <<<=== endif:V==0 ----
-----
-----
---->{{#ifeq: {{{V|}}}| 1 | [[Category:Internal link templates | {{{1|{{PAGENAME}} }}} ]]  
---->{{#ifeq: {{{V|}}}| 1 | Category:Internal link templates | {{{1|{{PAGENAME}} }}} ]
}}<!--- <<<=== endif:V==1 ----
}}<!--- <<<=== endif:V==1 ----
-----
-----
---->{{#ifeq: {{{V|}}}| 2 | [[Category:Interwiki link templates | {{{1|{{PAGENAME}} }}} ]]
---->{{#ifeq: {{{V|}}}| 2 | Category:Interwiki link templates | {{{1|{{PAGENAME}} }}}
}}<!--- <<<=== endif:V==2 ----
}}<!--- <<<=== endif:V==2 ----
-----
-----
---->{{#ifeq: {{{V|}}}| 3 |  
---->{{#ifeq: {{{V|}}}| 3 |  
   {{#if: {{{cat|}}}| [[Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   | [[Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]
   | Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]
   }}
   }}
}}<!--- <<<=== endif:V==3 ----
}}<!--- <<<=== endif:V==3 ----
---->
---->
{{#ifeq: {{{V|}}}| 4 |  
{{#ifeq: {{{V|}}}| 4 |  
   [[Category:Internal link templates | {{{1|{{PAGENAME}} }}} ]]
   Category:Internal link templates | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| [[Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   | [[Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]
   | Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]
   }}
   }}
}}<!--- <<<=== endif:V==4 ----
}}<!--- <<<=== endif:V==4 ----
---->
---->
{{#ifeq: {{{V|}}}| 5 |  
{{#ifeq: {{{V|}}}| 5 |  
   [[Category:Interwiki link templates | {{{1|{{PAGENAME}} }}} ]]
   Category:Interwiki link templates | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| [[Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   | [[Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]
   | Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]
   }}
   }}
}}<!--- <<<=== endif:V==5 ----
}}<!--- <<<=== endif:V==5 ----
---->
---->
{{#ifeq: {{{V|}}}| 6 |  
{{#ifeq: {{{V|}}}| 6 |  
   [[Category:Interwiki link templates | {{{1|{{PAGENAME}} }}} ]]
   Category:Interwiki link templates | {{{1|{{PAGENAME}} }}} ]]
   [[Category:Internal link templates  | {{{1|{{PAGENAME}} }}} ]]
   Category:Internal link templates  | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| [[Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   | {{#if: {{{MISC|}}}|[[Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]}}
   | {{#if: {{{MISC|}}}|Category:Miscellaneous templates | {{{1|{{PAGENAME}} }}} ]]}}
   }}
   }}
}}<!--- <<<=== endif:V==6 ----
}}<!--- <<<=== endif:V==6 ----
---->
---->
|<!--- else: V undefined, so do nothing, but check cat= ---->
|<!--- else: V undefined, so do nothing, but check cat= ---->
   {{#if: {{{cat|}}}| [[Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   {{#if: {{{cat|}}}| Category:{{{cat}}} | {{{1|{{PAGENAME}} }}} ]]
   |{{#if: {{{CAT|}}}| [[Category:templates used in categories | {{{1|{{PAGENAME}} }}} ]]}}
   |{{#if: {{{CAT|}}}| Category:templates used in categories | {{{1|{{PAGENAME}} }}} ]]}}
   }}
   }}
}}<!--- <<<=== endif:V==anything ----
}}<!--- <<<=== endif:V==anything ----
---->
---->
{{#if: {{{UNCAT|}}}| [[Category:Uncategorized templates | {{{1|{{PAGENAME}} }}} ]]  
{{#if: {{{UNCAT|}}}| Category:Uncategorized templates | {{{1|{{PAGENAME}} }}} ]]  
}}<!--- <<<=== endif:inhib ----
}}<!--- <<<=== endif:inhib ----
---->
---->
{{#if: {{{only|}}}|
{{#if: {{{only|}}}|
   {{#ifeq:{{{only}}}|COMMONS
   {{#ifeq:{{{only}}}|COMMONS
   | [[Category:Exported templates used only on Mediawiki commons | {{{1|{{PAGENAME}} }}} ]]
   | Category:Exported templates used only on Mediawiki commons | {{{1|{{PAGENAME}} }}} ]]
   | [[Category:Exported templates used only on {{{only}}} | {{{1|{{PAGENAME}} }}} ]]
   | Category:Exported templates used only on {{{only}}} | {{{1|{{PAGENAME}} }}} ]]
   }}
   }}
}}<!--- <<<=== endif:only ----
}}<!--- <<<=== endif:only ----
Line 400: Line 400:
---->
---->
{{#if: {{{D|}}}{{{diff|}}} |  
{{#if: {{{D|}}}{{{diff|}}} |  
[[Category:templates different on {{{diff|{{{D|sitename}}} }}} | {{{1|{{PAGENAME}} }}} ]]
Category:templates different on {{{diff|{{{D|sitename}}} }}} | {{{1|{{PAGENAME}} }}} ]]
[[Category:Interwiki templates varying on other sister projects|{{{1|{{PAGENAME}} }}} ]]
Category:Interwiki templates varying on other sister projects|{{{1|{{PAGENAME}} }}} ]]
}}<!--- <<<=== endif:diff(erent that site) ----
}}<!--- <<<=== endif:diff(erent that site) ----
---->
---->
Line 428: Line 428:
|-  bgcolor="azure"
|-  bgcolor="azure"


| {{lcs|Interwiki template-links-tagging templates }}<br>Templates that are needed by tagging system.<br>Cat includes XXXXtmp individual tagging templates.
| {{lcs}}<br>Templates that are needed by tagging system.<br>Cat includes XXXXtmp individual tagging templates.
| SYS (asserts)<br> and V=0
| SYS (asserts)<br> and V=0


Line 436: Line 436:
|- bgcolor="PaleGoldenrod"
|- bgcolor="PaleGoldenrod"


| {{lcs|Interwiki utility templates }} <br>Principal tagging and'' 'Tracking category' ''where this tagging utility auto-categorizes (lists) tagged templates.<br>Can only turn off by inhibiting it's expression setting "|inhib='something'.
| {{lcs }} <br>Principal tagging and'' 'Tracking category' ''where this tagging utility auto-categorizes (lists) tagged templates.<br>Can only turn off by inhibiting it's expression setting "|inhib='something'.
| inhib (suppresses)
| inhib (suppresses)


Line 444: Line 444:
|- bgcolor="WhiteSmoke"
|- bgcolor="WhiteSmoke"


| {{lcs|Interwiki templates on all sisterprojects}}<br>Rare occurence. Scope refers to paricipating Sister Projects, not literally all.
| {{lcs}}<br>Rare occurence. Scope refers to paricipating Sister Projects, not literally all.
| ALL2 (asserts)
| ALL2 (asserts)


Line 452: Line 452:
|- bgcolor="azure"
|- bgcolor="azure"


| {{lcs|Interwiki link templates}}
| {{lcs}}
| cases: V=1, V=4, V=6
| cases: V=1, V=4, V=6


Line 460: Line 460:
|- bgcolor="PaleGoldenrod"
|- bgcolor="PaleGoldenrod"


| <br>{{lcs|Miscellaneous templates }}<br>
| <br>{{lcs }}<br>
| cases: V=3, V=4, V=5, and V=6 (If V=6, then '''iff manually defined using <nowiki>'cat=|'</nowiki> or MISC=''defined''.)
| cases: V=3, V=4, V=5, and V=6 (If V=6, then '''iff manually defined using <nowiki>'cat=|'</nowiki> or MISC=''defined''.)


Line 468: Line 468:
|- bgcolor="WhiteSmoke"
|- bgcolor="WhiteSmoke"


| {{lcs|Typing-aid templates }}<br>Assumed as a sub-category of Miscellaneous, uses same V=''x'' logic.<br>Use param cat=(bare) ''category name'' to supplant Miscellaneous for all <code><tt>&#123;</tt> V: 3,4,5,6 <tt>&#125;</tt></code> modes.
| {{lcs }}<br>Assumed as a sub-category of Miscellaneous, uses same V=''x'' logic.<br>Use param cat=(bare) ''category name'' to supplant Miscellaneous for all <code><tt>&#123;</tt> V: 3,4,5,6 <tt>&#125;</tt></code> modes.
| sub-cat of same V=# distribution as Miscellaneous... define using cat= to supplant (replace) Miscellaneous templates.
| sub-cat of same V=# distribution as Miscellaneous... define using cat= to supplant (replace) Miscellaneous templates.


Line 476: Line 476:
|- bgcolor="azure"
|- bgcolor="azure"


| {{lcs|Interwiki category linking templates }}<br>
| {{lcs }}<br>
| CAT=''any value''
| CAT=''any value''


Line 484: Line 484:
|- bgcolor="PaleGoldenrod"
|- bgcolor="PaleGoldenrod"


| {{lcs|Interwiki templates varying on other sister projects }}<br>tracking category for anomalous templates where<br>the template exists, but has an
| {{lcs}}<br>tracking category for anomalous templates where<br>the template exists, but has an
| D or diff set
| D or diff set


Line 492: Line 492:
|- bgcolor="WhiteSmoke"
|- bgcolor="WhiteSmoke"


| {{lcs|Interwiki name difference other sister project<br>tracking category
| {{lcs<br>tracking category
| any mnemonic name parameter<br>being set to an
| any mnemonic name parameter<br>being set to an


Line 500: Line 500:
|- bgcolor="azure"
|- bgcolor="azure"


| {{lcs|Uncategorized templates}}
| {{lcs}}
| UNCAT
| UNCAT


Line 508: Line 508:
|- bgcolor="PaleGoldenrod"
|- bgcolor="PaleGoldenrod"


| {{lcs|Navigation templates}} or<br> {{lcs|Navigational templates}} or<br> {{lcs|{{SITENAME}} Navigation templates}}
| lcs|Navigation templates}} or<br> lcs|Navigational templates}} or<br> lcs|{{SITENAME}} Navigation templates}}
| '''NAV''' evinces if and only if there exists a defined category of one of these names
| '''NAV''' evinces if and only if there exists a defined category of one of these names


Line 516: Line 516:
|- bgcolor="WhiteSmoke"
|- bgcolor="WhiteSmoke"


| {{lcs|redirect templates}}
| {{lcs|redirect templates
| R
| R


Line 553: Line 553:
   
   
5 Category: Internal link templates and Category:Miscellaneous templates -- Combo's of 2 + 3
5 Category: Internal link templates and Category:Miscellaneous templates -- Combo's of 2 + 3
[[Category:Interwikitmp-grp]]
   
   
6 Interwiki link templates, Internal link templates and Category:Miscellaneous templates -- Combo's of 1 + 2 + 3
6 Interwiki link templates, Internal link templates and Category:Miscellaneous templates -- Combo's of 1 + 2 + 3


{|
 
|-
! {{TL|IWTG size}}=={{IWTG size}}
! {{TL|IWTG width}}=={{IWTG width}}
! {{Lts|Interwiki class-sisterproject}}
|}
{{tl|Interwikitmp-grp/doc}}
</noinclude>
</noinclude>

Latest revision as of 16:57, 27 May 2014

 

Version at a glance for M:TSP [ Template:Ltsmta ]
Version Origin Change Description datestamp and programmer
Ver: 3a3 Meta ~~~~
Ver: 3a2 Meta (m) Trim out old inline commented history, and remove many unneeded editing/maintenance links FrankB 08:05, 19 April 2007 (UTC)
Ver: 3a1 Meta Iterim: Install revised auto-categorization logic, and do some clarification and rework of self documentation. FrankB 06:54, 15 March 2007 (UTC)
Ver: 3a Meta Edits to limit bad text nesting, moved and expanded inhib parameter processing. This is Iterim still. FrankB 00:42, 15 March 2007 (UTC)
Ver: 3r1 Meta Section edits to tidy up various things.
(b) Iterim save, even added the two letter and user unfriendly names the anom wanted. Cleaned up and formatted. Next: Refactor and cut in template:IWG_links
(a) Top=This table
~~~~
3r1b: FrankB 12:22, 7 March 2007 (UTC)
3r1a: from: 10:30, 7 March 2007 (UTC)
Ver: 3__ Meta Wikipedia version, with belated auto-categorization added, new table, but saved and Finished on Meta through several iterations... Adding (subst'd WPTSP version table) with this save. FrankB 08:35, 7 March 2007 (UTC)
from: two hours b4 above.
Ver:2F-k Wikipedia Adds Edit link to array box, Fixed logic sense of ALL param., added Inhib/Override params (All UCASE mnemonic) to bypass a sister if they don't or do want a template... whichever is opposite case from normal participation in the project. FrankB ww:zz, xx March 2007 (UTC)

Table 2

IWG_links quick usage
  • '1'=='E'dit / '2'=='L'inks / '3'=='H'istory / '4'=='SISTER'(prefix) [add colons too!]
  • '5'=='PAGENAME override / T=toggle namespace, undefined--category space, defined Template space.
  • -- {{IWG links|T=1| | | | }}
Interwikitmp-grp ]]
Similar templates at English sister projects [edit]
Wikimedia-logo.png mta Meta-wiki Interwikitmp-grp
wpd Wikipedia Interwikitmp-grp
cms Commons Interwikitmp-grp
Wikibooks-logo.png wbk Wikibooks Interwikitmp-grp
wsp Wikispecies Interwikitmp-grp
wvy Wikiversity Interwikitmp-grp

==Table 3==

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:

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!

Other parameters

  1. inhib=anything — Inhib suppresses auto-categorization to [Category:Interwiki utility templates (Normally lists tools or other Utility templates).



       

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

   

  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 M:Help:Magic word|Magic word '{{PAGENAME}} .

       
  1. General parameter {{{2}}}is coded to be a generic override for a locally differently named template using '{{{xxx|{{{2|{{PAGENAME}} }}} }}} }}} .
         

Example: Assume Wikitionary uses {{tl}} for something involving lexicographical meaning (as it does), so assuming the local template name used instead is 'TL' (all uppercase). A proper back link would then be given as {{interwikitmp-grp|wdy=TL|{{PAGENAME}}|tl}} where {{{1}}}=={{PAGENAME}} (''the category pipetrick''), {{{2}}}=='tl'.

  1. 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!) // User:Fabartus|FraUser talk:Fabartus|nkB 07:19, 8 February 2007 (UTC)

       
  1. ALL=anything — turns on all links forming elements including those normally shut down. This can use to poll sister projects for template presence, or to distribute the template, despite normal non-participation by that sister in the template sharing project.

       
  1. cat=bare name... value supplants :Category:Miscellaneous templates 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.)

       
  1. 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.)

       
  1. CATS=Category:non-standard category1|pipetrick1Category:non-standard category2|pipetrick2...Category:non-standard categoryNN|pipetrickNN
         

Used primarily in administrative templates where the category structure has been duplicated locally for compatibility.
<noinlcude> </noinclude>

    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. SYS=defined, or V=0, it asserts Category:Interwiki template-links-tagging templates regardless of the 'V=#' parameter's other affects on auto-categorization.
  2. ??? - Stay tuned.

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:Wiktionarytmp
  5. template:Wikiquote
  6. template:WikiNewstmp
  7. template:Wikisourcetmp
  8. template:WikiSpeciestmp
  9. template:WikiVersitytmp
 Interwikitmp-grp  ]]Interwikitmp-grpInterwikitmp-grpInterwikitmp-grpInterwikitmp-grp  Category:template namespace templatesInterwikitmp-grp  ]]

Interwikitmp-grp ]]

Interwikitmp-grp ]] Category:Interwiki templates varying on other sister projects

Key categories versus parameters
'Sister parameters' are those semi-mnemonic three letter codes noted on the template. Several depreciated equivalents are also legal substitutes: meta wikt

Toggle Parameters:
Defining one of the three letter mnemonic's expressed as all uppercase toggles the logic for the cell displaying that sister project from 'on to off' (This template is not used on that sister, the most common need), or from 'off to on' (A sister which has little need for templates has this particular one).
Example:
{{interwikitmp-grp|WDY=1|WPD=1|...}}
This example would express a template shared in common from the two sites Wiktionary and whereever, but for which Wikipedia (which normally has most everything) does NOT have said template. Wikitionary is toggled from normally off to on, Wikipedia from normally on to Off.
Lower case Mnemonic codes work dissimilarly in that defining such an parameter triggers difference tracking auto-categorization, but is indeed the same in effect for non-participating sister projects, for whom it is uncommon to share a template.

Categories by parameter affecting (table)

Categories in the system Params in play

Category:Interwikitmp-grp (edit links history)
Templates that are needed by tagging system.
Cat includes XXXXtmp individual tagging templates.
SYS (asserts)
and V=0

Category:Interwikitmp-grp (edit links history)
Principal tagging and 'Tracking category' where this tagging utility auto-categorizes (lists) tagged templates.
Can only turn off by inhibiting it's expression setting "|inhib='something'.
inhib (suppresses)

Category:Interwikitmp-grp (edit links history)
Rare occurence. Scope refers to paricipating Sister Projects, not literally all.
ALL2 (asserts)

Category:Interwikitmp-grp (edit links history) cases: V=1, V=4, V=6


Category:Interwikitmp-grp (edit links history)
cases: V=3, V=4, V=5, and V=6 (If V=6, then iff manually defined using 'cat=|' or MISC=defined.)

Category:Interwikitmp-grp (edit links history)
Assumed as a sub-category of Miscellaneous, uses same V=x logic.
Use param cat=(bare) category name to supplant Miscellaneous for all { V: 3,4,5,6 } modes.
sub-cat of same V=# distribution as Miscellaneous... define using cat= to supplant (replace) Miscellaneous templates.

Category:Interwikitmp-grp (edit links history)
CAT=any value

Category:Interwikitmp-grp (edit links history)
tracking category for anomalous templates where
the template exists, but has an
D or diff set

{{lcs
tracking category
any mnemonic name parameter
being set to an

Category:Interwikitmp-grp (edit links history) UNCAT

Navigation templates}} or
lcs|Navigational templates}} or
lcs|XMS Wiki Navigation templates}}
NAV evinces if and only if there exists a defined category of one of these names

redirect templates R

a1 a2

c1 c2

e1 e2

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