Template:W2

From Wikipedia, the free encyclopedia

{{ #if:{{{2|}}}|[[{{{1}}}|{{{2}}}]] | [[{{{1}}}|{{{1}}}]] }}

Other Sister Projects sharing this template or one like it

Metawiki
Our umbrella organization, Metawiki has this template: [[m:template:|]]



Wikipedia
Wikipedia has this template: W2


Commons
The sister project Commons has this template: W2


Wikibooks logo
Wikibooks has the similar template:
Wikiquote
The sister project Wikiquote has this template: W2


Wikisource
The sister project Wikisource has this template: W2


Wiktionary
The sister project Wiktionary has this template: W2


Wikinews
The sister project Wikinews has this template: W2


Wikispecies
Wikispecies has this template: W2


Wikiversity
The sister project Wikiversity has this template: W2






Purpose: link to a page on the English Wikipedia with wikitext that without change can be used on that Wikipedia itself and on Commons. This is achieved by corresponding (but unequal) templates with the same name on both projects.


It duplicates the wikimedia commons template 'w' which doesn't match the en.wikipedia 'w' template, by creating a 'w2' template for both sister projects that also takes a pipetrick using an if then else construct.
This will enable both sister-projects to use the same call in category pages being equalized by the various interwiki templates such as {{Commonscat4}} by simply copying the same language between the two matching categories.

  • Such now takes a lot of manual editing converting from the commons versions: [[w:Article name|Pipetricked name to 'Article name']] or {{W|Article name}} to wikipedia's [[Article name]] on en.wikipedia. The [[xxx]] forms allow pipetrick renaming, whereas {{w|xxx}} does not.
  • This 'W2 template' will allow such pipetricking, and also any used to be consistent across sister projects, as well by testing for the second argument using if then else conditionals.