From Wikiversity
Jump to navigation Jump to search

internal logic:

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

Purpose: link to a page on the English Wikipedia with wikitext that without change can be used on that Wikipedia itself and on any sister, especially the 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 ALL sister projects that also takes a pipetrick using an if then else construct.

  • It's primary use is for SARing existing text (Snippets) using [[ --- ]] links from Wikipedia articles or usage or documentation notes refering to article space (useful in clear explanations. See 'XHTML and HTML below') in a sister portable way.
Similar templates at English sister projects [edit]
Wikipedia-logo.png wpd Wikipedia W2
Commons-logo.svg cms Commons W2
Wikibooks-logo.svg wbk Wikibooks W2
Wikispecies-logo.svg wsp Wikispecies W2
Wikiversity-logo.svg wvy Wikiversity W2

|This will enable both sister-projects to use the same call in category pages being equalized by the various interwiki templates such as {{Commonscat}} 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 pipetricking, and also any pipetricking used in documentation to be consistent across Wikipedia:Sister projects, as well by testing for the second argument using if then else conditionals.