User:Xandoria/Sandbox/Template:XandoTest: Difference between revisions
From Vintage Story Wiki
(Created page with "<includeonly><div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:174px; height:241px; position:relative;"> <div style="left:0px; top:0px; width:174px; height:132px;">174px|link=|alt=</div> {{#if:{{{A1|}}}|<div style="left:14px; top:9px; width:40px; height:40px; position:absolute;"> Image:{{#if:{{{A1-image|}}}|{{{A1-image}}}|Grid_{{{A1}}}.png}}|40px|link={{#if:{{{A1-link|}}}|{{{A1-link}}}|{{{A1}}}...") |
No edit summary |
||
Line 80: | Line 80: | ||
}} | }} | ||
{{#if:{{{B1N|}}}| | {{#if:{{{B1N|}}}| | ||
<div style="left: | <div style="left:81px; 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: | <div style="left:93px; 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: | <div style="left:81px; 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: | <div style="left:93px; 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: | <div style="left:81px; 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: | <div style="left:93px; 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}}}}}]] |
Revision as of 09:03, 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.