From GamingWiki
Jump to: navigation, search
 
(15 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: [[is a:: Campaign]] [[status::active]] | format=list | sep=;; | link=none }}<!--
+
   -->{{#ask: [[is a::campaign]] [[status::active]] | format=list | sep=;; | link=none }}<!--
 
-->}}<!--
 
-->}}<!--
 
-->{{#if:{{#var:campaigns}}|<!--
 
--><!--
 
* Campaigns: --><!--
 
-->}}<!--
 
 
-->{{#vardefine: linklist |}}<!--
 
-->{{#vardefine: lidx | 0}}<!--
 
-->{{#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}}
 
 
--><!--
 
  -->{{#vardefine: lidx | {{#expr: {{#var:lidx}} + 1}} }}<!--
 
-->}}<!-- end link list loop
 
  
 
-->{{#arraydefine: camparray | {{#var: campaigns}} | ;; }}<!--
 
-->{{#arraydefine: camparray | {{#var: campaigns}} | ;; }}<!--
  
--><noinclude><!--
+
--><!-- {{#if:{{#var:campaigns}}|
 
+
* Campaigns {{#arrayprint: camparray||@@@@|.
-->{{#tag: pre | {{#var: campaigns}} }}<!--
+
** @@@@{{!}}@@@@
-->{{#tag: pre | {{#var: linklist}} }}<!--
+
}}.
 
+
}} --><!--
-->{{#tag: pre | {{#arrayprint: camparray|<nowiki />
 
|@@@@|** @@@@{{!}}@@@@}} }}<!--
 
 
 
--></noinclude><!--
 
  
-->{{#if:{{#var:campaigns}}|<!--
+
-->{{#if:{{#var:campaigns}}|
 +
* Campaigns
 +
** {{#arrayprint: camparray|{{{nosuch| }}}.
 +
** {{{nosuch| }}}| @@@@|@@@@{{!}}@@@@ }}.
 +
}}<!--
 +
--></onlyinclude><!--
 
-->
 
-->
* Campaigns: {{#arrayprint: camparray|<nowiki />
 
|@@@@|** @@@@{{!}}@@@@}}
 
<!--
 
 
  
-->}}<!--
+
{{#if:{{#var:campaigns}}|{{#tag:pre|
 +
* Campaigns
 +
** {{#arrayprint: camparray|.{{{nosuch| }}}
 +
** {{{nosuch| }}}|@@@@| @@@@{{!}}@@@@ }}
 +
}}}}
  
--><!-- {{Array Map
+
{{#tag: pre |{{#var: campaigns}}}}
| array = {{#var: linklist}}
+
{{#tag: pre |{{#arrayprint: camparray|<nowiki />
| before =
+
<nowiki />|@@@@|<nowiki />** @@@@{{!}}@@@@}}}}
| beforefirst =
 
**
 
| after = .
 
**
 
| afterlast = .
 
}} --><!--
 
 
 
-->
 

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:))]]