Difference between revisions of "Template:Factioninfobox"
From Space Engineers Wiki
Line 52: | Line 52: | ||
</div></div><!--hide endtag-->}}<includeonly>{{#if: {{{nocat|}}} | | | </div></div><!--hide endtag-->}}<includeonly>{{#if: {{{nocat|}}} | | | ||
{{#ifeq: {{NAMESPACE}} | Faction | [[Category:Player Factions]] | {{#ifeq: {{NAMESPACE}} | Faction | [[Category:Player Factions]] | ||
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | all }} | [[Category: Faction Type - All]] | }} | + | {{#vardefine:other|true}} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | commercial }} | [[Category: Faction Type - Commercial]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | all }} | [[Category: Faction Type - All]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | pirate }} | [[Category: Faction Type - Pirate]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | commercial }} | [[Category: Faction Type - Commercial]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | industrial }} | [[Category: Faction Type - Industrial]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | pirate }} | [[Category: Faction Type - Pirate]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | military }} | [[Category: Faction Type - Military]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | industrial }} | [[Category: Faction Type - Industrial]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | civilian }} | [[Category: Faction Type - Civilian]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | military }} | [[Category: Faction Type - Military]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | science }} | [[Category: Faction Type - Science]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | civilian }} | [[Category: Faction Type - Civilian]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | mercenary }} | [[Category: Faction Type - Mercenary]] | }} | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | science }} | [[Category: Faction Type - Science]]{{#vardefine:other|false}} | }} |
+ | {{#if: {{#pos:{{lc: {{{Type}}} }} | mercenary }} | [[Category: Faction Type - Mercenary]]{{#vardefine:other|false}} | }} | ||
+ | {{#ifeq: {{#var:other}} | false | [[Category: Faction Type - Other]] | }} | ||
{{#set:Recruiting={{ucfirst: {{lc: {{{RecruitingStatus|no}}} }} }} }} | {{#set:Recruiting={{ucfirst: {{lc: {{{RecruitingStatus|no}}} }} }} }} | ||
{{#set:Factionmembers={{{Members|0}}} }} | {{#set:Factionmembers={{{Members|0}}} }} |
Revision as of 05:09, 27 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:// (OPTIONAL) | Steamgroup = steam group page (OPTIONAL) | Forums = Faction's Forums (OPTIONAL) | 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 faction on the main factions page. More than one type is allowed. | RecruitingStatus = Yes/No | Members = # number of members | Forumcontact = Forum account name of your faction's contact <!--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 }}