Difference between revisions of "Template:Infobox custom"

From RimWorld Wiki
Jump to navigation Jump to search
(Adjusted transclusion tags.)
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="infobox {{#if:{{{1|}}}|{{#switch:{{{1|}}}|<!--
+
<includeonly><div class="infobox {{#if:{{{1|}}}|{{#switch:{{{1|}}}|<!--
 
--> scenario = c_11 |<!--
 
--> scenario = c_11 |<!--
 
--> cscenario = c_02 |<!--
 
--> cscenario = c_02 |<!--
Line 6: Line 6:
 
-->}}}} {{#if:{{{2|}}}|{{{2}}}}}">
 
-->}}}} {{#if:{{{2|}}}|{{{2}}}}}">
 
<p class="heading" style="margin:-1px -1px 0px!important;">{{{name|{{BASEPAGENAME}}}}}</p>
 
<p class="heading" style="margin:-1px -1px 0px!important;">{{{name|{{BASEPAGENAME}}}}}</p>
{{#if:{{{state|}}}|<p class="custom" style="background-color:{{#switch:{{{state|}}}|released=#00C000|testing=#FFC000|outdated=#FF1F00|suspended=#00E3FF}};">{{uc:{{{state|state}}}}}</p>}}
+
{{#if:{{{state|}}}|<p class="custom" style="background-color:{{#switch:{{{state|}}}|released=#00CC00|testing=#FFC000|outdated=#FF1F00|suspended=#00E3FF}};">{{uc:{{{state|state}}}}}</p>}}
 
<div class="text-center plainlinks" style="display:block; padding: 0.5em;">
 
<div class="text-center plainlinks" style="display:block; padding: 0.5em;">
{{#switch: {{#if:{{{picture}}}|0|0|1}}{{#if:{{{forum|}}}|1|0|0}}{{#if:{{{link|}}}|1|0|0}}
+
{{#switch: {{#if:{{{forum|}}}|1|0}}{{#if:{{{logo|}}}|1|0}}
| 110 =  
+
| 11 =  
[[File:LudeonLogoSquare.png|64px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
+
[[File:{{{logo|}}}|120px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
[[File:Icon_dl.png|64px|link={{{link|}}}|Download link]]
 
 
</div>
 
</div>
 
<div class="wrapper">
 
<div class="wrapper">
 
----
 
----
| 100 =  
+
| 10 =  
[[File:LudeonLogoSquare.png|64px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
+
[[File:LudeonLogoSquare.png|120px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
 
</div>
 
</div>
 
<div class="wrapper">
 
<div class="wrapper">
 
----
 
----
| 010 =  
+
| 01 =  
[[File:Icon_dl.png|64px|link={{{link|}}}|Download link]]
+
[[File:{{{logo|}}}|120px]]
 
</div>
 
</div>
 
<div class="wrapper">
 
<div class="wrapper">
 
----
 
----
| 111 =
+
| 00 =  
[[File:{{picture}}|64px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
 
[[File:Icon_dl.png|64px|link={{{link|}}}|Download link]]
 
</div>
 
<div class="wrapper">
 
----
 
| 101 =
 
[[File:{{picture}}|64px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
 
</div>
 
<div class="wrapper">
 
----
 
| 011 =
 
[[File:{{picture}}|64px]]
 
[[File:Icon_dl.png|64px|link={{{link|}}}|Download link]]
 
</div>
 
<div class="wrapper">
 
----
 
| 000 =  
 
 
</div>
 
</div>
 
<div class="wrapper">
 
<div class="wrapper">
Line 71: Line 53:
 
<br style="clear: both; height: 0px;" />
 
<br style="clear: both; height: 0px;" />
 
</dl></div></div>
 
</dl></div></div>
<includeonly>{{#switch: {{{1|}}}
+
{{#switch: {{{1|}}}
 
| scenario = [[Category:Scenario]]
 
| scenario = [[Category:Scenario]]
 
| cscenario = [[Category:Custom scenario]]
 
| cscenario = [[Category:Custom scenario]]
| mod = [[Category:Modifications]]
+
| mod = [[Category:Mods]]
 
| tool = [[Category:Tools]]
 
| tool = [[Category:Tools]]
}}</includeonly>
+
}}</includeonly><noinclude>
<noinclude>
+
{{documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->
{{{{BASEPAGENAME}}/doc}}
 
[[Category:Infobox templates|Custom]]
 
</noinclude>
 

Latest revision as of 03:07, 4 March 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

{{infobox custom|mod/tool
|name         = displayed name
|state        = released/outdated/suspended
|logo         = adds a logo of 120px instead of the ludeon logo
|forum        = number of forum thread (e.g 33.0 to //ludeon.com/forums/index.php?topic=33.0)
|author       = author name or team
|version      = version of mod
|comp         = which version of game is compatible with, leave blank for current
|firstrelease = the date that the mod was released for the first time.
|size         = supported/used map size Place this: | :between numbers
|ai           = running ai storyteller, leave blank for turned off (in mod/tool is not displaying by default)
}}

Example[edit]

My MOD

RELEASED


Author
MOD Team Delta
Version
v 0.1.2
First Release
20.05.14
Compatibility
Alpha 8
Map size
400 ˣ 400