Difference between revisions of "Help:Templates"

From RimWorld Wiki
Jump to navigation Jump to search
m
m (oops)
Line 15: Line 15:
 
{{Asof|A16}} luciferium can heal scars.
 
{{Asof|A16}} 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.<br />
+
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.<br />
 
'''Example:'''
 
'''Example:'''
 
<pre>{{Impressive
 
<pre>{{Impressive

Revision as of 08:42, 18 January 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:

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:

Creating a template

Basics

Parameters