Difference between revisions of "Template:P/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m (Typo fix.)
(Examples that actually work)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Description==
+
__NOTOC__
 +
== 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==
+
{{Error|Warning:}} This template is used on '''''a lot''''' of pages. Use caution when editing this template.
<code><nowiki>{{P|property}}</nowiki></code>
+
 
 +
== Syntax ==
 +
<code><nowiki>{{P|<property>}}</nowiki></code>
  
 
'''Required parameters:'''<br/>
 
'''Required parameters:'''<br/>
Line 11: Line 14:
 
No optional parameters are accepted.
 
No optional parameters are accepted.
  
==Usage==
+
== Examples ==
This template is primarily used in the following templates:
+
You can see this pages properties on: [[Special:Browse/:{{FULLPAGENAME}}]]
* [[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 this page:  
Typing the following on the page Jade:
 
  
<code><nowiki>{{P|Beauty Factor}}</nowiki></code>
+
<code><nowiki>{{P|Modification date}}</nowiki></code>
  
 
Gives:
 
Gives:
  
2.5
+
{{P|Modification date}}
  
  
Typing the following on the page Battery:
+
Typing the following on this page:
  
<code><nowiki>{{P|Size}}</nowiki></code>
+
<code><nowiki>{{P|Category}}</nowiki></code>
  
 
Gives:
 
Gives:
  
1 ˣ 2
+
{{P|Category}}
  
==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>

Latest revision as of 22:48, 7 April 2023

Description[edit]

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[edit]

{{P|<property>}}

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

Optional parameters:
No optional parameters are accepted.

Examples[edit]

You can see this pages properties on: Special:Browse/:Template:P/doc

Typing the following on this page:

{{P|Modification date}}

Gives:

7 April 2023 22:48:36


Typing the following on this page:

{{P|Category}}

Gives:

Category:Template documentation

See also[edit]

Template:Q