From GamingWiki
Jump to: navigation, search
Line 1: Line 1:
 
<!--
 
<!--
 
+
  Create an unordered list from our active campaigns
Create an unordered list from our active campaigns
 
  
 
-->{{#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}}|
 
 
-->{{#tag: pre | {{#var: campaigns}} }}<!--
 
-->{{#tag: pre | {{#var: linklist}} }}<!--
 
 
 
-->{{#tag: pre | {{#arrayprint: camparray|<nowiki />
 
|@@@@|** @@@@{{!}}@@@@}} }}<!--
 
 
 
--></noinclude><!--
 
 
 
-->{{#if:{{#var:campaigns}}|<!--
 
-->
 
 
* Campaigns: {{#arrayprint: camparray|<nowiki />
 
* Campaigns: {{#arrayprint: camparray|<nowiki />
 
|@@@@|** @@@@{{!}}@@@@}}
 
|@@@@|** @@@@{{!}}@@@@}}
<!--
+
}}<!--
  
 +
--><noinclude>
  
-->}}<!--
+
{{#tag: pre | {{#var: campaigns}} }}
 +
{{#tag: pre | {{#arrayprint: camparray|<nowiki />
 +
|@@@@|** @@@@{{!}}@@@@}} }}
  
--><!-- {{Array Map
+
</noinclude><!--
| array = {{#var: linklist}}
 
| before =
 
| beforefirst =
 
**
 
| after = .
 
**
 
| afterlast = .
 
}} --><!--
 
  
 
-->
 
-->

Revision as of 16:52, 24 February 2011

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