Difference between revisions of "Help:Templates"
Jump to navigation
Jump to search
m (oops) |
|||
Line 23: | Line 23: | ||
{{rwbox|nocat=true|type=notice|text=''This is an '''[[:Category:Impressive|Impressive]]''' page, and is giving a <span style=color:green>+3</span> positive [[thoughts#Rec Room|thought]] to all [[colonist|colonists]] viewing this page. Please consider leaving the page as is, or decorating this page with [[sculptures]]. The impressiveness of this page at the moment is <b style="color:green">{{#expr:({{#time:s}}/4+95)round 0}}</b>. It has also been deemed the title: '''Demo'''. }} | {{rwbox|nocat=true|type=notice|text=''This is an '''[[:Category:Impressive|Impressive]]''' page, and is giving a <span style=color:green>+3</span> positive [[thoughts#Rec Room|thought]] to all [[colonist|colonists]] viewing this page. Please consider leaving the page as is, or decorating this page with [[sculptures]]. The impressiveness of this page at the moment is <b style="color:green">{{#expr:({{#time:s}}/4+95)round 0}}</b>. It has also been deemed the title: '''Demo'''. }} | ||
− | ==Creating a template== | + | == Creating a template == |
− | ===Basics=== | + | |
+ | === Basics === | ||
+ | |||
+ | |||
+ | |||
+ | === Parameters === | ||
− | |||
[[Category:Help pages]] | [[Category:Help pages]] |
Revision as of 11:13, 30 August 2017
MediaWiki Help article: Help:Templates
Using Templates
Summary
Templates are to improve wiki efficiency by allowing editors to write less on pages by transcluding these preset templates. For example, if you type {{Stub}}
this shows on the page:
This is a Stub page. You can help RimWorld Wiki by expanding it. |
In a nutshell, templates save up space and create consistency.
Parameters
Some templates take parameters. For instance, Template:Asof takes a value from A1 to the current alpha version.
Example:
{{Asof|A16}} luciferium can heal scars.
Result:
As of version 0.16.1393 (21 December 2016) luciferium can heal scars.
Templates like Template:Impressive take special parameters. The way to use them is to type the pipe (|) symbol, followed by the parameter name, an equals (=) sign, and then the value.
Example:
{{Impressive |title=Demo }}
Result:
This is an Impressive page, and is giving a +3 positive thought to all colonists viewing this page. Please consider leaving the page as is, or decorating this page with sculptures. The impressiveness of this page at the moment is 99. It has also been deemed the title: Demo. |