Template:Subst/doc

From PathfinderWiki

{{Subst}} allows you to substitute the {{subst: magic word into templates. It should be used only on templates that are being transcluded into other templates or pages, in order to include a substitution in the output without applying it at the same time. You might also need to use it with {{Rb}} to balance imbalanced braces.

Usage

{{Subst}}

Example

{{subst:Subst}}Cite book/Core Rulebook (1E)|130{{Subst:Rb}}

When saved in the template, the result should be the

{{subst:Cite book/Core Rulebook (1E)|130}}

When another page transcludes the template, the result should be the substituted content of {{Cite book/Core Rulebook (1E)|130}}:

{{Cite book
| title     = [[Core Rulebook (First Edition)|Core Rulebook]] (First Edition)
| author    = [[Logan Bonner]] ''et al''
| ISBN      = 978-1-64078-168-9
| year      = 2019
| pages     = 130
| publisher = [[Paizo Inc]]
}}