Template:CollectStrings/doc: Difference between revisions

From OIAr
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 08:02, 3 April 2013

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.