Template:Base infobox: Difference between revisions
From Halopedia, the Halo wiki
mNo edit summary |
(Updating template) |
||
Line 1: | Line 1: | ||
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; padding:2px; background:{{{BG|#666600}}}; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em; color:{{{color1|inherit}}};" | |||
{{!}}- | |||
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#FFFFFF}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | |||
{{!}}- | |||
{{#if:{{{image|}}}| | |||
{{ | ! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}}; padding: 7px;" colspan="2" {{!}} {{{image|}}} | ||
}} | |||
{{!}}- | |||
{{#if:{{{hidea|}}}|{{!}}-|{{!}}- | |||
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#85855C}}}" {{!}} {{{section1-title|History}}}}} | |||
{{!}}- | |||
{{#if:{{{location|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{location-title|Location}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{location|}}} | {{{location|}}} | ||
{{!}}-}} | |||
{{#if:{{{built|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{built-title|Built}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{built|}}} | {{{built|}}} | ||
{{!}}-}} | |||
{{#if:{{{destroyed|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{destroyed-title|Destroyed}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{destroyed|}}} | {{{destroyed|}}} | ||
{{!}}-}} | |||
{{#if:{{{purpose|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{purpose-title|Purpose}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{purpose|}}} | {{{purpose|}}} | ||
{{!}}-}} | |||
{{#if:{{{usage|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{usage-title|Usage}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{usage|}}} | {{{usage|}}} | ||
{{!}}-}} | |||
{{{ | {{#if:{{{hideb|}}}|{{!}}-|{{!}}- | ||
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#85855C}}}" {{!}} {{{section2-title|Facility information}}}}} | |||
{{ | {{!}}- | ||
{{#if:{{{defense|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{defense-title|Defense}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{defense|}}} | |||
{{!}}-}} | |||
{{#if:{{{armament|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{armament-title|In service}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{armament|}}} | {{{armament|}}} | ||
{{!}}-}} | |||
{{#if:{{{equipment|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{equipment-title|Equipment}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{equipment|}}} | {{{equipment|}}} | ||
{{!}}-}} | |||
{{#if:{{{vehicles|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{vehicles-title|Vehicles}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{vehicles|}}} | {{{vehicles|}}} | ||
{{!}}-}} | |||
{{#if:{{{soldier(s)|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{soldier(s)-title|Known personnel}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{soldier(s)|}}} | {{{soldier(s)|}}} | ||
{{!}}-}} | |||
{{#if:{{{commander(s)|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{commander(s)-title|Known commanders}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{commander(s)|}}} | {{{commander(s)|}}} | ||
{{!}}-}} | |||
{{#if:{{{era(s)|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{era(s)-title|Era(s)}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{era(s)|}}} | {{{era(s)|}}} | ||
{{!}}-}} | |||
{{#if:{{{notable|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{notable-title|Notable}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{notable|}}} | {{{notable|}}} | ||
{{!}}-}} | |||
{{#if:{{{affiliation|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}} | |||
'''{{{affiliation-title|Affiliation}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{affiliation|}}} | {{{affiliation|}}} | ||
{{!}}-}} | |||
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" | | |||
|}<noinclude>{{clear}} | |||
==Usage== | ==Usage== | ||
Copy and paste the following into the article and fill in the fields. | |||
<pre> | <pre> | ||
{{Base Infobox | {{Base Infobox | ||
|base= | |base= | ||
|image= | |image= | ||
|location= | |||
|built= | |built= | ||
|destroyed= | |destroyed= | ||
Line 57: | Line 123: | ||
</pre> | </pre> | ||
[[Category: | ==Custom parameters== | ||
The following allows you to alter the title of the sub-sections: | |||
<pre> | |||
|imageBG= | |||
|nameBG= | |||
|sectionBG= | |||
|fieldBG= | |||
|titleBG= | |||
|color1= | |||
|color2= | |||
|section1-title= | |||
|section2-title= | |||
</pre> | |||
==Display parameters== | |||
The following allows you to hide the section header | |||
*hidea (hides History section header) | |||
*hideb (hides Facility information section header) | |||
<pre> | |||
|hidea= | |||
|hideb= | |||
</pre> | |||
[[Category:Updated infoboxes|{{PAGENAME}}]]</noinclude> |
Revision as of 20:12, January 13, 2015
Base infobox | |
---|---|
History | |
Facility information | |
Usage
Copy and paste the following into the article and fill in the fields.
{{Base Infobox |base= |image= |location= |built= |destroyed= |purpose= |usage= |section(s)= |defense= |armament= |equipment= |vehicles= |soldier(s)= |commander(s)= |era(s)= |notable= |affiliation= }}
Custom parameters
The following allows you to alter the title of the sub-sections:
|imageBG= |nameBG= |sectionBG= |fieldBG= |titleBG= |color1= |color2= |section1-title= |section2-title=
Display parameters
The following allows you to hide the section header
- hidea (hides History section header)
- hideb (hides Facility information section header)
|hidea= |hideb=