Template:Q

From RimWorld Wiki
Revision as of 12:39, 23 June 2022 by Ickputzdirwech (talk | contribs) (Error message if invalid Page or Property is provided)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template shows the specified property of a page. Can be used within tables or anywhere.

Syntax

{{Q|page|property|default text|suffix|prefix}}

Required parameters:
Page: The name of the page to be queried against.
Property: Show the value of this property.

Optional parameters:
Default text: Text to be displayed if the query has nothing to display. Typically this is N/A or a dash.
Suffix: Text to be displayed immediately after the query result.
Prefix: Text to be displayed immediately before the query result.

Samples

Typing:

{{Q|Gold|Beauty Offset}}

Gives:

12


Typing:

{{Q|Muffalo|Carrying Capacity|| kg|Muffalo carrying capacity: }}

Gives:

Muffalo carrying capacity: 158 kg
https://rimworldwiki.com/index.php?title=Template:Q&curid=13490&oldid=104939
rimworldwiki.com
crawl=CC-MAIN-2022-33
29581
application/http; msgtype=response
sha1:P3GVFUFLIUVOOJI5T4IP2MB65PNXQLRR
<urn:uuid:b691f946-7d09-40d9-ad0e-ebc368649f12>
2022-08-19T13:58:20Z
104.21.95.44
text/html
sha1:232ADFIVB5YRL6OEZTJ2LZ7XCSZN7FDW
<urn:uuid:33165417-49a8-436b-8f51-c49ae0f583ab>
https://rimworldwiki.com/index.php?title=Template:Q&curid=13490&oldid=104939
response
<urn:uuid:8faaace0-b629-4936-b1c1-954bf9faddcd>
isPartOf: CC-MAIN-2022-33
publisher: Common Crawl
description: Wide crawl of the web for August 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-222
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/