Difference between revisions of "Template:Outdent"

From Yugipedia
Jump to: navigation, search
(replace the #switch using #len, since we have StringFunctions here)
(fix for cases where input is 0 or > 40)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<span class="outdent-template" style="display:block; margin-top:-0.5em; color:#AAA;"><!--
 
<span class="outdent-template" style="display:block; margin-top:-0.5em; color:#AAA;"><!--
 
--><span style="display:inline-block; overflow:hidden;">┌</span><!--
 
--><span style="display:inline-block; overflow:hidden;">┌</span><!--
--><span style="display:inline-block; overflow:hidden; word-wrap:normal; width:{{ {{{|safesubst:}}}#expr: {{ {{{|safesubst:}}}#iferror: {{ {{{|safesubst:}}}#expr: {{{1}}} }} | {{ {{{|safesubst:}}}#len: {{{1}}} }} }} * 1.6 - 0.8 }}em;"><!--
+
--><span style="display:inline-block; overflow:hidden; word-wrap:normal; width:{{ #expr: {{ #iferror: {{ #ifexpr: {{{1}}} > 0 and {{{1}}} < 40 | {{{1}}} | 10 }} | {{ #if: {{{1|}}} | {{ #len: {{{1}}} }} | 10 }} }} * 1.6 - 0.8 }}em;"><!--
 
-->────────────────────────────────────────────────────────────────────────────────────────────────────</span><!--
 
-->────────────────────────────────────────────────────────────────────────────────────────────────────</span><!--
 
--><span style="display:inline-block; overflow:hidden;">┘</span><!--
 
--><span style="display:inline-block; overflow:hidden;">┘</span><!--

Revision as of 13:04, 25 June 2016

────────────────────────────────────────────────────────────────────────────────────────────────────