Template:CollectStrings/doc: Difference between revisions
Jump to navigation
Jump to search
(doc added) |
(layout) |
||
Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
This template simply adds a piece of text to array S, with commas as delimiter. Before (repeatedly) calling this template, you should prepare array S by creating it: | This template simply adds a piece of text to array S, with commas as delimiter. Before (repeatedly) calling this template, you should prepare array S by creating it: | ||
<nowiki>{{#arraydefine:S}}</nowiki> | <pre><nowiki>{{#arraydefine:S}}</nowiki></pre> | ||
The template can be called from inside an #ask, like this: | The template can be called from inside an #ask, like this: | ||
<nowiki>{{#ask:[[Working Area::+]]|?Working Area|format=valuerank|min=0|liststyle=none|template=CollectStrings}}</nowiki> | <pre><nowiki>{{#ask:[[Working Area::+]]|?Working Area|format=valuerank|min=0|liststyle=none|template=CollectStrings}}</nowiki></pre> | ||
Afterwards, array ''S'' will contain all values from the #ask, ready to sort, slice and dice. | Afterwards, array ''S'' will contain all values from the #ask, ready to sort, slice and dice. | ||
<includeonly> | <includeonly> |
Latest revision as of 07:02, 3 April 2013
This is a documentation subpage for Template:CollectStrings (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template simply adds a piece of text to array S, with commas as delimiter. Before (repeatedly) calling this template, you should prepare array S by creating it:
{{#arraydefine:S}}
The template can be called from inside an #ask, like this:
{{#ask:[[Working Area::+]]|?Working Area|format=valuerank|min=0|liststyle=none|template=CollectStrings}}
Afterwards, array S will contain all values from the #ask, ready to sort, slice and dice.