From GamingWiki
Jump to: navigation, search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
+
Create an unordered list from our active campaigns.
  
Create an unordered list from our active campaigns
+
<onlyinclude><!--
  
 
-->{{#vardefine: campaigns | <!--
 
-->{{#vardefine: campaigns | <!--
   -->{{#ask: [[Category: Campaigns]] [[status::active]] | format=list | sep=;; | link=none }}<!--
+
   -->{{#ask: [[is a::campaign]] [[status::active]] | format=list | sep=;; | link=none }}<!--
 
-->}}<!--
 
-->}}<!--
  
-->{{#if:{{#var:campaigns}}|<!--
+
-->{{#arraydefine: camparray | {{#var: campaigns}} | ;; }}<!--
--><!--
 
* Campaigns: --><!--
 
-->}}<!--
 
  
-->{{#vardefine: linklist |}}<!--
+
--><!-- {{#if:{{#var:campaigns}}|
-->{{#vardefine: lidx | 0}}<!--
+
* Campaigns {{#arrayprint: camparray||@@@@|.
-->{{#while: |{{#vardefineecho: thelink | {{#explode: {{#var: campaigns}} | ;; | {{#var: lidx}} }} }}<!--
+
** @@@@{{!}}@@@@
-->|<!-- iterate over the retrieved links
+
}}.
  -->{{#vardefine: linklist | {{#var: linklist}} ;; {{#var: thelink}}{{!}}{{#var: thelink}} }}<!--
+
}} --><!--
  --><!--
 
  
** {{#var:thelink}}{{!}}{{#var:thelink}}  
+
-->{{#if:{{#var:campaigns}}|
 
+
* Campaigns
--><!--
+
** {{#arrayprint: camparray|{{{nosuch| }}}.
  -->{{#vardefine: lidx | {{#expr: {{#var:lidx}} + 1}} }}<!--
+
** {{{nosuch| }}}| @@@@|@@@@{{!}}@@@@ }}.
-->}}<!-- end link list loop
+
}}<!--
 
+
--></onlyinclude><!--
--><noinclude><!--
 
 
 
-->{{#tag: pre | {{#var: campaigns}} }}<!--
 
-->{{#tag: pre | {{#var: linklist}} }}<!--
 
 
 
--></noinclude><!--
 
 
 
-->{{#if:{{#var:campaigns}}|<!--
 
 
-->
 
-->
* Campaigns:<!--
 
-->}}<!--
 
  
-->{{Array Map
+
{{#if:{{#var:campaigns}}|{{#tag:pre|
| array = {{#var: linklist}}
+
* Campaigns
| before =
+
** {{#arrayprint: camparray|.{{{nosuch| }}}
| beforefirst =
+
** {{{nosuch| }}}|@@@@| @@@@{{!}}@@@@ }}
**
+
}}}}
| after = .
 
**
 
| afterlast = .
 
}}<!--
 
  
-->
+
{{#tag: pre |{{#var: campaigns}}}}
 +
{{#tag: pre |{{#arrayprint: camparray|<nowiki />
 +
<nowiki />|@@@@|<nowiki />** @@@@{{!}}@@@@}}}}

Latest revision as of 22:09, 5 February 2014

Create an unordered list from our active campaigns.


* Campaigns 
** [[:Template:((]]#ask: [[is a::campaign]] [[status::active]] | format=list | sep=|[[:Template:((]]#ask: [[is a::campaign]] [[status::active]] | format=list | sep=. 
**| link=none [[:Template:))]]|| link=none [[:Template:))]]
{{#ask: [[is a::campaign]] [[status::active]] | format=list | sep=;; | link=none }}
** [[:Template:((]]#ask: [[is a::campaign]] [[status::active]] | format=list | sep=|[[:Template:((]]#ask: [[is a::campaign]] [[status::active]] | format=list | sep=
** | link=none [[:Template:))]]|| link=none [[:Template:))]]