Template:W: Difference between revisions
Jump to navigation
Jump to search
same as {{wikipedia}} only less to type--but this wiki REALLY needs interwiki linking to Wikipedia and other MediaWiki wikis... |
Trying out Template:W from Wikicommons |
||
Line 1: | Line 1: | ||
[http://{{#if:{{{lang|}}}|{{{lang}}}|en}}.wikipedia.org/wiki/{{#replace:{{{1}}}|{{#replace:~ ~|~}}|_}} {{#if:{{{2|}}}|{{{2|}}}|{{#ifeq:{{{w|}}}|n||Wikipedia:}}{{{1}}}}}] | {{#switch:{{padleft:|1|{{{1|}}}}}|[|{=[[Category:Maintenance:Template W error]]{{color|red|'''Template W: parameter error'''}}<!-- | ||
-->|{{#switch:{{{link}}}|no|n|-={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}<!-- option for only text without link | |||
-->|[[:{{{3|w}}}:{{{1|}}}|{{<includeonly>safesubst:</includeonly>#if: {{{2|}}}|{{{2}}}<!-- | |||
-->|{{#if:{{NAMESPACE:{{{1|}}}}}|{{NAMESPACE:{{{1|}}}}}''''':'''''{{PAGENAME:{{{1|{{Projectname|w}}}}}}}<!-- : | |||
-->|{{#ifeq:{{padleft:|1|{{{1|W}}}}}|{{lc:{{padleft:|1|{{PAGENAME:{{{1|W}}}}}}}}}<!--"ℓ" | |||
-->|{{lcfirst:{{PAGENAME:{{{1|{{Projectname|w}}}}}}}}}<!-- first character lower case | |||
-->|{{PAGENAME:{{{1|{{Projectname|w}}}}}}}<!-- | |||
-->}}}}}}]]}}}}<noinclude> | |||
{{Documentation}} | |||
<--[http://{{#if:{{{lang|}}}|{{{lang}}}|en}}.wikipedia.org/wiki/{{#replace:{{{1}}}|{{#replace:~ ~|~}}|_}} {{#if:{{{2|}}}|{{{2|}}}|{{#ifeq:{{{w|}}}|n||Wikipedia:}}{{{1}}}}}]-->[[Category:External link templates]]</noinclude> |
Revision as of 02:36, 14 September 2022
[[:w:|]]
This documentation is
transcluded from Template:W/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.

Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
Template {{W}} is widely used on Wikimedia sister projects to form the
interwiki link:
[[w:{{{1}}} | {{{2|{{{1}}}}}} ]]
- Its use here allows images and other text snippets (descriptions for Commons category headings, for example) to be composed.
- It is particularly useful in annotating images marked by a bot as being eligible for transfer before adding |user = username to enable a bot move to take place.
- This template was previously a redirect to {{Welcome}}, but this caused chaos when bots copied Commons images for temporary upload on Wikipedia.
See also
- Template:W at Wikimedia Commons
<--Wikipedia:{{{1}}}-->