Difference between revisions of "Template:Infobox/Squad"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Updated to use MediaWiki parser functions for speed and efficiency + added note about handling of = symbols in links)
Line 1: Line 1:
 
{| style="width:23em; font-size:90%; text-align:left; border:1px solid #ddd; background-color:#f9f9f9; color:black; margin-bottom:0.5em; margin-left:1em; float:right; clear:right; padding:0;border-collapse: collapse;"
 
{| style="width:23em; font-size:90%; text-align:left; border:1px solid #ddd; background-color:#f9f9f9; color:black; margin-bottom:0.5em; margin-left:1em; float:right; clear:right; padding:0;border-collapse: collapse;"
 
! style="font-size:120%; text-align: center;" | {{{title}}}
 
! style="font-size:120%; text-align: center;" | {{{title}}}
{{if defined call|{{{image|}}}|echo|[[Image:{{{image}}}|center|230px]]}}
+
{{#if:{{{image|}}}|[[Image:{{{image}}}|center|230px]]|}}
 
|-
 
|-
 
! style="text-align: center;background-color: #ddd;" | Members
 
! style="text-align: center;background-color: #ddd;" | Members
Line 41: Line 41:
 
|}
 
|}
  
Picture thumbnail width is 230px. Image must be in form Imagename.jpg, without any tags.
+
<dl>
 
+
<dt>Note:</dt>
 +
<dd>Picture thumbnail width is 230px. Image must be in form Imagename.jpg, without any tags.</dd>
 +
<dt>Note:</dt>
 +
<dd>Links in this template must not use the = (equal) symbol. Use {{Template|{{=}}}} in their place:
 +
<pre>...
 +
...
 +
|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.}}

Revision as of 13:21, 21 April 2014

{{{title}}}
Members
{{{members}}}
Former members
{{{former_members}}}
Successes
{{{successes}}}
Founded
{{{founded}}}
Website
{{{link}}}


Usage

{{Infobox_squad
|title = 
|image = 
|members = 
|former_members = 
|successes = 
|founded = 
|link = 
}}
Note:
Picture thumbnail width is 230px. Image must be in form Imagename.jpg, without any tags.
Note:
Links in this template must not use the = (equal) symbol. Use {{=}} in their place:
...
...
|link = http://example.org/query.php?foo{{=}}bar&this{{=}}that
}}

Template:Important