Difference between revisions of "Template:Modinfobox"

From Space Engineers Wiki
Jump to: navigation, search
(Created page with "{{Modheader}}{{#if: {{{hide|}}} | | <div style="position:relative;float:right;width:300px;"> <!--header--> <div style="background:#486d82;position:relative;width:300px;"> <div...")
 
Line 19: Line 19:
 
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--Last SE Version-->
 
<!--Last SE Version-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">SE Version:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{version|{{currentversion}}}}}</div></div>
+
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">SE Version:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{Version|{{currentversion}}}}}</div></div>
 
<!--Custom fields-->
 
<!--Custom fields-->
 
{{#if: {{{CustomRow1|}}}|
 
{{#if: {{{CustomRow1|}}}|
Line 51: Line 51:
 
<div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">Forum Thread:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{Forums|[http://www.spaceengineersgame.com Forum thread]}}}</div><!--section divider---><div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>|}}
 
<div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">Forum Thread:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{Forums|[http://www.spaceengineersgame.com Forum thread]}}}</div><!--section divider---><div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>|}}
 
</div></div><!--hide endtag-->}}<includeonly>{{#if: {{{nocat|}}} | |  
 
</div></div><!--hide endtag-->}}<includeonly>{{#if: {{{nocat|}}} | |  
{{#ifeq: {{NAMESPACE}} | Faction | [[Category:Faction List]]
+
{{#ifeq: {{NAMESPACE}} | Mod | [[Category:Mod List]]
 
{{#vardefine:other|true}}
 
{{#vardefine:other|true}}
{{#if: {{#pos:{{lc: {{{Type}}} }} | all }} | [[Category: Faction Type - All]]{{#vardefine:other|false}} | }}
+
{{#if: {{#pos:{{lc: {{{Type}}} }} | block }} | [[Category: Mod Type - Block]]{{#vardefine:other|false}} | }}
{{#if: {{#pos:{{lc: {{{Type}}} }} | commercial }} | [[Category: Faction Type - Commercial]]{{#vardefine:other|false}} | }}
+
{{#if: {{#pos:{{lc: {{{Type}}} }} | conversion}} | [[Category: Mod Type - Conversion]]{{#vardefine:other|false}} | }}
{{#if: {{#pos:{{lc: {{{Type}}} }} | commerce}} | [[Category: Faction Type - Commercial]]{{#vardefine:other|false}} | }}
+
{{#if: {{#pos:{{lc: {{{Type}}} }} | api}} | [[Category: Mod Type - API]]{{#vardefine:other|false}} | }}
{{#if: {{#pos:{{lc: {{{Type}}} }} | pirate }} | [[Category: Faction Type - Pirate]]{{#vardefine:other|false}} | }}
+
{{#if: {{#pos:{{lc: {{{Type}}} }} | server}} | [[Category: Mod Type - Server]]{{#vardefine:other|false}} | }}
{{#if: {{#pos:{{lc: {{{Type}}} }} | industrial }} | [[Category: Faction Type - Industrial]]{{#vardefine:other|false}} | }}
+
{{#ifeq: {{#var:other}} | true | [[Category: Mod Type - Other]] | }}
{{#if: {{#pos:{{lc: {{{Type}}} }} | industry}} | [[Category: Faction Type - Industrial]]{{#vardefine:other|false}} | }}
 
{{#if: {{#pos:{{lc: {{{Type}}} }} | military }} | [[Category: Faction Type - Military]]{{#vardefine:other|false}} | }}
 
{{#if: {{#pos:{{lc: {{{Type}}} }} | civilian }} | [[Category: Faction Type - Civilian]]{{#vardefine:other|false}} | }}
 
{{#if: {{#pos:{{lc: {{{Type}}} }} | science }} | [[Category: Faction Type - Science]]{{#vardefine:other|false}} | }}
 
{{#if: {{#pos:{{lc: {{{Type}}} }} | scientific}} | [[Category: Faction Type - Science]]{{#vardefine:other|false}} | }}
 
{{#if: {{#pos:{{lc: {{{Type}}} }} | mercenary }} | [[Category: Faction Type - Mercenary]]{{#vardefine:other|false}} | }}
 
{{#ifeq: {{#var:other}} | true | [[Category: Faction Type - Other]] | }}
 
 
{{#set:Recruiting={{ucfirst: {{lc: {{{RecruitingStatus|no}}} }} }} }}
 
{{#set:Recruiting={{ucfirst: {{lc: {{{RecruitingStatus|no}}} }} }} }}
{{#set:Factionmembers={{{Members|0}}} }}
+
{{#set:modversion={{{modversion|}}} }}
{{#set:Factionname={{{Name|}}} }}
+
{{#set:version={{{Version|}}} }}
{{#ifeq: {{ucfirst: {{lc: {{{RecruitingStatus|no}}} }} }} | Yes | [[Category:Faction Recruiting]] |}}
+
{{#set:Modname={{{Name|}}} }}
 
|}} }}</includeonly>  
 
|}} }}</includeonly>  
 
<noinclude>
 
<noinclude>
Line 77: Line 70:
 
{{Modinfobox
 
{{Modinfobox
 
| Name = Name of your faction
 
| Name = Name of your faction
| Image = Image to insert underneath your faction name (OPTIONAL) note please keep image width to less than 300px.
+
| Author = primary author of the mod, if more than one separate with a <br />
| Leaders = leaders in your faction
+
| Website = website for your mod, must start with http:// or https:// (OPTIONAL)
| Website = website for your faction, must start with http:// or https:// (OPTIONAL)
+
| Steamgroup = steam group mod page  (OPTIONAL)
| Steamgroup = steam group page  (OPTIONAL)
+
| Forums = Mod's Forum Thread (OPTIONAL)
| Forums = Faction's Forums  (OPTIONAL)
+
| Type = Type of your Mod(Block, API, Server, Conversion ) other values are allowed but  
| Type = Type of your alliance (Valid values, All, Commercial, Pirate, Industrial, Military, Civilian, Science, and Mercenary ) other values are allowed but  
+
will not categorize your mod on the main mods page. More than one type is allowed.  
will not categorize your faction on the main factions page. More than one type is allowed.  
+
| modversion = version number of your mod
| RecruitingStatus = Yes/No
+
| version = SE version your mod was made in
| Members = # number of members
+
| Forumcontact = Forum account name of your faction's contact (does not display, admin use only)
| Forumcontact = Forum account name of your faction's contact
 
  
 
<!--Optional-->
 
<!--Optional-->

Revision as of 08:25, 12 July 2014

Mod Name
 
Author:
Author
 
Mod Type:
Block
 
Mod Version:
v0.0.0
 
 
Forum Thread:
 


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

{{Modinfobox
| Name = Name of your faction
| Author = primary author of the mod, if more than one separate with a <br />
| Website = website for your mod, must start with http:// or https:// (OPTIONAL)
| Steamgroup = steam group mod page  (OPTIONAL)
| Forums = Mod's Forum Thread (OPTIONAL)
| Type = Type of your Mod(Block, API, Server, Conversion ) other values are allowed but 
			will not categorize your mod on the main mods page. More than one type is allowed. 
| modversion = version number of your mod
| version = SE version your mod was made in
| Forumcontact = Forum account name of your faction's contact (does not display, admin use only)

<!--Optional-->
| CustomRow1 = Title of custom row
| CustomData1 = Data of custom row
| CustomRow2 = Title of custom row
| CustomData2 = Data of custom row
| CustomRow3 = Title of custom row
| CustomData3 = Data of custom row
| CustomRow4 = Title of custom row
| CustomData4 = Data of custom row
| CustomRow5 = Title of custom row
| CustomData5 = Data of custom row

| nocat = disable automatic templates and properties. 

| hide = Hide this template and only use the autocategory features, do not include this if you want the template to show
}}

This template also inserts the Factionheader template into your faction page to provide links back to the main factions page as well as diplomacy pages.