Template:Suggestchannels

by 2 contributors:
<div if="show" init="var pg = wiki.getpage(num.cast(__request.args.pageid));
var tags = pg.tags;
var jsapi = [ 'spidermonkey' ];
var extdev = [ 'extensions', 'xul', 'xpcom', 'xpcom api reference', 'xpcom interface reference', 'interfaces' ];
var css = [ 'css' ];
var addons = [ 'add-ons', 'addons', 'extensions', 'plugins' ];
var js = [ 'javascript', 'ajax', 'dom', 'xmlhttprequest' ];
var xul = [ 'xul', 'xul_reference', 'xul reference' ];
var themes = [ 'themes' ];
var devmo = [ 'mdc project', 'mdc' ];
var xulrunner = [ 'xulrunner' ];
var developers = [ 'firefox', 'developing mozilla', 'build documentation' ];
var qa = [ 'qa' ];
var svg = [ 'svg' ];
var xforms = [ 'xforms' ];
var canvas = [ 'canvas' ];
var embedding = [ 'embedding mozilla' ];
var places = [ 'places' ];
var venkman = [ 'venkman' ];
var all = extdev + css + addons + js + xul + themes + devmo + jsapi + xulrunner + developers + qa + svg + xforms+ canvas + embedding + places + venkman;
var show = false; foreach(var tag in tags) if(list.contains(all, string.tolower(tag.name))) show=true;">
<h5>Discuss in IRC</h5>
<ul class="suggestchannels"> <li init="var show = false; foreach(var tag in tags) if(list.contains(addons, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/addons">#addons</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(canvas, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/canvas">#canvas</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(css, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/css">#css</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(embedding, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/embedding">#embedding</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(extdev, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/extdev">#extdev</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(js, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/js">#js</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(devmo, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/devmo">#devmo</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(jsapi, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/jsapi">#jsapi</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(developers, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/developers">#developers</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(places, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/places">#places</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(qa, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/qa">#qa</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(svg, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/svg">#svg</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(venkman, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/venkman">#venkman</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(xforms, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/xforms">#xforms</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(xul, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/xul">#xul</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(themes, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/themedev">#themedev</a></li> <li init="var show = false; foreach(var tag in tags) if(list.contains(xulrunner, string.tolower(tag.name))) show=true;" if="show"><a class="link-irc" href="irc://irc.mozilla.org/xulrunner">#xulrunner</a></li>
</ul>
</div>
Search for pages that use Template:Suggestchannels to see example use cases and how many pages use this macro.

Document Tags and Contributors

Tags: 
Contributors to this page: trevorh, Sheppy
Last updated by: trevorh,