From GamingWiki
Jump to: navigation, search
 
(20 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}} | ;; }}<!--
 +
 
 +
--><!-- {{#if:{{#var:campaigns}}|
 +
* Campaigns {{#arrayprint: camparray||@@@@|.
 +
** @@@@{{!}}@@@@
 +
}}.
 +
}} --><!--
 +
 
 +
-->{{#if:{{#var:campaigns}}|
 +
* Campaigns
 +
** {{#arrayprint: camparray|{{{nosuch| }}}.
 +
** {{{nosuch| }}}| @@@@|@@@@{{!}}@@@@ }}.
 +
}}<!--
 +
--></onlyinclude><!--
 
-->
 
-->
* Campaigns:<!--
 
-->}}<!--
 
  
-->{{#vardefine: lidx | 0}}<!--
+
{{#if:{{#var:campaigns}}|{{#tag:pre|
-->{{#while: |{{#vardefineecho: thelink | {{#explode: {{#var: campaigns}} | ;; | {{#var: lidx}} }} }}<!--
+
* Campaigns
-->|<!-- iterate over the retrieved links
+
** {{#arrayprint: camparray|.{{{nosuch| }}}
  --><nowiki />
+
** {{{nosuch| }}}|@@@@| @@@@{{!}}@@@@ }}
** {{#var:thelink}}{{!}}{{#var:thelink}} <!--
+
}}}}
  -->{{#vardefine: lidx | {{#expr: {{#var:lidx}} + 1}} }}<!--
 
-->}}<!-- end link list loop
 
  
-->
+
{{#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:))]]