Template:Infobox: Difference between revisions

From Graal Military Wiki
Content added Content deleted
gmc>Default
m (1 revision)
 
ipoly>YoshiAsk
m (Changed title font to Google Sans)
Line 1: Line 1:
{| class="infobox" style="background-color:{{{BackColor|#014810}}}; font-size:89%; width:300px;"
<onlyinclude>{| class="wikia-infobox"

|-
|-
! class="color1" colspan="2" style="font-size:120%; padding:1em;font-family:'Google Sans', 'Roboto', Helvetica, sans-serif" | {{{BoxTitle|No Title}}}
! class="wikia-infobox-header" colspan="2" | {{{title|''Unknown''}}}
{{#if: {{{image|}}}|

{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{PAGENAME:{{{image}}}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
|
}}
|-
|-
| style="width:30%;" |
{{#if: {{{image|}}} |
'''{{{Row1Title|No Title}}}'''
{{!}} class="wikia-infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]
| style="width:70%;" |
| }}
{{{Row1Info|No information}}}

{{#if: {{{Row2Title|}}}|
|-
{{!}}-
{{#if: {{{imagecaption|}}} |
{{!}}
{{!}} class="wikia-infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
'''{{{Row2Title}}}'''
| }}
{{!}}

{{{Row2Info|No information}}}
|-
{{#if: {{{Row3Title|}}}|
! colspan="2" | <div class="wikia-infobox-section-header">Some attributes</div>
{{!}}-

{{!}}
|-
'''{{{Row3Title}}}'''
! First
{{!}}
| {{{first|''Unknown''}}}
{{{Row3Info|No information}}}

{{#if: {{{Row4Title|}}}|
|-
{{!}}-
! Second
{{!}}
| {{{second|''Unknown''}}}
'''{{{Row4Title}}}'''

{{!}}
|-
{{{Row4Info|No information}}}
! Third
| {{{third|''Unknown''}}}
{{#if: {{{Row5Title|}}}|
{{!}}-

{{!}}
|-
'''{{{Row5Title}}}'''
! colspan="2" | <div class="wikia-infobox-section-header">Other attributes</div>
{{!}}

{{{Row5Info|No information}}}
|-
{{#if: {{{fourth|}}} |
{{#if: {{{Row6Title|}}}|
{{!}}-
! Fourth
{{!}} {{{fourth}}}
{{!}}
'''{{{Row6Title}}}'''
| }}
{{!}}

{{{Row6Info|No information}}}
|-
{{#if: {{{fifth|}}} |
{{#if: {{{Row7Title|}}}|
{{!}}-
! Fifth
{{!}} {{{fifth}}}
{{!}}
'''{{{Row7Title}}}'''
| }}
{{!}}

{{{Row7Info|No information}}}
|-
{{#if: {{{sixth|}}} |
{{#if: {{{Row8Title|}}}|
{{!}}-
! Sixth
{{!}} {{{sixth}}}
{{!}}
'''{{{Row8Title}}}'''
| }}
{{!}}

{{{Row8Info|No information}}}
|- style="font-size:0; line-height:0;"
{{#if: {{{Row9Title|}}}|
! style="width:50%; padding:0" |
{{!}}-
! style="width:50%; padding:0" |
{{!}}
'''{{{Row9Title}}}'''
{{!}}
{{{Row9Info|No information}}}
{{#if: {{{Row10Title|}}}|
{{!}}-
{{!}}
'''{{{Row10Title}}}'''
{{!}}
{{{Row10Info|No information}}}
{{#if: {{{Row11Title|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
'''Too many parameters'''
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|}


|}</onlyinclude><noinclude><br style="clear:both;"/>
<noinclude>
{{Documentation}}
{{documentation}}</noinclude>
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</noinclude>

Revision as of 01:15, 10 September 2018

No Title

No Title

No information


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

GMC Infobox documentation (Based on IPoly's Infobox)

Use the infobox by inserting the following to your page:

Syntax

{{infobox
| BackColor = [HEX or RGB Color]
| BoxTitle = ''[Page Title]''
| image = File:[Image]
| imagewidth = 250px
| caption = [Caption]
| Row1Title = [Row 1 Title]
| Row1Info = [Info]
| Row2Title = [Row 2 Title]
| Row2Info = [Info]
| Row3Title = [Row 3 Title]
| Row3Info = [Info]
| Row4Title = [Row 4 Title]
| Row4Info = [Info]
| Row5Title = [Row 5 Title]
| Row5Info = [Info]
| Row6Title = [Row 6 Title]
| Row6Info = [Info]
| Row7Title = [Row 7 Title]
| Row7Info = [Info]
| Row8Title = [Row 8 Title]
| Row8Info = [Info]
| Row9Title = [Row 9 Title]
| Row9Info = [Info]
| Row10Title = [Row 10 Title]
| Row10Info = [Info]
}}

Notes

  • Not putting any value for "BackColor" would make your infobox use the default color.
  • "imagewidth" should be kept at 250px.
  • Up to ten rows only.

Example

{{infobox
| BackColor =
| BoxTitle = ''Nylius Avidius''
| image = File:Nyl2020.jpg
| imagewidth = 250px
| caption = Nyl wearing the Aurean Republic officer uniform, 2020
| Row1Title = Aliases
| Row1Info = Mevarus, Gabrien, Orbitus
| Row2Title = Militaries/orgs founded
| Row2Info = Marseille, Rothstein Corp., Republic (towering), Foundry, etc.
| Row3Title = Join date
| Row3Info = 2013
| Row4Title = Current affiliations
| Row4Info = [[Aurea]], [[Graal Historical Society]], [[Graal Military Wiki|The Wiki Project]], The Royal Institute
}}
Nylius Avidius

Nyl wearing the Aurean Republic officer uniform, 2020

Aliases

Mevarus, Gabrien, Orbitus

Militaries/orgs founded

Marseille, Rothstein Corp., Republic (towering), Foundry, etc.

Join date

2013

Current affiliations

Aurea, Graal Historical Society, The Wiki Project, The Royal Institute