Difference between revisions of "Template:Placeable"

From sureai
Jump to: navigation, search
(Show image more prominently)
(Support placeables with variants by making FormID optional)
Line 9: Line 9:
 
| style = "text-align: center; padding: 5px 0; " rowspan = "2" | [[File:{{{image|SureaiLogo2016.png}}}|300x200px|{{{name|{{PAGENAME}}}}}]]
 
| style = "text-align: center; padding: 5px 0; " rowspan = "2" | [[File:{{{image|SureaiLogo2016.png}}}|300x200px|{{{name|{{PAGENAME}}}}}]]
 
| style = "text-align: center; padding: 0 1em; background-color: RGB(73, 73, 59); font-size: 1.5em; font-weight: bold; color: white; " | Blueprint
 
| style = "text-align: center; padding: 0 1em; background-color: RGB(73, 73, 59); font-size: 1.5em; font-weight: bold; color: white; " | Blueprint
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid gray; font-family: monospace; " | {{{blueprint-formid|''(Unknown)''}}}
+
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid gray; {{#if: {{{blueprint-formid|}}} {{{!}}} font-family: monospace; {{{!}}} }}" | {{{blueprint-formid|[[#Variants|Various]]}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid gray; " | {{{blueprint-cost|''(Unknown)''}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid gray; " | {{{blueprint-cost|''(Unknown)''}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid gray; " | {{{blueprint-weight|''(Unknown)''}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid gray; " | {{{blueprint-weight|''(Unknown)''}}}
Line 17: Line 17:
 
|-
 
|-
 
| style = "text-align: center; padding: 0 1em; background-color: RGB(73, 73, 59); font-size: 1.5em; font-weight: bold; color: white; " | Placeable
 
| style = "text-align: center; padding: 0 1em; background-color: RGB(73, 73, 59); font-size: 1.5em; font-weight: bold; color: white; " | Placeable
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid RGB(73, 73,59); font-family: monospace; " | {{{item-formid|''(Unknown)''}}}
+
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid RGB(73, 73,59); {{#if: {{{item-formid|}}} {{{!}}} font-family: monospace; {{{!}}} }}" | {{{item-formid|[[#Variants|Various]]}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid RGB(73, 73,59); " | {{{item-cost|''(Unknown)''}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid RGB(73, 73,59); " | {{{item-cost|''(Unknown)''}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid RGB(73, 73,59); " | {{{item-weight|''(Unknown)''}}}
 
| style = "text-align: center; padding: 0 1em; border-bottom: 1px solid RGB(73, 73,59); " | {{{item-weight|''(Unknown)''}}}

Revision as of 15:29, 26 June 2017

FormID Cost Weight Materials Required
Placeable Blueprint Various (Unknown) (Unknown)

(Unknown)

Placeable Various (Unknown) (Unknown)

Usage

Parameters

All parameters are optional

  • Text Parameters: name, image, blueprint-formid, blueprint-cost, blueprint-weight, blueprint-materials, item-formid, item-cost, item-weight

Examples

{{Placeable
|name = Bag
|image = EN-Placeable-Stone Altar.png
|blueprint-formid = 00ABC123
|blueprint-cost = 100
|blueprint-weight = 0.25
|blueprint-materials = 
* 1x Iron Ingot
* 10x Leather
* 20x Willpower
* 30x Something else
* 40x Spare parts
* 50x Firewood
* 55x Petty Soul Gem
* 99x Your own Soul
* 99x Malachite Ingot
* 99x Quicksilver Ingot
* 99x Stuff
* 99x things
|item-formid = 00D34DFF
|item-cost = 25
|item-weight = 10.5
}}
Bag
Blueprint
Placeable
FormID
00ABC123
00D34DFF
EN-Cost.png
100
25
EN-Weight.png
0.25
10.5
Materials Required
  • 1x Iron Ingot
  • 10x Leather
  • 20x Willpower
  • 30x Something else
  • 40x Spare parts
  • 50x Firewood
  • 55x Petty Soul Gem
  • 99x Your own Soul
  • 99x Malachite Ingot
  • 99x Quicksilver Ingot
  • 99x Stuff
  • 99x things