Template:Tlg: Difference between revisions
class="nowrap"; {{!((}} instead of {{!(}}{{!(}}; simpler (lighter on the parser) empty parameter checks
w:en>Patrick87 (handle empty but specified first parameter) |
w:en>Dinoguy1000 (class="nowrap"; {{!((}} instead of {{!(}}{{!(}}; simpler (lighter on the parser) empty parameter checks) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
Templates tlc, tld, tlf have the following wrapping everything; do we need it? | Templates tlc, tld, tlf have the following wrapping everything; do we need it? | ||
<span | <span class="nowrap"> | ||
--><!-- | --><!-- | ||
Line 16: | Line 16: | ||
-->{{#if:{{{nolink|}}} | -->{{#if:{{{nolink|}}} | ||
|<!-- nolink=yes --> | |<!-- nolink=yes --> | ||
|{{!( | |{{!((}}:<!-- opening brackets of link | ||
-->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning --> | -->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning --> | ||
|: | |: | ||
Line 43: | Line 43: | ||
-- add parameters | -- add parameters | ||
-->{{#ifeq:{{{2|}}}| | -->{{#ifeq:{{{2|¬}}}|¬|||{{{2}}}}}<!-- | ||
-->{{#ifeq:{{{3|}}}| | -->{{#ifeq:{{{3|¬}}}|¬|||{{{3}}}}}<!-- | ||
-->{{#ifeq:{{{4|}}}| | -->{{#ifeq:{{{4|¬}}}|¬|||{{{4}}}}}<!-- | ||
-->{{#ifeq:{{{5|}}}| | -->{{#ifeq:{{{5|¬}}}|¬|||{{{5}}}}}<!-- | ||
-->{{#ifeq:{{{6|}}}| | -->{{#ifeq:{{{6|¬}}}|¬|||{{{6}}}}}<!-- | ||
-->{{#ifeq:{{{7|}}}| | -->{{#ifeq:{{{7|¬}}}|¬|||{{{7}}}}}<!-- | ||
-->{{#ifeq:{{{8|}}}| | -->{{#ifeq:{{{8|¬}}}|¬|||{{{8}}}}}<!-- | ||
-->{{#ifeq:{{{9|}}}| | -->{{#ifeq:{{{9|¬}}}|¬|||{{{9}}}}}<!-- | ||
-->{{#ifeq:{{{10|}}}| | -->{{#ifeq:{{{10|¬}}}|¬|||{{{10}}}}}<!-- | ||
-->{{#ifeq:{{{11|}}}| | -->{{#ifeq:{{{11|¬}}}|¬|||{{{11}}}}}<!-- | ||
-->{{#if:{{{12|}}}||''...''}}<!-- | -->{{#if:{{{12|}}}||''...''}}<!-- | ||