Difference between revisions of "Template:Textitem2"
[checked revision] | [checked revision] |
m |
m |
||
Line 1: | Line 1: | ||
− | <div style="display:inline-block; width:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{width|}}} | {{{width}}} | 1 }} }}px; height:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{height|}}} | {{{height}}} | 1 }} }}px; vertical-align: middle; position: relative; top: 0px; left: 0px; line-height: 0%;">[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]{{#switch: {{{width|}}} | 2 = [[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] | 3 = [[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] }} {{#switch: {{{height|}}} | 2 =<br />[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] {{#switch: {{{width|}}} | 2 =[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] | 3 =[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] }} | 3 =<br>[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] {{#switch: {{{width|}}} | 2 =[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]<br>[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] | 3 =[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]<br>[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] }} }}<div style="position:absolute; top: 0px; width:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{width|}}} | {{{width}}} | 1 }} }}px; height:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{height|}}} | {{{height}}} | 1 }} }}px;"><includeonly>[[File:{{#if: {{{File|}}} | {{{File}}} | {{{1}}} }}.png|{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{width|}}} | {{{width}}} | 1 }} }}px|{{#if: {{{link|}}} | link={{{link}}} | link={{{1}}} }}]]</includeonly></div></div> | + | <div style="display:inline-block; width:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{width|}}} | {{{width}}} | 1 }} }}px; height:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{height|}}} | {{{height}}} | 1 }} }}px; vertical-align: middle; position: relative; top: 0px; left: 0px; line-height: 0%;">[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]{{#switch: {{{width|}}} | 2=[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] | 3=[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] }} {{#switch: {{{height|}}} | 2=<br />[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] {{#switch: {{{width|}}} | 2=[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] | 3=[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] }} | 3=<br />[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] {{#switch: {{{width|}}} | 2=[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]<br>[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]] | 3=[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]<br>[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]][[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]}}{{#ifeq: {{{width|}}} | |<br />[[File:Background.png|{{#if: {{{px|}}} | {{{px}}} | 32 }}px|link=]]}} }}<div style="position:absolute; top: 0px; width:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{width|}}} | {{{width}}} | 1 }} }}px; height:{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{height|}}} | {{{height}}} | 1 }} }}px;"><includeonly>[[File:{{#if: {{{File|}}} | {{{File}}} | {{{1}}} }}.png|{{#expr: {{#if: {{{px|}}} | {{{px}}} | 32 }}*{{#if: {{{width|}}} | {{{width}}} | 1 }} }}px|{{#if: {{{link|}}} | link={{{link}}} | link={{{1}}} }}]]</includeonly></div></div> |