Difference between revisions of "Template:Plant Info"

From RimWorld Wiki
Jump to navigation Jump to search
(Set Beauty parameter to display only if it's been set.)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Simple Infobox
+
<noinclude>{{Obsolete|reason=Outdated and not used anywhere}}
 +
{{Plant Info|Name=Potato plant}}
 +
</noinclude><includeonly>{{Simple Infobox
 
|header=<div style="font-size:150%; padding: 3px 0px;link=white;color: White;">{{{Name|{{FULLPAGENAME}}}}}</div>
 
|header=<div style="font-size:150%; padding: 3px 0px;link=white;color: White;">{{{Name|{{FULLPAGENAME}}}}}</div>
 
|float=right
 
|float=right
 
|clear=right
 
|clear=right
 
|width=300px
 
|width=300px
[[File:{{{Name|{{PAGENAME}}}}}.png|imagesize = 64px|centre|{{{Name|{{PAGENAME}}}}}|link={{{Name|{{PAGENAME}}}}}]]
 
 
|content=<div style="padding: 10px 10px;">
 
|content=<div style="padding: 10px 10px;">
 
[[File:{{{Name|{{PAGENAME}}}}}.png|imagesize = 64px|centre|{{{Name|{{PAGENAME}}}}}|link={{{Name|{{PAGENAME}}}}}]]
 
[[File:{{{Name|{{PAGENAME}}}}}.png|imagesize = 64px|centre|{{{Name|{{PAGENAME}}}}}|link={{{Name|{{PAGENAME}}}}}]]
 
</div>
 
</div>
{{#ifexist: {{{Name|{{PAGENAME}}}}}.png|{{#set:Image = {{{Name|{{PAGENAME}}}}}.png}} }}
+
{{#set:Image = [[File:{{{Name|{{PAGENAME}}}}}.png]]}}
 
<div style="padding: 10px 10px;">
 
<div style="padding: 10px 10px;">
 
<hr />
 
<hr />
Line 22: Line 23:
 
}} HP</div>
 
}} HP</div>
 
<hr />
 
<hr />
{{#if: {{{Beauty|}}}|{{#set:Beauty Base = {{{Beauty|}}} }}  
+
{{#if: {{{Beauty|}}}|{{#set:Beauty Base = {{{Beauty|}}} }} }}
'''Beauty'''<div style="float:right;">{{{Beauty}}}{{#Switch: {{{Beauty}}}
+
'''Beauty'''<div style="float:right;">{{{Beauty|neutral}}}{{#Switch: {{{Beauty}}}
}}</div>}}
+
}}</div>
 
<hr />
 
<hr />
 
</div>
 
</div>
}}{{#ifeq: {{lc:{{{nocat|false}}}}} | false |[[Category:Plants|{{PAGENAME}}]]}}</onlyinclude>
+
}}{{#ifeq: {{lc:{{{nocat|false}}}}} | false |[[:Category:Plants|{{PAGENAME}}]]}}</includeonly>

Latest revision as of 23:28, 19 March 2023

Potato plant
Potato plant

Maximum Yield
{{{Maximum Yield}}}

Minimum Yield
{{{Minimum Yield}}}

Hitpoints
{{{Hitpoints}}} HP

Beauty
neutral

Plant Info