User:Xandoria/Sandbox/Template:XandoTest: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 32: Line 32:
</div>}}
</div>}}
{{#if:{{{OA|}}}|
{{#if:{{{OA|}}}|
<div style="left:78px; top:210px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:78px; top:212px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{OA|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (floor({{{OA|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}|{{#if:{{{Output_name|}}}|{{{Output_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}|{{#if:{{{Output_name|}}}|{{{Output_name}}}}}]]
</div>
</div>
</div>
</div>
<div style="left:90px; top:210px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:90px; top:212px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{OA|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (({{{OA|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}|{{#if:{{{Output_name|}}}|{{{Output_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}|{{#if:{{{Output_name|}}}|{{{Output_name}}}}}]]
Line 80: Line 80:
}}
}}
         {{#if:{{{B1N|}}}|
         {{#if:{{{B1N|}}}|
<div style="left:81px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:79px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{B1N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (floor({{{B1N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B1-link|}}}|{{{B1-link}}}|{{{B1}}}}}|alt={{{B1}}}|{{#if:{{{B1_name|}}}|{{{B1_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B1-link|}}}|{{{B1-link}}}|{{{B1}}}}}|alt={{{B1}}}|{{#if:{{{B1_name|}}}|{{{B1_name}}}}}]]
</div>
</div>
</div>
</div>
<div style="left:93px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:91px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{B1N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (({{{B1N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B1-link|}}}|{{{B1-link}}}|{{{B1}}}}}|alt={{{B1}}}|{{#if:{{{B1_name|}}}|{{{B1_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B1-link|}}}|{{{B1-link}}}|{{{B1}}}}}|alt={{{B1}}}|{{#if:{{{B1_name|}}}|{{{B1_name}}}}}]]
Line 92: Line 92:
}}
}}
         {{#if:{{{B2N|}}}|
         {{#if:{{{B2N|}}}|
<div style="left:81px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:79px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{B2N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (floor({{{B2N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B2-link|}}}|{{{B2-link}}}|{{{B2}}}}}|alt={{{B2}}}|{{#if:{{{B2_name|}}}|{{{B2_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B2-link|}}}|{{{B2-link}}}|{{{B2}}}}}|alt={{{B2}}}|{{#if:{{{B2_name|}}}|{{{B2_name}}}}}]]
</div>
</div>
</div>
</div>
<div style="left:93px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:91px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{B2N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (({{{B2N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B2-link|}}}|{{{B2-link}}}|{{{B2}}}}}|alt={{{B2}}}|{{#if:{{{B2_name|}}}|{{{B2_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B2-link|}}}|{{{B2-link}}}|{{{B2}}}}}|alt={{{B2}}}|{{#if:{{{B2_name|}}}|{{{B2_name}}}}}]]
Line 104: Line 104:
}}
}}
         {{#if:{{{B3N|}}}|
         {{#if:{{{B3N|}}}|
<div style="left:81px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:79px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{B3N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (floor({{{B3N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|alt={{{B3}}}|{{#if:{{{B3_name|}}}|{{{B3_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|alt={{{B3}}}|{{#if:{{{B3_name|}}}|{{{B3_name}}}}}]]
</div>
</div>
</div>
</div>
<div style="left:93px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:91px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{B3N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
<div style="left:{{#expr:-16 * (({{{B3N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|alt={{{B3}}}|{{#if:{{{B3_name|}}}|{{{B3_name}}}}}]]
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|alt={{{B3}}}|{{#if:{{{B3_name|}}}|{{{B3_name}}}}}]]

Latest revision as of 09:09, 1 August 2023


[create | history | purge this page]Documentation
This template has no documentation. If you know how to use this template, please create it.