.

Template:W2

Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search

{{ #if:{{{2|}}}|[[{{{1}}}|{{{2}}}]] | [[{{{1}}}|{{{1}}}]] }} Template:Interwikitmp-grp 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 {{#if:sister projects|sister projects|Wikipedia: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 Template:Tl by simply copying the same language between the two matching categories.

  • Such now takes a lot of manual editing converting from {{#if:|{{{2}}}|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 {{#if:sister projects|sister projects|Wikipedia:Sister projects}}, as well by testing for the second argument using if then else conditionals.