Difference between revisions of "Template talk:Infobox main/Infobox Question/reply"

From RimWorld Wiki
Jump to navigation Jump to search
(Reply to Infobox Question)
 
m (Forgot <pre> tags, whoops)
 
Line 5: Line 5:
 
Here's an example:
 
Here's an example:
  
 +
<pre>
 
{{#if: {{{hp|}}}|
 
{{#if: {{{hp|}}}|
 
;HP
 
;HP
 
:{{{hp|}}}}}
 
:{{{hp|}}}}}
 +
</pre>
  
  
Line 21: Line 23:
 
So to add something like the walkspeed attribute listed there, add something like this to the Infobox:
 
So to add something like the walkspeed attribute listed there, add something like this to the Infobox:
  
 +
<pre>
 
{{#if: {{{walkspeed|}}}|
 
{{#if: {{{walkspeed|}}}|
 
;Walk Speed
 
;Walk Speed
 
:{{{walkspeed|}}}}}
 
:{{{walkspeed|}}}}}
 
+
</pre>
  
 
Feel free to ask more questions if you don't understand. Oh, and if you do add to the Infobox page, then please add what you added to the documentation. A short like like this:
 
Feel free to ask more questions if you don't understand. Oh, and if you do add to the Infobox page, then please add what you added to the documentation. A short like like this:

Latest revision as of 03:53, 19 August 2014

Hi there,

The infobox only shows stuff that's defined. It's a little annoying, but it can save you a lot of time, automatically give you units, and include links.

Here's an example:

{{#if: {{{hp|}}}|
;HP
:{{{hp|}}}}}


Usage in an infobox: |hp = 50


What it looks like:

HP | 50


So to add something like the walkspeed attribute listed there, add something like this to the Infobox:

{{#if: {{{walkspeed|}}}|
;Walk Speed
:{{{walkspeed|}}}}}

Feel free to ask more questions if you don't understand. Oh, and if you do add to the Infobox page, then please add what you added to the documentation. A short like like this:

|hp = use for health/strength

Is very helpful to others when they're trying to figure out the infoboxes. They're a little convoluted, but they work well.