Template:PrizeBubble: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Fixed image display to be centered inside bubble)
mNo edit summary
Line 6: Line 6:
-->{{#expr: {{{bubble-size|128}}} - {{{item-size|92}}} }}<!--
-->{{#expr: {{{bubble-size|128}}} - {{{item-size|92}}} }}<!--
--> / 2}} - <!--
--> / 2}} - <!--
-->{{#expr: {{#expr: {{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }}<!--
-->{{#expr: {{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }}<!--
-->/ {{{bubble-size|128}}} }} + 6}}<!--
-->/ {{{bubble-size|128}}} }}<!--
--> }}px;<!--
--> }}px;<!--
-->margin-top:{{#expr: <!--
-->margin-top:{{#expr: <!--
Line 13: Line 13:
-->{{#expr: {{{bubble-size|128}}} - {{{item-size|92}}} }}<!--
-->{{#expr: {{{bubble-size|128}}} - {{{item-size|92}}} }}<!--
--> / 2}} - <!--
--> / 2}} - <!--
-->{{#expr: {{#expr: {{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }}<!--
-->{{#expr: {{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }}<!--
-->/ {{{bubble-size|128}}} }} + 6}}<!--
-->/ {{{bubble-size|128}}} }}<!--
--> }}px;"<!--
--> }}px;"<!--
-->| style="margin-left:{{#expr:<!--
-->| style="margin-left:{{#expr:<!--
-->{{#expr: {{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }} / -{{{bubble-size|128}}} }} - 2}} }}px;<!--
-->{{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }} / -{{{bubble-size|128}}} }} }}px;<!--
-->margin-top:{{#expr:<!--
-->margin-top:{{#expr:<!--
-->{{#expr: {{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }} / -{{{bubble-size|128}}} }} - 2}} }}px;"}}
-->{{#expr: {{{bubble-size|128}}} + {{{item-size|92}}} }} / -{{{bubble-size|128}}} }} }}px;"}}
|style="vertical-align:center; text-align:center; height:{{{bubble-size|128}}}px; width:{{{bubble-size|128}}}px; |[[File:{{{image|Warning_Missing_Icon.png}}}|{{{item-size|92}}}px|class=prizebubble-mask:after|{{{text}}}]]
|style="vertical-align:center; text-align:center; height:{{{bubble-size|128}}}px; width:{{{bubble-size|128}}}px; |[[File:{{{image|Warning_Missing_Icon.png}}}|{{{item-size|92}}}px|class=prizebubble-mask:after|{{{text}}}]]
|}
|}

Revision as of 19:44, 2 August 2023


{{{text}}}
Bubble.png
{{{text}}}
Bubble.png
{{{text}}}
Bubble.png
{{{text}}}
Bubble.png
{{{text}}}
Bubble.png
{{{text}}}
Bubble.png
{{{text}}}
Bubble.png

Creates a prize bubble based on the image you specify, with adjustable item size. Do NOT include px after the size number.

Usage

{{PrizeBubble|image=Item.png|bubble-size=128|item-size=92}}