Template:W: Difference between revisions
Jump to navigation
Jump to search
fix when second parameter is empty |
Wikimedia+Commons>Majora Fulfilling edit request |
||
| Line 1: | Line 1: | ||
[[{{{1}}}|{{if | {{#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}} | |||
</noinclude> | |||
Revision as of 00:07, 29 June 2019
[[:w:|]]
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=usernameto enable a bot move to take place.
See also
- Template:W at Wikimedia Commons