Template:W2
From Wikipedia, the free encyclopedia
{{ #if:{{{2|}}}|[[{{{1}}}|{{{2}}}]] | [[{{{1}}}|{{{1}}}]] }}
- Other Sister Projects sharing this template or one like it
|
||
---|---|---|
|
|
|
|
|
|
|
|
|
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.