Template:Item cell: Difference between revisions

From Vintage Story Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><div style="top: {{#switch: {{{1|{{{pos|}}}}}}|1|2|3=8|4|5|6=60|7|8|9=112|10=180}}px; left: {{#switch: {{{1|{{{pos|}}}}}}|1|4|7=8|2|5|8|10=60|3|6|9=112}}px; position: absolute; width: 44px; height: 44px; border:3px solid #251E19; background: rgb(204,170,141);
<includeonly><div style="top: {{#switch: {{{1|{{{pos|}}}}}}|1|2|3=8|4|5|6=60|7|8|9=112|10=180}}px; left: {{#switch: {{{1|{{{pos|}}}}}}|1|4|7=8|2|5|8|10=60|3|6|9=112}}px; position: absolute; width: 44px; height: 44px; border:3px solid #251E19; background: rgb(204,170,141);
background: linear-gradient(to bottom, rgba(204,170,141,1) 0%, rgba(235,204,173,0) 5%, rgba(255,226,194,1) 50%, rgba(235,204,173,0) 95%, rgba(204,170,141,1) 100%),
background: linear-gradient(to bottom, rgba(204,170,141,1) 0%, rgba(235,204,173,0) 5%, rgba(255,226,194,1) 50%, rgba(235,204,173,0) 95%, rgba(204,170,141,1) 100%),
             linear-gradient(to left, rgba(204,170,141,1) 0%, rgba(235,204,173,1) 5%, rgba(255,226,194,1) 50%, rgba(235,204,173,1) 95%, rgba(204,170,141,1) 100%);">{{#if: {{{2|{{{item|}}}}}}|[[File:{{{2|{{{item|}}}}}}.png|44px|center|middle|link={{ProcessItemName|{{{2|{{{item|}}}}}} }}|alt={{{3|{{{alt|}}}}}}]]}}</div></includeonly>
             linear-gradient(to left, rgba(204,170,141,1) 0%, rgba(235,204,173,1) 5%, rgba(255,226,194,1) 50%, rgba(235,204,173,1) 95%, rgba(204,170,141,1) 100%);">{{#if: {{{2|{{{item|}}}}}}|[[File:{{{2|{{{item|}}}}}}.png|44px|center|middle|link={{{3|{{{link|}}}}}} }}|alt={{{4|{{{alt|}}}}}}]]}}</div></includeonly>

Revision as of 04:09, 23 August 2022