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.

Template:Langsym raw/doc

From Dwarf Fortress Wiki
Jump to navigation Jump to search

Note that this template is fussy and likely to behave strangely if it's assumptions aren't met.

Template assumes you want to display a raw, and are on a raw subpage of page that is itself a subpage of language SYM.txt. In otherwords, a grandchild of language SYM.txt. And assumes subst will be used.

It looks for an ALL CAPS symbol and caps parts of the page title....

Usage[edit]

{{subst:Langsym raw}}

See https://en.wikipedia.org/wiki/Help:Substitution#The_safesubst:_modifier for details on subst

Output[edit]

This outputs something like

<noinclude>{{raw header|symbol|DOMESTIC}}</noinclude>{{raw|v50:language_SYM.txt|SYMBOL|DOMESTIC}}<noinclude>{{raw footer|symbol|DOMESTIC}}</noinclude>

or

{{raw header|symbol|DARKNESS}}</noinclude>{{raw|v50:language_SYM.txt|SYMBOL|DARKNESS}}<noinclude>{{raw footer|symbol|DARKNESS}}

Limitation[edit]

It won't output this:

{{raw header|text_set|CURSE}}</noinclude>{{raw|v50:text_curse.txt|TEXT_SET|CURSE}}<noinclude>{{raw footer|text_set|CURSE}}

or this:

<noinclude>{{raw header}}</noinclude>{{raw|v50:text_book_instruction.txt|TEXT_SET|BOOK_INSTRUCTION}}<noinclude>{{raw footer}}</noinclude>

Notes[edit]

It uses Template:Raw_header and Template:Raw among other tpls

snippet

{{uc:{{#titleparts: {{FULLPAGENAMEE}} | -1 | -2 }}}}

See Also[edit]