Difference between revisions of "Template:Outdent"

From Yugipedia
Jump to: navigation, search
 
(fix for cases where input is 0 or > 40)
(3 intermediate revisions 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; word-wrap:normal; width:{{{{{|safesubst:}}}#switch:{{{1|}}}
+
--><span style="display:inline-block; overflow:hidden;">┌</span><!--
|:=0.8
+
--><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;"><!--
|::=2.4
 
|:::=4.0
 
|::::=5.6
 
|:::::=7.2
 
|::::::=9
 
|:::::::=10.6
 
|::::::::=12
 
|:::::::::=13.6
 
|::::::::::=15.2
 
|:::::::::::=16.8
 
|::::::::::::=18.4
 
|:::::::::::::=20
 
|::::::::::::::=21.6
 
|:::::::::::::::=23.2
 
|::::::::::::::::=24.8
 
|:::::::::::::::::=26.4
 
|::::::::::::::::::=28
 
|:::::::::::::::::::=29.6
 
|::::::::::::::::::::=31.2
 
|#default={{{{{|safesubst:}}}#expr: {{{1|10}}} * 1.6 - 0.8}}}}em;"><!--
 
 
-->────────────────────────────────────────────────────────────────────────────────────────────────────</span><!--
 
-->────────────────────────────────────────────────────────────────────────────────────────────────────</span><!--
 +
--><span style="display:inline-block; overflow:hidden;">┘</span><!--
 
--></span><noinclude>
 
--></span><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:04, 25 June 2016

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