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"..."
 
No edit summary
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox>
{|cellspacing = "3" style = "font-size: 100%; width: 300px; line-height: 1.5em; text-align: left; float: right; border:1.5px solid #000000"
   <title source="title1">
   |colspan="2" style="font-weight: bold; font-size: 125%; background-color: {{{box color|#cccccc}}}; color: {{{font color|#000000}}}; text-align:center; padding:0.5em" colspan="2" |{{{name|{{PAGENAME}}}}}
    <default>{{PAGENAME}}</default>
   |-
   </title>
    {{!}} colspan="2" style="text-align:center;" {{!}}[[{{{image}}}|300px]]<br />''{{{caption}}}''
  <image source="image">
   |-
    <caption source="caption"/>
     {{!}} style="color:#000000; vertical-align:top;"{{!}}'''Founded'''
  </image>
     |{{{founded}}}
   <group>
  |-
     <header>Information</header>
     {{!}}style="color:#000000; vertical-align:top;"{{!}}'''Commander'''
    <data source="founded">
     |{{{commander}}}
      <label>Founded</label>
  |-
     </data>
     {{!}}style="color:#000000; vertical-align:top;"{{!}}'''First Officer'''
     <data source="commander">
     |{{{first officer}}}
      <label>Commander</label>
   |-
     </data>
!style="background-color: {{{box color|#cccccc}}}; color: {{{font color|#000000}}}; padding:0.25em" align="center" colspan="2"|Motto
     <data source="members">
   |-
      <label>Members</label>
     {{!}}style= "text-align: center; padding:0.5em" colspan="2"|''{{{motto}}}''
     </data>
|}<noinclude><br style="clear:both;" />
   </group>
{{documentation}}
   <group>
[[Category:Templates]][[Category:Templates/Infoboxes]]</noinclude>
     <header>Moto</header>
    <data source="moto">
    </data>
  </group>
</infobox>
 
<noinclude><br style="clear:both;"/>{{documentation}}</noinclude><noinclude>[[Category:Templates]]</noinclude><noinclude>[[Category:Templates/Infobox]]</noinclude>

Latest revision as of 22:28, 3 April 2025

Infobox Batallion
[[{{{image}}}|300px]]
{{{caption}}}
Founded {{{founded}}}
Commander {{{commander}}}
First Officer {{{first officer}}}
Motto
{{{motto}}}


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

Infobox Batallion

Flag of the Redguard
Founded April 2, 2015
Commander /u/Gryph667
First Officer /u/xxxSinxxx
Motto
{{{motto}}}
{{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"
}}