v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Prefstring dwarves/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (SPAG)
m (typo)
Line 1: Line 1:
−
This template finds the current page name, checks the {{token|PREFSTRING}} of an acompanying /raw page, and outputs a complete [[preference]] sentence accordingly.
+
This template finds the current page name, checks the {{token|PREFSTRING}} of an accompanying /raw page, and outputs a complete [[preference]] sentence accordingly.
  
 
Usage ([[fluffy wambler]] for example):
 
Usage ([[fluffy wambler]] for example):

Revision as of 17:57, 18 October 2026

This template finds the current page name, checks the [PREFSTRING] of an accompanying /raw page, and outputs a complete preference sentence accordingly.

Usage (fluffy wambler for example):

{{Prefstring dwarves}}

Some dwarves like fluffy wamblers for their warm heart, their gentle nature, and their stumble bumbling.


If no /raw or [PREFSTRING] is found, the fallback outputs:

lack of a [PREFSTRING] token


Primarily intended for inline use and 0 parameters.

This template is dependent on {{Prefstring/list}} and {{Prefstring dwarves/core}}, which are intended for use within templates wanting to conveniently parse preference strings. In a pinch, you can use {{Prefstring dwarves|{{:PageNameHere/raw}}}} to invoke an explicit page as the first parameter (though if that starts happening often, leave a comment on the talk page so the author knows a keyword/switch variant of this might be warranted).