Template:Item: Difference between revisions

m
Increased border size.
m (Added margin-bottom.)
m (Increased border size.)
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="display: inline-block; margin: 0 10px 10px 0; border: 2px solid #895C40; width: 54px; height: 54px; border-radius: 2px; position: relative; cursor: pointer; {{#switch: {{uc:{{{rarity|}}}}}
{| style="display: inline-block; margin: 5px; border: 3px solid #895C40; width: 54px; height: 54px; border-radius: 2px; position: relative; cursor: pointer; {{#switch: {{uc:{{{rarity|}}}}}
   | UR      = background: radial-gradient(circle, #F65E55, #B5423F);
   | UR      = background: radial-gradient(circle, #F65E55, #B5423F);
   | SSR      = background: radial-gradient(circle, #F3C359, #9D5C28);
   | SSR      = background: radial-gradient(circle, #F3C359, #9D5C28);
   | SR      = background: radial-gradient(circle, #6A3F84, #32203A);
   | SR      = background: radial-gradient(circle, #6A3F84, #32203A);
   | R        = background: radial-gradient(circle, #2F516E, #131C2D);
   | R        = background: radial-gradient(circle, #2F516E, #131C2D);
  | N        = background: radial-gradient(circle, #41795A, #274136);
   | #default = background: radial-gradient(circle, white, lightgray);
   | #default = background: radial-gradient(circle, white, lightgray);
}}"
}}"
| <div style="padding: 3.5px 0 0 3.5px;">[[File:{{{img|Item_Skill_Pearl.png}}}|link={{{name|}}}]]</div>
| <div style="padding: 3.5px 0 0 3.5px; font-size: 8px;">[[File:{{{img|Sprite_Skill_Pearl.png}}}|link={{{name|}}}]]</div>
| <span style="position: absolute; bottom: 0px; right: 5px; color: white; font-weight: bold; font-size: 14px; text-shadow: 2px 2px 5px black;">{{{num|0}}}</span>
| <span style="position: absolute; bottom: 0px; right: 5px; color: white; font-weight: bold; font-size: 12px; text-shadow: 2px 2px 5px black;">{{{num|}}}</span>
|}
|}
<noinclude>
<noinclude>
'''Template:'''
<pre style="width: 500px;">
{{Item
  | name  =
  | img    =
  | rarity =
  | num    =
}}</pre>
<templatedata>
<templatedata>
{
{
Line 19: Line 27:
"suggested": true,
"suggested": true,
"example": "Item_Icon.png",
"example": "Item_Icon.png",
"default": "Item_Skill_Pearl.png"
"default": "Sprite_Skill_Pearl.png"
},
},
"rarity": {
"rarity": {
"description": "The rarity determines the background color of the icon.",
"description": "The rarity determines the background color of the icon.",
"type": "string",
"type": "string",
"suggested": true,
"default": "background: radial-gradient(circle, white, lightgray);",
"default": "background: radial-gradient(circle, white, lightgray);"
"required": true
},
},
"num": {
"num": {
Line 31: Line 39:
"description": "The quantity of the item is listed here.",
"description": "The quantity of the item is listed here.",
"type": "number",
"type": "number",
"default": "0",
"suggested": true
"suggested": true
},
},
Line 37: Line 44:
"description": "The item's page name is listed here and will direct the user to that page upon click.",
"description": "The item's page name is listed here and will direct the user to that page upon click.",
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"required": true
}
}
},
},
Line 49: Line 56:
}
}
</templatedata>
</templatedata>
'''How to use:'''
<pre>
{{Item
  | name  =
  | img    =
  | rarity =
  | num    =
}}</pre>
</noinclude>
</noinclude>
contributors, delete_pages, Interface administrators
4,719

edits