Editing Template:Infobox main/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
 
[[Template:Infobox main]] Is the core of what powers the SemanticMediaWiki database of rimworld objects.
 
[[Template:Infobox main]] Is the core of what powers the SemanticMediaWiki database of rimworld objects.
 
Since the template is so complex, it's worth taking a step back and summarizing what this template does:
 
Since the template is so complex, it's worth taking a step back and summarizing what this template does:
* '''Takes in facts''': On each page which describes an in-game object, we call <code><nowiki>{{infobox main | ...}}</nowiki></code>, where <code>...</code> is a very long list of parameters describing the object in question, including its name, type, the cost to make it, and a bunch of other things
+
* '''Takes in facts''': On each page which describes an in-game object, a call to <code><nowiki>{{infobox main | ...}}</nowiki></code>, where <code>...</code> is a very long list of parameters describing the object in question, including its name, type, the cost to make it, and a bunch of other things
 
* '''Rendering an infobox''': This template takes those parameters and presents them in a nice looking infobox on the right side of the page.  If you add a param <code>|marketvalue = 200</code>, this template will add a line to the infobox showing the market value annotated with a silver icon.  Cool!
 
* '''Rendering an infobox''': This template takes those parameters and presents them in a nice looking infobox on the right side of the page.  If you add a param <code>|marketvalue = 200</code>, this template will add a line to the infobox showing the market value annotated with a silver icon.  Cool!
 
* '''Setting SMW properties''': The real magic comes from this templates ability to also set SMW properties.  If the <code>|marketvalue = 200</code> param is present, this template will ''also'' set a SMW property 'Market Value Base' equal to 200 for whatever page the infobox was called on.
 
* '''Setting SMW properties''': The real magic comes from this templates ability to also set SMW properties.  If the <code>|marketvalue = 200</code> param is present, this template will ''also'' set a SMW property 'Market Value Base' equal to 200 for whatever page the infobox was called on.

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)