Difference between revisions of "Template:Modinfobox"
From Space Engineers Wiki
(Created page with "{{Modheader}}{{#if: {{{hide|}}} | | <div style="position:relative;float:right;width:300px;"> <!--header--> <div style="background:#486d82;position:relative;width:300px;"> <div...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> | <div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> | ||
<!--Mod Version--> | <!--Mod Version--> | ||
− | <div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Mod Version:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{ | + | <div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Mod Version:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{Modversion|v0.0.0}}}</div></div> |
<!--section divider---> | <!--section divider---> | ||
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> | <div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </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;">{{{ | + | <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 45: | Line 45: | ||
{{#if: {{{Website|}}}| | {{#if: {{{Website|}}}| | ||
<!--Mod Website--> | <!--Mod Website--> | ||
− | <div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">Mod website:</div><div style="padding:2px;display:inline-block;width:176px;position:right;"> | + | <div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">Mod website:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{Website|[http://www.spaceengineersgame.com {{{Name|Mod Name}}}]}}}</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;"> </div>|}}{{#if: {{{Steamgroup|}}}| |
<!--Steam Group--> | <!--Steam Group--> | ||
<div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">Steam Group:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{Steamgroup|http://www.spaceengineersgame.com}}}</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;"> </div>|}}{{#if: {{{Forums|1}}}| | <div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">Steam Group:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{Steamgroup|http://www.spaceengineersgame.com}}}</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;"> </div>|}}{{#if: {{{Forums|1}}}| | ||
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;"> </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;"> </div>|}} | ||
</div></div><!--hide endtag-->}}<includeonly>{{#if: {{{nocat|}}} | | | </div></div><!--hide endtag-->}}<includeonly>{{#if: {{{nocat|}}} | | | ||
− | {{#ifeq: {{NAMESPACE}} | | + | {{#ifeq: {{NAMESPACE}} | Mod | [[Category:Mod List]] |
{{#vardefine:other|true}} | {{#vardefine:other|true}} | ||
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | block }} | [[Category: Mod Type - Block]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | conversion}} | [[Category: Mod Type - Conversion]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | api}} | [[Category: Mod Type - API]]{{#vardefine:other|false}} | }} |
− | {{#if: {{#pos:{{lc: {{{Type}}} }} | | + | {{#if: {{#pos:{{lc: {{{Type}}} }} | server}} | [[Category: Mod Type - Server]]{{#vardefine:other|false}} | }} |
− | {{# | + | {{#ifeq: {{#var:other}} | true | [[Category: Mod Type - Other]] | }} |
− | + | {{#set:modversion={{{Modversion|}}} }} | |
− | {{# | + | {{#set:type={{{Type|}}} }} |
− | {{# | + | {{#set:version={{{Version|}}} }} |
− | + | {{#set:Modname={{{Name|}}} }} | |
− | + | {{#set:Description={{{Description|}}} }} | |
− | |||
− | |||
− | {{#set: | ||
− | {{#set: | ||
− | {{#set: | ||
− | |||
|}} }}</includeonly> | |}} }}</includeonly> | ||
<noinclude> | <noinclude> | ||
Line 76: | Line 70: | ||
<pre> | <pre> | ||
{{Modinfobox | {{Modinfobox | ||
− | | Name = Name of your | + | | Name = Name of your mod |
− | | | + | | Author = primary author of the mod, if more than one separate with a <br /> |
− | | | + | | Description = Short description of your mod for the main mod page |
− | | Website = website for your | + | | Website = website for your mod, must start with http:// or https:// (OPTIONAL) |
− | | Steamgroup = steam group page (OPTIONAL) | + | | Steamgroup = steam group mod page (OPTIONAL) |
− | | Forums = | + | | Forums = Mod's Forum Thread (OPTIONAL) |
− | | Type = Type of your | + | | Type = Type of your Mod(Block, API, Server, Conversion ) other values are allowed but |
− | will not categorize your | + | 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 | + | | Forumcontact = Forum account name of your author (does not display, admin use only) |
<!--Optional--> | <!--Optional--> | ||
Line 105: | Line 99: | ||
}} | }} | ||
− | This template also inserts the | + | This template also inserts the Modheader template into your mod page to provide links back to the main mod page. |
</pre>[[Category:Templates]]</noinclude> | </pre>[[Category:Templates]]</noinclude> |
Latest revision as of 20:15, 17 July 2014
Mod Name
Author:
Author
Mod Type:
Block
Mod Version:
v0.0.0
SE Version:
Forum Thread:
Below is a description of the variables used by this template:
{{Modinfobox | Name = Name of your mod | Author = primary author of the mod, if more than one separate with a <br /> | Description = Short description of your mod for the main mod page | 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 author (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 Modheader template into your mod page to provide links back to the main mod page.