Template:MW
From Wikipedia, the free encyclopedia
- Template Logic
- {{#if: {{{2|}}} |<!--THEN---> [[ m: {{{1}}} | {{{2}}} ]] |<!--ELSE---> [[ m: {{{1}}} | {{{1}}} ]] <!--ENDIF--->}} (whitespace added)
- Other Sister Projects sharing this template or one like it
|
||
---|---|---|
|
|
|
|
|
|
|
|
|
Purpose is to duplicate the wikimedia commons template 'w2c' which doesn't match the en.wikipedia 'Wc' (World Cup) template, by creating a 'w2c' template for both sister projects that also takes a pipetrick using an if then else construct.
'W2' and 'Wc' interwiki templates:
- Both 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 (Article page link) forms [[w:Article name]] or {{W|Article name}} to [[Article name]] on en.wikipedia.
- 'Wc' is primarily useful for see also lists on en.wikipedia or other direct accessing needs into a commons page. (Talk to Talk page, say for example).
- This template will allow such pipetricking as well by testing for the second arguement using if then else conditionals.