Template:Para: Difference between revisions

Updated and corrected the code. It should work now.
(Added option to output value via Template:Varserif.)
(Updated and corrected the code. It should work now.)
 
Line 1: Line 1:
 
{{#ifeq:{{{plain|}}}|yes|{{code|style=background-color:inherit;border:none;|&#124;{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{{1}}}&#61;{{#ifeq:{{{serif|}}}|yes|{{varserif|{{{2}}}}}|{{var|{{{2}}}}}}}|{{#ifeq:{{{equal|}}}|yes|{{{1}}}&#61;|{{{1}}}}}}}|{{#if:{{{2|}}}|{{var|{{{2}}}}}}}}}}}|{{code|&#124;{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{{1}}}&#61;{{#ifeq:{{{serif|}}}|yes|{{varserif|{{{2}}}}}|{{var|{{{2}}}}}}}|{{#ifeq:{{{equal|}}}|yes|{{{1}}}&#61;|{{{1}}}}}}}|{{#if:{{{2|}}}|{{var|{{{2}}}}}}}}}}}}}<noinclude>
<code class="nowrap" {{#ifeq:{{{plain|}}}|yes|style="background-color:inherit;border:none;"}}>&#124;{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{{1}}}&#61;{{#ifeq:{{{serif|}}}|yes|{{varserif|{{{2}}}}}|{{var|{{{2}}}}}}}|{{#ifeq:{{{equal|}}}|yes|{{{1}}}&#61;|{{{1}}}}}}}|{{#if:{{{2|}}}|{{var|{{{2}}}}}}}}}</code><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories in the /doc subpage, not here. -->
<!-- Put categories in the /doc subpage, not here. -->
</noinclude>
</noinclude>
3,860

edits