Template:Dump: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
m (not sure what the best way is to only apply qdelim ''between'' quotes (i.e. not before the first, not after the last), but this should do.) |
m (reset usedelim for successive Dump instances) |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#fornumargs: argnum | argval | <onlyinclude>{{#vardefine:usedelim|}}{{#fornumargs: argnum | argval | ||
| {{#ifeq:{{#var:argnum}}|1||{{#vardefine:first|{{#explode:{{#var:argval}}|-|0}}}}{{#vardefine:last|{{#explode:{{#var:argval}}|-|1}}}}<!-- | | {{#ifeq:{{#var:argnum}}|1||{{#vardefine:first|{{#explode:{{#var:argval}}|-|0}}}}{{#vardefine:last|{{#explode:{{#var:argval}}|-|1}}}}<!-- | ||
-->{{#loop: qid | -->{{#loop: qid |
Revision as of 01:33, February 26, 2013
Purpose
Use this template to retrieve a specific quote from a text dump. These are frequently used for references by the Cite template and in captions by various [[Caption Templates]].
Usage
{{Dump| dump | quote }}
- dump — A game abbreviation serving as a keyword to select from which dump to pull the quote.
- quote — The quote's ID which can be found on the dump page.
- ldelim — If "ldelim=<br>" is provided, newlines will be preserved as they appear in the game. Otherwise the text will appear on one line. (Optional. Default: [space])
- qdelim — For multiple quotes, a delimiter can be passed to this named parameter. (Optional. Default: [space])
To find the quote ID, find the desired quote in the text dump (see [[Text Dumps]]) and hover over the tooltip (?) at the beginning of the quote.
Several quotes can be retrieved at once by passing in multiple arguments and/or supplying ranges. For example, {{Dump| SS | 6552-6554 | 6556 }}