Template:W: Difference between revisions

From IxWiki
Jump to navigation Jump to search
ww>JJMC89
fix when second parameter is empty
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[{{{1}}}|{{if empty|{{{2|}}}|{{{1}}}}}]]<noinclude>
{{#switch:{{padleft:|1|{{{1|}}}}}|&#91;|&#123;=[[Category:Maintenance:Template W error]]{{color|red|'''Template W: parameter error'''}}<!--
{{Documentation}}</noinclude>
-->|{{#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}}}}}}}<!-- &#58;
-->|{{#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>

Latest revision as of 11:13, 24 September 2023

[[:w:|]]