Difference between revisions of "Template:Infobox custom"

From RimWorld Wiki
Jump to navigation Jump to search
m
(Adjusted transclusion tags.)
 
(50 intermediate revisions by 6 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 |<!--
 
--> mod = c_10 |<!--
 
--> mod = c_10 |<!--
 
--> tool = c_12 |<!--
 
--> tool = c_12 |<!--
-->}}}}">
+
-->}}}} {{#if:{{{2|}}}|{{{2}}}}}">
<p class="heading">{{{name|{{BASEPAGENAME}}}}}</p><!--
+
<p class="heading" style="margin:-1px -1px 0px!important;">{{{name|{{BASEPAGENAME}}}}}</p>
<p class="subheading">{{{state|State}}}</p> ### CHANGE .subheading NEEDED -->
+
{{#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;">
[[File:LudeonLogoSquare.png|64px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]<!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+
{{#switch: {{#if:{{{forum|}}}|1|0}}{{#if:{{{logo|}}}|1|0}}
[[File:Icon_dl.png|64px|link={{{link|}}}|Download link]] ### DON'T USE DOWNLOAD UNTIL STABLE VERSION -->
+
| 11 =
 +
[[File:{{{logo|}}}|120px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
 
</div>
 
</div>
 
<div class="wrapper">
 
<div class="wrapper">
 
----
 
----
 +
| 10 =
 +
[[File:LudeonLogoSquare.png|120px|link=//ludeon.com/forums/index.php?topic={{{forum|}}}|Forum thread]]
 +
</div>
 +
<div class="wrapper">
 +
----
 +
| 01 =
 +
[[File:{{{logo|}}}|120px]]
 +
</div>
 +
<div class="wrapper">
 +
----
 +
| 00 =
 +
</div>
 +
<div class="wrapper">
 +
}}
 
<dl>
 
<dl>
 
{{#if: {{{author|}}}|
 
{{#if: {{{author|}}}|
Line 20: Line 35:
 
;Version
 
;Version
 
:{{{version|}}}}}
 
:{{{version|}}}}}
{{#if: {{{state|}}}|
+
{{#if: {{{firstrelease|}}}|
;State
+
;First Release
:{{{state|}}}}}
+
:{{{firstrelease|}}}}}
 
;Compatibility
 
;Compatibility
:{{#if: {{{comp|}}}|[[Version/{{{comp}}}{{!}}{{{comp}}}]]+|[[Version/{{:Version}}{{!}}{{:Version}}]]}}
+
:{{#if: {{{comp|}}}|[[Version/{{{comp}}}{{!}}{{{comp}}}]]|[[Version/{{:Version}}{{!}}{{:Version}}]]}}
 
{{#if: {{{size|}}}|
 
{{#if: {{{size|}}}|
 
;Map size
 
;Map size
 
:{{{size|}}}&nbsp;&#739;&nbsp;{{#if:{{{2}}}|{{{2|}}}}} }}
 
:{{{size|}}}&nbsp;&#739;&nbsp;{{#if:{{{2}}}|{{{2|}}}}} }}
 +
{{#switch: {{{1|}}}
 +
| scenario | cscenario | #DEFAULT =
 +
;AI Storyteller
 +
:{{#if: {{{ai|}}}|[[{{#switch:{{{ai|}}}|Callie=Chill Callie Classic|Cassandra=Cassandra Classic|Kassandra|Cleopatra=Tough Cleopatra Classic|Phoebe=Phoebe Friendly|Randy=Randy Random}}]]|Off}}
 +
| mod | tool =
 +
{{#if: {{{ai|}}}
 
;AI Storyteller
 
;AI Storyteller
:{{#if: {{{ai|}}}|[[{{#switch:{{{ai|}}}|Callie = Chill Callie Classic|Cassandra = Cassandra Classic|Kassandra|Cleopatra = Tough Cleopatra Classic|Phoebe = Phoebe Friendly|Randy = Randy Random}}]]|Off}}
+
:{{#if: {{{ai|}}}|[[{{#switch:{{{ai|}}}|Callie=Chill Callie Classic|Cassandra=Cassandra Classic|Kassandra|Cleopatra=Tough Cleopatra Classic|Phoebe=Phoebe Friendly|Randy=Randy Random}}]]|Off}} }} }}
 
<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:Scenarios]]
+
| scenario = [[Category:Scenario]]
| cscenario = [[Category:Custom scenarios]]
+
| 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