Infobox/Mod – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Infobox float right, ingame tag added)
mNo edit summary
Line 3: Line 3:
|colspan="2" style="text-align: center; background-color: #444444; color: #FFFFFF; padding:3px 5px 4px; font-size: 120%;"| '''{{{Name|{{PAGENAME}}}}}'''
|colspan="2" style="text-align: center; background-color: #444444; color: #FFFFFF; padding:3px 5px 4px; font-size: 120%;"| '''{{{Name|{{PAGENAME}}}}}'''
|-
|-
{{#if: {{{picture|picture}}}|
{{#if: {{{picture|}}}|
{{!}} colspan="2" style="text-align: center; background-color: #FFFFFF; margin-top: 3px;" {{!}} [[Image:{{{picture}}}|{{{size|286px}}}|frameless|center]]}}
{{!}} colspan="2" style="text-align: center; background-color: #FFFFFF; margin-top: 3px;" {{!}} [[Image:{{{picture}}}|{{{size|286px}}}|frameless|center]]}}
|-
|-
{{#if: {{{leader|leader}}}|
{{#if: {{{leader|}}}|
{{!}} colspan="2" style="line-height:120%; text-align:center; font-size:90%; padding: 5px; background-color: #E6E6E6;" {{!}} {{{leader}}} }}
{{!}} colspan="2" style="line-height:120%; text-align:center; font-size:90%; padding: 5px; background-color: #E6E6E6;" {{!}} {{{leader}}} }}
|-
|-
{{#if: {{{2D|2D}}}|
{{#if: {{{2D|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 2D
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 2D
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{2D}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{2D}}} }}
|-
|-
{{#if: {{{3D|3D}}}|
{{#if: {{{3D|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 3D
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 3D
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{3D}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{3D}}} }}
|-
|-
{{#if: {{{script|script}}}|
{{#if: {{{script|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[script]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[script]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{script}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{script}}} }}
|-
|-
{{#if: {{{code|code}}}|
{{#if: {{{code|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[code]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[code]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{code}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{code}}} }}
Line 29: Line 29:
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{island}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{island}}} }}
|-
|-
{{#if: {{{missions|missions}}}|
{{#if: {{{missions|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[missions]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[missions]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{missions}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{missions}}} }}
|-
|-
{{#if: {{{other|other}}}|
{{#if: {{{other|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[other]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[other]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{other}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{other}}} }}
Line 41: Line 41:
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{betatest}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{betatest}}} }}
|-
|-
{{#if: {{{external|external}}}|
{{#if: {{{external|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[external]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[external]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{external}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{external}}} }}
|-
|-
{{#if: {{{released|released}}}|
{{#if: {{{released|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[released]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[released]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{released}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{released}}} }}
Line 53: Line 53:
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{releasedate}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{releasedate}}} }}
|-
|-
{{#if: {{{version|version}}}|
{{#if: {{{version|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[version]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[version]]
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{version}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{version}}} }}
|-
|-
{{#if:{{{ingame|ingame}}} |
{{#if:{{{ingame|}}} |
{{!}} colspan="2" {{!}} [[Image:{{{ingame}}}|rand|center|{{#if:{{{size|}}} | {{{size}}} | 250x200px}}|alternativtext=|{{{description}}}]] <p style="text-align:center; font-size:90%;"> {{{image description}}} </p>
{{!}} colspan="2" {{!}} [[Image:{{{ingame}}}|rand|center|{{#if:{{{size|}}} | {{{size}}} | 250x200px}}|alternativtext=|{{{description}}}]] <p style="text-align:center; font-size:90%;"> {{{image description}}} </p>
}}
}}
|-
|-
{{#if: {{{web|web}}}|
{{#if: {{{web|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} web
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} web
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{web}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{web}}} }}
|-
|-
{{#if: {{{link|link}}}|
{{#if: {{{link|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} link
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} link
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{link}}} }}
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{link}}} }}

Revision as of 18:08, 6 April 2015

Infobox/Mod
island {{{island}}}
releasedate {{{releasedate}}}


Usage

{{Infobox_mod
|picture = 
|leader = 
|2D = 
|3D = 
|script = 
|code = 
|island = 
|missions = 
|other = 
|betatest = 
|external = 
|released =
|releasedate = 
|version = 
|ingame =
|web = 
|link = 
}}
Note:
Links in this template have to be without = symbol (equal). Use {{=}} in their place:
...
...
|web = http://example.org
|link = http://example.org/query.php?foo{{=}}bar&this{{=}}that
}}
Please do not try usage of infobox in this page, do it in you sandbox or in your squad article.