Difference between revisions of "Template:Text"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#set: {{{1}}}={{#if:1|{{{2|}}}}}}}{{#if:1|{{{2|}}}}}</includeonly>")
 
(simplification, documentation, category)
 
Line 1: Line 1:
<includeonly>{{#set: {{{1}}}={{#if:1|{{{2|}}}}}}}{{#if:1|{{{2|}}}}}</includeonly>
+
<includeonly>{{#set: {{{1}}} = {{{2|}}} }}{{{2|}}}</includeonly><noinclude>{{Documentation | content =
 +
 
 +
You can use the template like this:
 +
 
 +
<pre>{{Text|<Property>|<value>}}</pre>
 +
 
 +
This template will then set the given property to the given value and print the value.
 +
 
 +
[[Category:SMW templates]]
 +
}}</noinclude>

Latest revision as of 10:28, 14 December 2022

Documentation icon Template documentation

You can use the template like this:

{{Text|<Property>|<value>}}

This template will then set the given property to the given value and print the value.