- 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.
Difference between revisions of "Template:Langsym raw/doc"
(→Notes) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
== Output == | == Output == | ||
− | This outputs something like ''<nowiki><noinclude>{{raw header|symbol|DOMESTIC}}</noinclude>{{raw|v50:language_SYM.txt|SYMBOL|DOMESTIC}}<noinclude>{{raw footer|symbol|DOMESTIC}}</noinclude></nowiki>'' | + | This outputs something like |
+ | |||
+ | ''<nowiki><noinclude>{{raw header|symbol|DOMESTIC}}</noinclude>{{raw|v50:language_SYM.txt|SYMBOL|DOMESTIC}}<noinclude>{{raw footer|symbol|DOMESTIC}}</noinclude></nowiki>'' | ||
+ | |||
+ | or | ||
+ | |||
+ | ''<nowiki>{{raw header|symbol|DARKNESS}}</noinclude>{{raw|v50:language_SYM.txt|SYMBOL|DARKNESS}}<noinclude>{{raw footer|symbol|DARKNESS}}</nowiki>'' | ||
+ | |||
+ | === Limitation === | ||
+ | |||
+ | It won't output this: | ||
+ | |||
+ | <nowiki>{{raw header|text_set|CURSE}}</noinclude>{{raw|v50:text_curse.txt|TEXT_SET|CURSE}}<noinclude>{{raw footer|text_set|CURSE}}</nowiki> | ||
+ | |||
+ | or this: | ||
+ | |||
+ | <nowiki><noinclude>{{raw header}}</noinclude>{{raw|v50:text_book_instruction.txt|TEXT_SET|BOOK_INSTRUCTION}}<noinclude>{{raw footer}}</noinclude></nowiki> | ||
== Notes== | == Notes== | ||
+ | |||
+ | It uses [[Template:Raw_header]] and [[Template:Raw]] among other tpls | ||
snippet | snippet |
Latest revision as of 23:48, 27 February 2023
This is a documentation subpage for Template:Langsym raw. It contains usage information, categories and other content that is not part of the original template page. |
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]