Difference between revisions of "Template:TopBox"

From UFOpaedia
Jump to navigation Jump to search
m
m (Switch ID to be used for all elements and add classes.)
Line 2: Line 2:
 
--><div class="topBox" id="{{{id|}}}" style="text-align: center; vertical-align: center; background-color: {{{bgcolor|#425e70}}}; color:{{{textColor|white}}}; border: solid; border-color:{{{borderColor|#83c0ce}}}; border-width: 4px;"><!--
 
--><div class="topBox" id="{{{id|}}}" style="text-align: center; vertical-align: center; background-color: {{{bgcolor|#425e70}}}; color:{{{textColor|white}}}; border: solid; border-color:{{{borderColor|#83c0ce}}}; border-width: 4px;"><!--
 
-->{{ #if: {{{image|}}}<!--
 
-->{{ #if: {{{image|}}}<!--
     -->|<span id="topBoxImage" style="display: inline-block; padding: 10px 0px 10px 20px;"><!--
+
     -->|<span class="topBoxImage" id="{{{id|}}}" style="display: inline-block; padding: 10px 0px 10px 20px;"><!--
 
         -->[[File:{{{image|XCOM2 Inv Block.png}}}|100px|{{{caption|No Image}}}]]<!--
 
         -->[[File:{{{image|XCOM2 Inv Block.png}}}|100px|{{{caption|No Image}}}]]<!--
 
         --></span><!--
 
         --></span><!--

Revision as of 05:11, 4 February 2017

default text


[edit · purge]
Template documentation(for the template shown above, sometimes hidden or invisible)
== Skeleton ==
{{TopBox
    | id = 
    | textColor = 
    | bgColor =
    | borderColor =
    | image =
    | caption =
    | text = 
    | altText =
    | categories = 
}}
id : Text to append to CSS id of the parent div of the topBox. This must not contain any spaces or special characters. UseCamelCase starting with a capital letter.
Documentation transcluded from Template:TopBox/doc.