|
|
| Line 1: |
Line 1: |
| <!--
| | {{Delete}} |
| ==================================================
| |
| TemplateBase/SncaBox
| |
| Base template for warning and message boxes.
| |
| ==================================================
| |
| USAGE:
| |
| {{TemplateBase/SncaBox | |
| | type = ok / info / warning / critical / neutral
| |
| | align = left / center / right (Auto-centers if content2 is used)
| |
| | bgcol = #hexcolor
| |
| | linecol = #hexcolor
| |
| | content = Template asset or image (Left)
| |
| | content2 = Template asset or image (Right)
| |
| | title = Bold Title
| |
| | text = Main body text
| |
| | style = custom css
| |
| | class = custom class
| |
| }} | |
| PARAMETERS:
| |
| - type: Determines preset colors (default is neutral).
| |
| - align: Overrides the text alignment.
| |
| - content: Left-side asset. Defaults to SNCApediaLogo.
| |
| - content2: Right-side asset. Empty by default.
| |
| - title: Bolded title text. Defaults to "Title here."
| |
| - text: Main descriptive text. Defaults to "Text here." Supports param 1.
| |
| ==================================================
| |
| --><templatestyles src="Template:TemplateBase/SncaBox/styles.css"/><!--
| |
| --><div class="snca-box {{#switch: {{lc:{{{type|}}}}} |ok|success=snca-box-ok |info|notice=snca-box-info |warning|issue=snca-box-warning |critical|danger|error=snca-box-critical |#default=snca-box-neutral }} {{{class|}}}" style="{{#if:{{{bgcol|}}}|background-color:{{{bgcol}}};}}{{#if:{{{linecol|}}}|border-left-color:{{{linecol}}};}}{{{style|}}}"><!--
| |
| -->{{#if:{{{content|[[File:SNCApediaLogo.png|40px]]}}}|<div class="snca-box-asset">{{{content|[[File:SNCApediaLogo.png|40px]]}}}</div>}}<!--
| |
| --><div class="snca-box-content {{#switch: {{lc:{{{align|}}}}} |center=snca-box-align-center |right=snca-box-align-right |left=snca-box-align-left |#default={{#if:{{{content2|}}}|snca-box-align-center|snca-box-align-left}} }}"><!--
| |
| --><div class="snca-box-title">{{{title|Title here.}}}</div><!--
| |
| --><div class="snca-box-text">{{{text|{{{1|Text here.}}}}}}</div><!--
| |
| --></div><!--
| |
| -->{{#if:{{{content2|}}}|<div class="snca-box-asset snca-box-asset-right">{{{content2}}}</div>}}<!--
| |
| --></div><noinclude>{{Documentation}}</noinclude>
| |
Template loop detected: Template:Delete