Infobox/Mod – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Updated to use MediaWiki parser functions for speed and efficiency + added extra note about handling of = symbols in links)
Line 1: Line 1:
{| cellpadding="3" style="width:23em; font-size:0.9em; text-align:left; border: 1px solid #aaa;; background-color:#f9f9f9; margin:0 0 0.5em 1em; float:right; clear:right; padding:0;border-collapse: collapse;"
{| cellpadding="3" style="width:23em; font-size:0.9em; text-align:left; border: 1px solid #aaa;; background-color:#f9f9f9; margin:0 0 0.5em 1em; float:right; clear:right; padding:0;border-collapse: collapse;"
! colspan="2" style="font-size:1.1em; text-align: center; background-color: #ccccff;border: 1px solid #aaa;" | ''{{{title}}}''
! colspan="2" style="font-size:1.1em; text-align: center; background-color: #ccccff;border: 1px solid #aaa;" | ''{{{title}}}''
{{if defined call|{{{leader|}}}| Infobox mod line | Leader | {{{leader}}} | #ccccff }}
{{#if:{{{leader|}}}| {{Infobox mod line | Leader | {{{leader}}} | #ccccff }}|}}
{{if defined call|{{{3D|}}}| Infobox mod line | 3D Arts | {{{3D}}} | #ccccff }}
{{#if:{{{3D|}}}| {{Infobox mod line | 3D Arts | {{{3D}}} | #ccccff }}|}}
{{if defined call|{{{2D|}}}| Infobox mod line | 2D Arts | {{{2D}}} | #ccccff }}
{{#if:{{{2D|}}}|{{Infobox mod line | 2D Arts | {{{2D}}} | #ccccff }}|}}
{{if defined call|{{{script|}}}| Infobox mod line | Scripting | {{{script}}} | #ccccff }}
{{#if:{{{script|}}}| {{Infobox mod line | Scripting | {{{script}}} | #ccccff }}|}}
{{if defined call|{{{code|}}}| Infobox mod line | Coding | {{{code}}} | #ccccff }}
{{#if:{{{code|}}}| {{Infobox mod line | Coding | {{{code}}} | #ccccff }}|}}
{{if defined call|{{{research|}}}| Infobox mod line | Research worker(s) | {{{external}}} | #ccccff }}
{{#if:{{{research|}}}| {{Infobox mod line | Research worker(s) | {{{external}}} | #ccccff }}|}}
{{if defined call|{{{island|}}}| Infobox mod line | Island Design | {{{island}}} | #ccccff }}
{{#if:{{{island|}}}| {{Infobox mod line | Island Design | {{{island}}} | #ccccff }}|}}
{{if defined call|{{{missions|}}}| Infobox mod line | Mission Design | {{{missions}}} | #ccccff }}
{{#if:{{{missions|}}}| {{Infobox mod line | Mission Design | {{{missions}}} | #ccccff }}|}}
{{if defined call|{{{other|}}}| Infobox mod line | Other workers | {{{other}}} | #ccccff }}
{{#if:{{{other|}}}| {{Infobox mod line | Other workers | {{{other}}} | #ccccff }}|}}
{{if defined call|{{{betatest|}}}| Infobox mod line | Betatesting | {{{betatest}}} | #ccccff }}
{{#if:{{{betatest|}}}| {{Infobox mod line | Betatesting | {{{betatest}}} | #ccccff }}|}}
{{if defined call|{{{external|}}}| Infobox mod line | External worker(s) | {{{external}}} | #ccccff }}
{{#if:{{{external|}}}| {{Infobox mod line | External worker(s) | {{{external}}} | #ccccff }}|}}
{{Infobox mod line | Released on | {{{released|N/A}}} | #ddddff }}
{{Infobox mod line | Released on | {{{released|N/A}}} | #ddddff }}
{{if defined call|{{{releasedate|}}}| Infobox mod line | Next release date| {{{releasedate}}} | #ddddff }}
{{#if:{{{releasedate|}}}| {{Infobox mod line | Next release date| {{{releasedate}}} | #ddddff }}|}}
{{if defined call|{{{version|}}}| Infobox mod line | Latest Version| {{{version}}} | #ddddff }}
{{#if:{{{version|}}}| {{Infobox mod line | Latest Version| {{{version}}} | #ddddff }}|}}
{{if defined call|{{{web|}}}| Infobox mod line | Website | {{{web}}} | #ddddff }}
{{#if:{{{web|}}}| {{Infobox mod line | Website | {{{web}}} | #ddddff }}|}}
{{if defined call|{{{link|}}}| Infobox mod line | Download | {{{link}}} | #ddddff }}
{{#if:{{{link|}}}| {{Infobox mod line | Download | {{{link}}} | #ddddff }}|}}
|}<noinclude>
|}<noinclude>


Line 42: Line 42:
</pre>
</pre>
|}
|}
'''Note:''' ''Links in this template have to be without = symbol (equal).''
 
<dl>
<dt>Note:</dt>
<dd>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></dd>
</dl>


{{Important|Please do not try usage of infobox in this page, do it in you sandbox or in your squad article.}}
{{Important|Please do not try usage of infobox in this page, do it in you sandbox or in your squad article.}}
[[Category:Templates|INFOBOX MOD]]
[[Category:Templates|INFOBOX MOD]]
</noinclude>
</noinclude>

Revision as of 13:20, 21 April 2014

{{{title}}}






Template:Infobox mod line



Usage

{{Infobox_mod
|title = 
|leader = 
|2D = 
|3D = 
|script = 
|code = 
|island = 
|missions = 
|other = 
|betatest = 
|external = 
|released =
|releasedate = 
|version = 
|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.