Difference between revisions of "Template:P/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Set NOTOC.)
(Removed links to now unused Define Infobox templates)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
==Description==
+
== Description ==
 
This template shows the specified property of the page it is used on. It can be used within tables or anywhere.
 
This template shows the specified property of the page it is used on. It can be used within tables or anywhere.
  
==Syntax==
+
<span style="color:firebrick>'''Warning:'''</span> This template is used on '''''a lot''''' of pages. Use caution when editing this template.
 +
 
 +
== Syntax ==
 
<code><nowiki>{{P|property}}</nowiki></code>
 
<code><nowiki>{{P|property}}</nowiki></code>
  
Line 12: Line 14:
 
No optional parameters are accepted.
 
No optional parameters are accepted.
  
==Usage==
+
== Examples ==
This template is primarily used in the following templates:
 
* [[Template:Entry/Base Stat]]
 
* [[Template:Entry/Stuff Stat]]
 
* [[Template:Entry/Top]]
 
 
 
Data displayed in nearly all infoboxes on this wiki is produced by this template. Use caution when editing this template.
 
 
 
==Examples==
 
 
Typing the following on the page Jade:
 
Typing the following on the page Jade:
  
Line 38: Line 32:
 
1 ˣ 2
 
1 ˣ 2
  
==See Also==
+
== See Also ==
 
[[Template:Q]]
 
[[Template:Q]]
  
 
<includeonly>[[Category:SMW templates]]</includeonly>
 
<includeonly>[[Category:SMW templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 14:41, 20 April 2022

Description

This template shows the specified property of the page it is used on. It can be used within tables or anywhere.

Warning: This template is used on a lot of pages. Use caution when editing this template.

Syntax

{{P|property}}

Required parameters:
Property: Show the value of this property.

Optional parameters:
No optional parameters are accepted.

Examples

Typing the following on the page Jade:

{{P|Beauty Factor}}

Gives:

2.5


Typing the following on the page Battery:

{{P|Size}}

Gives:

1 ˣ 2

See Also

Template:Q