User:Arcangelus/Sandbox
Welcome to the RimWorld Wiki sandbox!
This sandbox is where you can experiment and practice working on a wiki page. This page will usually have little or no content. Feel free to add content or to make changes and save them to see the results.
To learn about editing and formatting start here: Help:Contents. Just start with the basics... enter some text, and learn the other pieces as you go.
Your content contributions are welcome and important. The wiki is a collaborative effort and others can help with formatting and other improvements.]
Best wishes!
Creating page.
- Do changes here appear on Recent changes? Yes.
- Does this apply to sandbox as well?
subst:
https://rimworldwiki.com/index.php?title=Environment
Naturally generated surfaces[edit]
- For the artificial flooring, see Floors.
The function SpeedPercentString is:
13/(13 + Path cost)
Also uses float points, for some reason.
For setting categories on Template:Version Nav. Need more testing before replacing:
{{#ifeq:{{#titleparts: {{PAGENAME}} | 1 }} | Version | [[Category:PC version|{{#invoke:String|match|{{PAGENAME}} |%d+|match=1}}.{{#invoke:String|match| {{PAGENAME}} |%d+|match=2}}]] | [[Category:Console version]] }}
. This adds specific a category based on the version, but won't work well for the Alphas/Betas.
Current Version:
{{#ifeq: {{#sub:{{#var:pagename}}||8}}|Version/| [[Category:PC version|{{#explode:{{#var:pagename}}|.|-3}}.{{#ifexpr: {{#len:{{#explode:{{#var:pagename}}|.|-2}} }} = 1 | 0 }}{{#explode:{{#var:pagename}}|.|-2}}.{{#explode:{{#var:pagename}}|.|-1}}]]}}{{#ifeq: {{#sub:{{#var:pagename}}||16}}|Console version/|[[Category:Console version]]}}
Intermediate Version:
{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 }} | Version | [[Category:PC version]] | [[Category:Console version]] }}
This replicates the current effect with less overhead.