Template:Dump: Difference between revisions

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 (→‎Usage: clarified doc)
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.)
Line 3: Line 3:
-->{{#loop: qid
-->{{#loop: qid
   | {{#var:first}} | {{#expr:{{!!=|last|{{#var:first}}}}-{{#var:first}}+1}}
   | {{#var:first}} | {{#expr:{{!!=|last|{{#var:first}}}}-{{#var:first}}+1}}
   | {{:{{Zelda|{{{1}}}}} Text Dump/Select|{{#var:qid}}|{{!!=|dump-ldelim|{{{ldelim|{{S}}}}}}}}}{{!!=|dump-qdelim|{{{qdelim|{{S}}}}}}}
   | {{#if:{{#var:usedelim}}|{{!!=|dump-qdelim|{{{qdelim|{{S}}}}}}}|{{#vardefine:usedelim|true}}}}{{:{{Zelda|{{{1}}}}} Text Dump/Select|{{#var:qid}}|{{!!=|dump-ldelim|{{{ldelim|{{S}}}}}}}}}
   }}}}
   }}}}
}}</onlyinclude>
}}</onlyinclude>