From GamingWiki
Jump to: navigation, search
 
(17 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
 
 
--><noinclude><!--
 
 
-->{{#tag: pre | {{#var: campaigns}} }}<!--
 
-->{{#tag: pre | {{#var: linklist}} }}<!--
 
  
 
-->{{#arraydefine: camparray | {{#var: campaigns}} | ;; }}<!--
 
-->{{#arraydefine: camparray | {{#var: campaigns}} | ;; }}<!--
-->{{#tag: pre | {{#arrayprint: camparray||@@@@|<li>@@@@{{!}}@@@@</li>}} }}<!--
 
  
--></noinclude><!--
+
--><!-- {{#if:{{#var:campaigns}}|
 +
* Campaigns {{#arrayprint: camparray||@@@@|.
 +
** @@@@{{!}}@@@@
 +
}}.
 +
}} --><!--
  
-->{{#if:{{#var:campaigns}}|<!--
+
-->{{#if:{{#var:campaigns}}|
 +
* Campaigns
 +
** {{#arrayprint: camparray|{{{nosuch| }}}.
 +
** {{{nosuch| }}}| @@@@|@@@@{{!}}@@@@ }}.
 +
}}<!--
 +
--></onlyinclude><!--
 
-->
 
-->
* Campaigns: <ul>{{#arrayprint: camparray||@@@@|<li>@@@@{{!}}@@@@</li>}}</ul><!--
 
-->}}<!--
 
  
--><!-- {{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:))]]