Difference between revisions of "Template:Placeable-Variant"

From sureai
Jump to: navigation, search
(Created page with "<div style = "flex: 1 0 400px; display: flex; flex-flow: column nowrap; margin: 0 5px 5px 0; "> <div style = "order: 0; background-color: RGB(73, 73, 59); border-radius: 5px 5...")
 
m (Make FormIDs monospace only when they're nonempty)
 
(3 intermediate revisions 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; ">
<div 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}}}</div>
+
<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; 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:''' {{{blueprint-formid}}} <br />'''Placeable:''' {{{item-formid}}}</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>
<noinclude>[[Category:Template]]</noinclude>
+
<noinclude>
 +
== Usage ==
 +
Use this template to add a [[Enderal:Placeables|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 ===
 +
<pre>
 +
{{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}}
 +
</pre>
 +
 
 +
{{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}}
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 15:36, 7 July 2017

Variant

SureaiLogo2016.png

Blueprint: Unknown
Placeable: Unknown

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}}

Ceramic Pot (Flat)

EN-Placeable-Vase 1.png

Blueprint: 0013C45C
Placeable: 00140FE5

Ceramic Pot (High)

EN-Placeable-Vase 2.png

Blueprint: 0013C45E
Placeable: 00140FE4