Template:Pars: Difference between revisions
From Vigyanwiki
Template>Mgkrupa (Fix) |
Template>Mgkrupa (Update) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|{{resize|{{{2}}}%|(}}<span class="nowrap" style="padding-left:0.1em; padding-right:0.1em;">{{{1}}}</span>{{resize|{{{2}}}%|)}}|{{#if:{{{s|}}}|{{resize|{{{s}}}%|(}}|(}}{{#if:{{{1|}}}|<span class="nowrap" style="padding-left:0.1em; padding-right:0.1em;">{{{1}}}</span>| }}{{#if:{{{s|}}}|{{resize|{{{s}}}%|)}}|)}}}}</includeonly><noinclude> | <includeonly>{{#if:{{{2|}}}|{{resize|{{{2}}}%|(}}<span class="nowrap" style="padding-left:0.1em; padding-right:0.1em;">{{{1| }}}</span>{{resize|{{{2}}}%|)}}|{{#if:{{{s|}}}|{{resize|{{{s}}}%|(}}|(}}{{#if:{{{1|}}}|<span class="nowrap" style="padding-left:0.1em; padding-right:0.1em;">{{{1}}}</span>| }}{{#if:{{{s|}}}|{{resize|{{{s}}}%|)}}|)}}}}</includeonly><noinclude> | ||
<!-- | |||
We add spacing to the above code to make it more readable: | |||
{{#if:{{{2|}}}| <!--- Start case where 2 is defined ---> | |||
{{resize|{{{2}}}%|(}}<span class="nowrap" style="padding-left:0.1em; padding-right:0.1em;">{{{1| }}}</span>{{resize|{{{2}}}%|)}} <!--- End case where 2 is defined --> | |||
| <!-- Start case where 2 is NOT defined --> | |||
{{#if:{{{s|}}}|{{resize|{{{s}}}%|(}}|(}} <!--- If s is defined then resize ( otherwise, print a normal ( ---> | |||
{{#if:{{{1|}}}| <!--- Start case where 1 is defined ---> | |||
<span class="nowrap" style="padding-left:0.1em; padding-right:0.1em;">{{{1}}}</span> | |||
| <!--- Start case where 1 is NOT defined ---> | |||
}} | |||
{{#if:{{{s|}}}|{{resize|{{{s}}}%|)}}|)}} <!--- If s is defined then resize ) otherwise, else print a normal ) ---> | |||
}}<!--- End the if statement: {{#if:{{{2|}}}| ... ---> | |||
--> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 23:23, 3 August 2020
( ) | ( ) }} -->
Template documentation
[create]