Infobox/Mod – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Infobox float right, ingame tag added)
Line 1: Line 1:
<includeonly>{| class="float-right toptextcells" style="width:286px; border: 1px solid #AAAAAA; line-height:140%; border-spacing:0; background-color:white; font-size: 95%;"
{| style="width:286px; border: 1px solid #AAAAAA; line-height:140%; border-spacing:0; background-color:white; font-size: 95%; float:right;"
|-
|-
|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|}}}|
{{#if: {{{picture|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|}}}|
{{#if: {{{leader|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|}}}|
{{#if: {{{2D|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|}}}|
{{#if: {{{3D|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|}}}|
{{#if: {{{script|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|}}}|
{{#if: {{{code|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}}} }}
|-
|-
{{#if: {{{island|}}}|
{{#if: {{{island|island}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[island]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[island]]
{{!}} 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|}}}|
{{#if: {{{missions|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|}}}|
{{#if: {{{other|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|}}}|
{{#if: {{{external|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|}}}|
{{#if: {{{released|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}}} }}
|-
|-
{{#if: {{{releasedate|}}}|
{{#if: {{{releasedate|releasedate}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[releasedate]]
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} [[releasedate]]
{{!}} 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|}}}|
{{#if: {{{version|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: {{{version|}}}|
{{#if:{{{ingame|ingame}}} |
{{!}} 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}}}|
{{!}} 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|}}}|
{{#if: {{{link|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}}} }}
|}</includeonly>
|}


<noinclude>
<noinclude>
Line 85: Line 89:
|releasedate =  
|releasedate =  
|version =  
|version =  
|ingame =
|web =  
|web =  
|link =  
|link =  

Revision as of 18:07, 6 April 2015

Infobox/Mod
[[Image:{{{picture}}}|286px|frameless|center]]
{{{leader}}}
2D {{{2D}}}
3D {{{3D}}}
script {{{script}}}
code {{{code}}}
island {{{island}}}
missions {{{missions}}}
other {{{other}}}
external {{{external}}}
released {{{released}}}
releasedate {{{releasedate}}}
version {{{version}}}
[[Image:{{{ingame}}}|rand|center|250x200px|alternativtext=|{{{description}}}]]

{{{image description}}}

web {{{web}}}
link {{{link}}}


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.