Difference between revisions of "Template:P/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Removed links to now unused Define Infobox templates)
(Examples that actually work)
 
Line 3: Line 3:
 
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.
  
<span style="color:firebrick>'''Warning:'''</span> This template is used on '''''a lot''''' of pages. Use caution when editing this template.
+
{{Error|Warning:}} This template is used on '''''a lot''''' of pages. Use caution when editing this template.
  
 
== Syntax ==
 
== Syntax ==
<code><nowiki>{{P|property}}</nowiki></code>
+
<code><nowiki>{{P|<property>}}</nowiki></code>
  
 
'''Required parameters:'''<br/>
 
'''Required parameters:'''<br/>
Line 15: Line 15:
  
 
== Examples ==
 
== Examples ==
Typing the following on the page Jade:
+
You can see this pages properties on: [[Special:Browse/:{{FULLPAGENAME}}]]
  
<code><nowiki>{{P|Beauty Factor}}</nowiki></code>
+
Typing the following on this page:
 +
 
 +
<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