Infobox/Mod – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix description)
m (Some wiki formatting)
 
(4 intermediate revisions by the same user not shown)
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>{| class="wikitable float-right align-left align-center-row-1" style="font-size: 0.95em; line-height: 140%; width: 286px"
|-
! colspan="2" style="background-color: #444; color: #FFF; font-size: 120%; padding: 0.5em" | {{{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|}}}|
{{!}} colspan="2" style="text-align: center; background-color: #FFFFFF; margin-top: 3px;" {{!}} [[Image:{{{picture}}}|{{{size|286px}}}|frameless|center]]}}
{{!}} colspan="2" style="background-color: #FFF; 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
! 2D
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{2D}}} }}
{{!}} {{{2D}}}
}}
|-
|-
{{#if: {{{3D|}}}|
{{#if: {{{3D|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} 3D
! 3D
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{3D}}} }}
{{!}} {{{3D}}}
}}
|-
|-
{{#if: {{{script|}}}|
{{#if: {{{script|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Script
! Script
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{script}}} }}
{{!}} {{{script}}}
}}
|-
|-
{{#if: {{{code|}}}|
{{#if: {{{code|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Code
! Code
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{code}}} }}
{{!}} {{{code}}}
}}
|-
|-
{{#if: {{{island|}}}|
{{#if: {{{island|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Island
! Island
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{island}}} }}
{{!}} {{{island}}}
}}
|-
|-
{{#if: {{{missions|}}}|
{{#if: {{{missions|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Missions
! Missions
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{missions}}} }}
{{!}} {{{missions}}}
}}
|-
|-
{{#if: {{{other|}}}|
{{#if: {{{other|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Other
! Other
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{other}}} }}
{{!}} {{{other}}}
}}
|-
|-
{{#if: {{{betatest|}}}|
{{#if: {{{betatest|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Betatest
! Betatest
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{betatest}}} }}
{{!}} {{{betatest}}}
}}
|-
|-
{{#if: {{{external|}}}|
{{#if: {{{external|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} External
! External
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{external}}} }}
{{!}} {{{external}}}
}}
|-
|-
{{#if: {{{released|}}}|
{{#if: {{{released|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Released
! Released
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{released}}} }}
{{!}} {{{released}}}
}}
|-
|-
{{#if: {{{releasedate|}}}|
{{#if: {{{releasedate|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Release date
! Release date
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{releasedate}}} }}
{{!}} {{{releasedate}}}
}}
|-
|-
{{#if: {{{version|}}}|
{{#if: {{{version|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Version
! Version
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{version}}} }}
{{!}} {{{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="font-size: 0.9em; text-align: center" {{!}}
[[File:{{{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
! Web
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{web}}} }}
{{!}} {{{web}}}
}}
|-
|-
{{#if: {{{link|}}}|
{{#if: {{{link|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} link
! Link
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{link}}} }}
{{!}} {{{link}}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
== Usage ==
== Usage ==
{| style="background: transparent; border: none;"
See below.
|<pre>
 
{{Infobox_mod
{|
|picture =  
|- style="background-color: #EEE"
|leader =  
! Code
|2D =  
! Result
|3D =  
|- style="vertical-align: top"
|script =  
| style="padding: 1em" | <pre>{{Infobox/Mod
|code =  
|picture= Arma 3 logo black.png
|island =  
|leader= Me
|missions =  
|2D= A guy
|other =  
|3D= Another guy
|betatest =  
|script= Script guy
|external =  
|code= Code guy
|released =
|island= terrain guy
|releasedate =  
|missions= mission guy
|version =  
|other= that guy
|ingame =
|betatest= no
|description=
|external= maybe
|web =  
|released= yes
|link =  
|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?equalSignTest=true
}}</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?equalSignTest=true
}}
}}
</pre>
 
|}
|}
{{Feature|informative|Links in this template have to be without {{=}} symbol (equal). Use {{Template|{{=}}}} in their place:
<pre>...
...
|web = http://example.org
|link = http://example.org/query.php?foo{{=}}bar&this{{=}}that
}}</pre>}}


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

Latest revision as of 19:04, 7 April 2024

Usage

See below.

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?equalSignTest=true
}}
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?equalSignTest=true