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:Listprefstring"
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- // This first part locates the content of the raw file: -->{{#vardefine:LISTPREFSTRING_RAWTEXT|{{#if:{{{1|}}}|{{#ifexist:{{{1|}}}|{{:{{{1|}}}}}|{{{1|}}}}}|{...") |
m (Correct bug in two-PREFSTRING case) |
||
Line 9: | Line 9: | ||
-->{{#switch:{{#strlen:{{#df_foreachtag:{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|p}}}} | -->{{#switch:{{#strlen:{{#df_foreachtag:{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|p}}}} | ||
|1=''{{tagvalue|{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|0}}'' | |1=''{{tagvalue|{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|0}}'' | ||
− | |2=''{{tagvalue|{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|0}}'' and ''{{tagvalue|{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING| | + | |2=''{{tagvalue|{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|0}}'' and ''{{tagvalue|{{#var:LISTPREFSTRING_RAWTEXT}}|PREFSTRING|1}}'' |
|#default=<!-- | |#default=<!-- | ||
// For a list, it's more complicated. First, LISTPREFSTRING_LISTSTR is generated, which looks like ONE, TWO, THREE but doesn't have an 'and' in it. | // For a list, it's more complicated. First, LISTPREFSTRING_LISTSTR is generated, which looks like ONE, TWO, THREE but doesn't have an 'and' in it. |
Latest revision as of 09:47, 25 December 2022
Lists all the reasons dwarves like something. For example:
{{listprefstring|DF2014:Eagle/raw}}
→ Some dwarves like eagles for their high soaring.{{listprefstring|DF2014:Eagle/raw}}
→ Some dwarves like rocs for their awe-inspiring size and dedication to their young.{{listprefstring|DF2014:Nightwing/raw}}
→ Some dwarves like nightwings for their jackal heads, bat wings, long tails, manes, fangs, ability to suck blood, tightly-stretched skin, and needle-like horns.{{listprefstring|{{DF2014:Nightwing/raw}}}}
→ Some dwarves like nightwings for their jackal heads, bat wings, long tails, manes, fangs, ability to suck blood, tightly-stretched skin, and needle-like horns.
Note that the reason for using DF2014 examples is merely that the raws for later version(s) have not been added at the time of writing
Argument can be any of the following:
- Location of the raw file. e.g.
DF2014:Nightwing/raw
- Full text of the raw file.
- None (Uses
{{FULLPAGENAME}}/raw
)