User:Xandoria/Sandbox/Template:XandoTest: Difference between revisions
From Vintage Story Wiki
No edit summary Tag: Manual revert |
No edit summary |
||
Line 32: | Line 32: | ||
</div>}} | </div>}} | ||
{{#if:{{{OA|}}}| | {{#if:{{{OA|}}}| | ||
<div style="left:78px; top: | <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: | <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}}}}}]] |
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.