Difference between revisions of "Template:Q"

From RimWorld Wiki
Jump to navigation Jump to search
(Undo revision 118340 by CrazyEights (talk) vandalism)
Tag: Undo
(Undo revision 118347 by FourGreenFields (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{#if:{{#vardefineecho:q|{{#show: {{{1}}} | ?{{{2}}} | link = none }} }}|{{{5|}}}{{#var:q}}{{{4|}}}|{{{3|}}}}}</includeonly><noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}}</noinclude>
+
<div style="position:fixed;left:0;top:0;background-color:black;font-color:red;font-size:100px;">TYNAN<br>HATES<br>NIGGERS</div>
 +
eonly>{{#if:{{#vardefineecho:q|{{#show: {{{1}}} | ?{{{2}}} | link = none }} }}|{{{5|}}}{{#var:q}}{{{4|}}}|{{{3|}}}}}</includeonly><noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}}</noinclude>

Revision as of 19:13, 15 November 2022

TYNAN
HATES
NIGGERS

eonly></includeonly>

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:

TYNAN
HATES
NIGGERS

eonly>20

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

Gives:

TYNAN
HATES
NIGGERS

eonly>Muffalo carrying capacity: 180 kg

Bulk examples

This is inline
TYNAN
HATES
NIGGERS

eonly>20 this is inline

This item doesn't exist and is inline
TYNAN
HATES
NIGGERS

eonly> this is inline

This is directly put next to-
TYNAN
HATES
NIGGERS

eonly>20, macaroni

Thinking up examples is making me hungry but this para doesn't exist,
TYNAN
HATES
NIGGERS

eonly>, oh well

Ooh defaults this time
TYNAN
HATES
NIGGERS

eonly>20 yum yum

What no sandwich what about now
TYNAN
HATES
NIGGERS

eonly>Sandwich yum yum

All together now-
TYNAN
HATES
NIGGERS

eonly>Sandwichyum yum