Template:Infobox Batallion: Difference between revisions

From April Knights Wiki
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image"> <caption source="caption"/> </image> <group> <header>Information</header> <data source="founded"> <label>Founded</label> </data> <data source="commander"> <label>Commander</label> </data> <data source="members"> <label>Members</label> </data> </group> <group> <header>Moto</header> <data source="moto"..."
 
mNo edit summary
Line 1: Line 1:
<infobox>
{|class="infobox" cellspacing="2" style= "font-size: 88%; width: 300px;-moz-border-radius:7px; border-radius:7px; {{Border-radius|2ex 2ex 2ex 2ex}}; line-height: 1.5em; text-align: left; float: right; border:2px solid #000000;"
  <title source="title1">
|colspan="2" style="{{Radius|4px|4px|0px|0px}}; font-weight: bold; font-size: 125%; background-color: {{{box color|#bbbbbb}}}; color: {{{font color|#000000}}}; text-align:center; padding:0.5em;" colspan="2" |{{{name|{{PAGENAME}}}}}
    <default>{{PAGENAME}}</default>
|-
  </title>
{{#if:{{{image<includeonly>|</includeonly>}}} |
  <image source="image">
{{!}} colspan="2" style="text-align:center;" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br />''{{{caption}}}''}}
    <caption source="caption"/>
{{!}}-
  </image>
}}
  <group>
|-|-
    <header>Information</header>
{{#if:{{{founded<includeonly>|</includeonly>}}} |
    <data source="founded">
{{!}}style="color:#000000; vertical-align:top;"{{!}}'''Founded'''
      <label>Founded</label>
{{!}}{{{founded}}}
    </data>
{{!}}-
    <data source="commander">
}}
      <label>Commander</label>
{{#if:{{{commander<includeonly>|</includeonly>}}} |
    </data>
{{!}}style="color:#000000; vertical-align:top;"{{!}}'''Commander'''
    <data source="members">
{{!}}{{{commander}}}
      <label>Members</label>
{{!}}-
    </data>
}}
  </group>
}}
  <group>
{{#if:{{{members<includeonly>|</includeonly>}}} |
    <header>Moto</header>
{{!}}style="color:#000000; vertical-align:top;"{{!}}'''Members'''
    <data source="moto">
{{!}}{{{members}}}
    </data>
{{!}}-
  </group>
}}
</infobox>


<noinclude><br style="clear:both;"/>{{documentation}}</noinclude><noinclude>[[Category:Templates]]</noinclude><noinclude>[[Category:Templates/Infobox]]</noinclude>
! style="background-color: {{{box color|#bbbbbb}}}; color: {{{font color|#000000}}};" align="center" colspan="2"|Moto
|-
{{#if:{{{sex<includeonly>moto</includeonly>}}} |
{{!}}{{{moto}}}
{{!}}-
}}
|-
|}<noinclude><br style="clear:both;" />
{{documentation}}</noinclude>
<noinclude>[[Category:Templates]][[Category:Templates/Infoboxes]]</noinclude>

Revision as of 17:21, 3 April 2025

{{#if:{{{image}}} | }} {{#if:{{{founded}}} | }} {{#if:{{{commander}}} | }} }} {{#if:{{{members}}} | }} {{#if:{{{sex}}} | }}
colspan="2" style="Template:Radius; font-weight: bold; font-size: 125%; background-color: #bbbbbb; color: #000000; text-align:center; padding:0.5em;" colspan="2" |Infobox Batallion
{{{image}}}{{#if:|
{{{caption}}}}}
Founded {{{founded}}}
Commander {{{commander}}}
Members {{{members}}}
Moto
{{{moto}}}


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_Batallion/doc to edit this documentation. (How does this work?)

Description

This template is used to insert an infobox onto the battalion pages

Syntax

{{Infobox Batallion
 | image        = 
 | caption      = 
 | founded      =
 | commander    = 
 | first officer=
 | moto         =
}}

Example

Note: The title of the infobox will always be the title of the page

{{#if:image:RedguardNew.png | }} {{#if:April 2, 2015 | }} {{#if:/u/Gryph667 | }} }} {{#if: | }} {{#if:{{{sexmoto}}} | }}
colspan="2" style="Template:Radius; font-weight: bold; font-size: 125%; background-color: #bbbbbb; color: #000000; text-align:center; padding:0.5em;" colspan="2" |Infobox Batallion
image:RedguardNew.png{{#if:Flag of the Redguard|
Flag of the Redguard}}
Founded April 2, 2015
Commander /u/Gryph667
Members {{{members}}}
Moto
"Redguard Provides, Redguard Prevails"


{{Infobox Batallion
 | caption      = Flag of the Redguard
 | image        = image:RedguardNew.png
 | founded      = April 2, 2015
 | commander    = /u/Gryph667
 | first officer= /u/xxxSinxxx
 | moto         = "Redguard Provides, Redguard Prevails"
}}