Editing Template:Q/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
== Description ==
+
==Description==
 
This template shows the specified property of a page. Can be used within tables or anywhere.
 
This template shows the specified property of a page. Can be used within tables or anywhere.
  
== Syntax ==
+
==Syntax==
 
<code><nowiki>{{Q|page|property|default text|suffix|prefix}}</nowiki></code>
 
<code><nowiki>{{Q|page|property|default text|suffix|prefix}}</nowiki></code>
  
Line 14: Line 14:
 
Prefix: Text to be displayed immediately before the query result.
 
Prefix: Text to be displayed immediately before the query result.
  
== Samples ==
+
==Samples==
'''Typing:'''
+
Typing:
 +
 
 
<code><nowiki>{{Q|Gold|Beauty Offset}}</nowiki></code>
 
<code><nowiki>{{Q|Gold|Beauty Offset}}</nowiki></code>
  
'''Gives:'''
+
Gives:
{{Q|Gold|Beauty Offset}}
 
  
'''Typing:'''
+
12
<code><nowiki>{{Q|Muffalo|Carrying Capacity|| kg|Muffalo carrying capacity: }}</nowiki></code>
 
  
'''Gives:'''
 
{{Q|Muffalo|Carrying Capacity|| kg|Muffalo carrying capacity: }}
 
  
=== Bulk examples ===
+
Typing:
This is inline {{Q|Gold|Beauty Offset}} this is inline
 
  
This item doesn't exist and is inline {{Q|BLT sandwich|Beauty Offset}} this is inline
+
<code><nowiki>{{Q|Muffalo|Carrying Capacity|| kg|Muffalo carrying capacity: }}</nowiki></code>
 
 
This is directly put next to-{{Q|Gold|Beauty Offset}}, macaroni
 
 
 
Thinking up examples is making me hungry but this para doesn't exist,{{Q|Gold|Hungryness}}, oh well
 
  
Ooh defaults this time {{Q|Gold|Beauty Offset|Sandwich}} yum yum
+
Gives:
  
What no sandwich what about now {{Q|Gold|Hungry Hungry|Sandwich}} yum yum
+
Muffalo carrying capacity: 158 kg
  
All together now-{{Q|Gold|Hungry Hungry|Sandwich}}yum yum
 
 
<includeonly>[[Category:SMW templates]]</includeonly>
 
<includeonly>[[Category:SMW templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: