Infobox/Mod – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Infobox[_ ]mod" to "Infobox/Mod")
m (Standardise template (to be deleted one day?))
Line 1: Line 1:
<includeonly>{| style="width:286px; border: 1px solid #AAAAAA; line-height:140%; border-spacing:0; background-color:white; font-size: 95%; float:right;"
<includeonly>{| style="border: 1px solid #AAA; border-spacing: 0; float: right; font-size: 95%; line-height: 140%; background-color: #FFF; width:286px"
|-
|-
|colspan="2" style="text-align: center; background-color: #444444; color: #FFFFFF; padding:3px 5px 4px; font-size: 120%;"| '''{{{Name|{{PAGENAME}}}}}'''
| colspan="2" style="background-color: #444; color: #FFF; font-size: 120%; padding: 0.5em; text-align: center" | '''{{{Name|{{PAGENAME}}}}}'''
|-
|-
{{#if: {{{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|}}}|
{{#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: #EEE" {{!}}
{{{leader}}}
}}
|-
|-
{{#if: {{{2D|}}}|
{{#if: {{{2D|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 2D
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} 2D
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{2D}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{2D}}}
}}
|-
|-
{{#if: {{{3D|}}}|
{{#if: {{{3D|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 3D
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} 3D
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{3D}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{3D}}}
}}
|-
|-
{{#if: {{{script|}}}|
{{#if: {{{script|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Script
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Script
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{script}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{script}}}
}}
|-
|-
{{#if: {{{code|}}}|
{{#if: {{{code|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Code
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Code
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{code}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{code}}}
}}
|-
|-
{{#if: {{{island|}}}|
{{#if: {{{island|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Island
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Island
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{island}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{island}}}
}}
|-
|-
{{#if: {{{missions|}}}|
{{#if: {{{missions|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Missions
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Missions
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{missions}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{missions}}}
}}
|-
|-
{{#if: {{{other|}}}|
{{#if: {{{other|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Other
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Other
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{other}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{other}}}
}}
|-
|-
{{#if: {{{betatest|}}}|
{{#if: {{{betatest|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Betatest
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Betatest
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{betatest}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{betatest}}}
}}
|-
|-
{{#if: {{{external|}}}|
{{#if: {{{external|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} External
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} External
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{external}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{external}}}
}}
|-
|-
{{#if: {{{released|}}}|
{{#if: {{{released|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Released
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Released
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{released}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{released}}}
}}
|-
|-
{{#if: {{{releasedate|}}}|
{{#if: {{{releasedate|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Release date
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Release date
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{releasedate}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{releasedate}}}
}}
|-
|-
{{#if: {{{version|}}}|
{{#if: {{{version|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Version
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Version
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{version}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{version}}}
}}
|-
|-
{{#if:{{{ingame|}}} |
{{#if:{{{ingame|}}} |
{{!}} colspan="2" {{!}} [[Image:{{{ingame}}}|rand|center|{{#if:{{{size|}}} | {{{size}}} | 250x200px}}|alternativtext=|{{{description}}}]] <p style="text-align:center; font-size:90%;"> {{{description}}} </p>
{{!}} colspan="2" style="border-top: 1px solid #AAA; font-size: .9em; text-align:center" {{!}}
[[Image:{{{ingame}}}|rand|center|{{#if:{{{size|}}} | {{{size}}} | 250x200px}}|alternativetext=|{{{description}}}]] {{{description}}}
}}
}}
|-
|-
{{#if: {{{web|}}}|
{{#if: {{{web|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} web
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Web
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{web}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{web}}}
}}
|-
|-
{{#if: {{{link|}}}|
{{#if: {{{link|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} link
{{!}} style="background-color: #EEE; border-top: 1px solid #AAA; padding: 0.5em" {{!}} Link
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{link}}} }}
{{!}} style="background-color: #F6F6F6; border-top: 1px solid #AAA; padding: 0.5em" {{!}} {{{link}}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
== Usage ==
== Usage ==
{| style="background: transparent; border: none;"
See below.
|<pre>
{{Infobox/Mod
|picture =
|leader =
|2D =
|3D =
|script =
|code =
|island =
|missions =
|other =
|betatest =
|external =
|released =
|releasedate =
|version =
|ingame =
|description=
|web =
|link =
}}
</pre>
|}
{{Feature|informative|Links in this template have to be without {{=}} symbol (equal). Use {{Template|{{=}}}} in their place:
{{Feature|informative|Links in this template have to be without {{=}} symbol (equal). Use {{Template|{{=}}}} in their place:
<pre>...
<pre>...
Line 100: Line 96:
|link = http://example.org/query.php?foo{{=}}bar&this{{=}}that
|link = http://example.org/query.php?foo{{=}}bar&this{{=}}that
}}</pre>}}
}}</pre>}}
{|
|- style="background-color: #EEE"
! Code
! Result
|-
| style="padding: 1em" | <pre>{{Infobox/Mod
|picture = Arma 3 logo black.png
|leader = Me
|2D = A guy
|3D = Another guy
|script = Script guy
|code = Code guy
|island = terrain guy
|missions = mission guy
|other = that guy
|betatest = no
|external = maybe
|released = yes
|releasedate = 2001-06-22
|version = 1.00
|ingame = arma3 zeus logo.png
|description = Some description
|web = https://www.arma3.com
|link = https://www.arma3.com
}}</pre>
| style="padding: 1em" | {{Infobox/Mod
|picture = Arma 3 logo black.png
|leader = Me
|2D = A guy
|3D = Another guy
|script = Script guy
|code = Code guy
|island = terrain guy
|missions = mission guy
|other = that guy
|betatest = no
|external = maybe
|released = yes
|releasedate = 2001-06-22
|version = 1.00
|ingame = arma3 zeus logo.png
|description = Some description
|web = https://www.arma3.com
|link = https://www.arma3.com
}}
|}


[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 12:06, 2 June 2021

Usage

See below.

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
}}
Code Result
{{Infobox/Mod
|picture = Arma 3 logo black.png
|leader = Me
|2D = A guy
|3D = Another guy
|script = Script guy
|code = Code guy
|island = terrain guy
|missions = mission guy
|other = that guy
|betatest = no
|external = maybe
|released = yes
|releasedate = 2001-06-22
|version = 1.00
|ingame = arma3 zeus logo.png
|description = Some description
|web = https://www.arma3.com
|link = https://www.arma3.com
}}
Infobox/Mod
Arma 3 logo black.png

Me

2D A guy
3D Another guy
Script Script guy
Code Code guy
Island terrain guy
Missions mission guy
Other that guy
Betatest no
External maybe
Released yes
Release date 2001-06-22
Version 1.00
Some description
Some description
Web https://www.arma3.com
Link https://www.arma3.com