Difference between revisions of "Template:Placeable-Variant"
From sureai
(Remove fixed height, add usage notes) |
m (Make FormIDs monospace only when they're nonempty) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style = "flex: 1 0 400px; display: flex; flex-flow: column nowrap; margin: 0 5px 5px 0; "> | <div style = "flex: 1 0 400px; display: flex; flex-flow: column nowrap; margin: 0 5px 5px 0; "> | ||
− | <h3 style = "order: 0; background-color: RGB(73, 73, 59); border-radius: 5px 5px 0 0; padding: 10px; font-weight: bold; color: white; font-size: 1.5em; text-align: center; ">{{{name|Variant}}}</h3> | + | <h3 style = "order: 0; background-color: RGB(73, 73, 59); border-radius: 5px 5px 0 0; padding: 10px; margin: 0; font-weight: bold; color: white; font-size: 1.5em; text-align: center; ">{{{name|Variant}}}</h3> |
<div style = "order: 1; flex: 1; border-radius: 0 0 5px 5px; border: 1px solid gray; border-top-width: 0; display: flex; flex-flow: row nowrap; align-items: center; justify-content: center; padding: 5px; "> | <div style = "order: 1; flex: 1; border-radius: 0 0 5px 5px; border: 1px solid gray; border-top-width: 0; display: flex; flex-flow: row nowrap; align-items: center; justify-content: center; padding: 5px; "> | ||
[[File:{{{image|SureaiLogo2016.png}}}|200x200px]] | [[File:{{{image|SureaiLogo2016.png}}}|200x200px]] | ||
− | <p style = "margin-left: 1.5em; >'''Blueprint:''' <span style = "font-family: monospace; ">{{{blueprint-formid|Unknown}}}</span> <br />'''Placeable:''' <span style = "font-family: monospace; ">{{{item-formid|Unknown}}}</span></p> | + | <p style = "margin-left: 1.5em; >'''Blueprint:''' <span style = "{{#if: {{{blueprint-formid|}}}|font-family: monospace;|}}">{{{blueprint-formid|Unknown}}}</span> <br />'''Placeable:''' <span style = "{{#if: {{{item-formid|}}}|font-family: monospace;|}}">{{{item-formid|Unknown}}}</span></p> |
</div> | </div> | ||
</div> | </div> |
Latest revision as of 15:36, 7 July 2017
Contents
Variant
Usage
Use this template to add a Placeable Variant inside a container started with Template:Placeable-Variants Container-Start.
Parameters
All paremeters are optional.
- Text Parameters: name, image, blueprint-formid, item-formid.
Examples
{{Placeable-Variants Container-Start}} {{Placeable-Variant |name = Ceramic Pot (Flat) |image = EN-Placeable-Vase 1.png |blueprint-formid = 0013C45C |item-formid = 00140FE5 }} {{Placeable-Variant |name = Ceramic Pot (High) |image = EN-Placeable-Vase 2.png |blueprint-formid = 0013C45E |item-formid = 00140FE4 }} {{Placeable-Variants Container-Start}}