Difference between revisions of "Template:Factioninfobox"

From Space Engineers Wiki
Jump to: navigation, search
(adding custom row support)
Line 20: Line 20:
 
<!--Members-->
 
<!--Members-->
 
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">Members:</div><div style="padding:5px;display:inline-block">{{{Members|0}}}</div></div>
 
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">Members:</div><div style="padding:5px;display:inline-block">{{{Members|0}}}</div></div>
 +
<!--Custom fields-->
 +
{{#if: {{{CustomRow1|}}}|
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 +
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">{{{CustomRow1|}}}:</div><div style="padding:5px;display:inline-block">{{{CustomData1|0}}}</div></div>
 +
|}}{{#if: {{{CustomRow1|}}}|
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 +
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">{{{CustomRow1|}}}:</div><div style="padding:5px;display:inline-block">{{{CustomData1|0}}}</div></div>
 +
|}}{{#if: {{{CustomRow2|}}}|
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 +
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">{{{CustomRow2|}}}:</div><div style="padding:5px;display:inline-block">{{{CustomData2|0}}}</div></div>
 +
|}}{{#if: {{{CustomRow3|}}}|
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 +
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">{{{CustomRow3|}}}:</div><div style="padding:5px;display:inline-block">{{{CustomData3|0}}}</div></div>
 +
|}}{{#if: {{{CustomRow4|}}}|
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 +
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">{{{CustomRow4|}}}:</div><div style="padding:5px;display:inline-block">{{{CustomData4|0}}}</div></div>
 +
|}}{{#if: {{{CustomRow5|}}}|
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 +
<div style="width:290px"><div style="padding:5px;float:left;width:100px;text-align:right;display:inline-block;">{{{CustomRow5|}}}:</div><div style="padding:5px;display:inline-block">{{{CustomData5|0}}}</div></div>
 +
|}}
 
<!--section divider---><div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 
<!--section divider---><div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;position:relative;">&nbsp;</div>
 
{{#if: {{{Website|}}}|
 
{{#if: {{{Website|}}}|

Revision as of 23:10, 23 March 2014

Faction Name
 
Leader:
Leaders
 
Faction Type:
All
 
Recruiting:
No
 
Members:
0
 


Below is a description of the variables used by this template:

{{Factioninfobox
| Name = Name of your faction
| Leaders = leaders in your faction
| Website = website for your faction, must start with http:// or https://
| Type = Type of your alliance
| RecruitingStatus = Yes/No
| Members = # number of members
| Forumcontact = Forum account name of your faction's contact

| hide = Hide this template and only use the autocategory features, do not include this if you want the template to show
| nocat = disable automatic templates and properties. 
}}