Template:Wiki banner: Difference between revisions

From OLPC
Jump to navigation Jump to search
(..)
m (..)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table class="plainlinks qxz-ads" style="margin: auto; color: {{{color|#555555}}}; border: none; background: {{{background|transparent}}}; line-height: 1em; font-size: 90%"><tr><td colspan="2">{{#tag:imagemap|Image:olpc-banner{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}.{{#switch:{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}|4|5|8=png|gif}}
<includeonly><table class="plainlinks qxz-ads" style="margin: auto; color: {{{color|#555555}}}; border: none; background: {{{background|transparent}}}; line-height: 1em; font-size: 90%"><tr><td colspan="2">{{#tag:imagemap|Image:wiki-banner-{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}.{{#switch:{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}|4|5|8=png|gif}}
default [[{{#switch:{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}
default [[{{#switch:{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}
|0|1=Barnstars
|0|1=Barnstars
Line 11: Line 11:
desc none}}</td></tr>{{#if:{{{nolinks|}}}||<tr><td>[[Template:Wiki banner|<font color="{{{linkcolor|#002bb8}}}">Wiki Banners</font>]]</td><td style="text-align: right"> [{{fullurl:Image:wiki-banner{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}.{{#switch:{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}|4|5|8=png|gif}}}} <font color="{{{linkcolor|#002bb8}}}">file info</font>] {{#if:{{{banner|}}}||– [{{fullurl:{{FULLPAGENAME}}|action=purge}} <font color="{{{linkcolor|#002bb8}}}">show another</font>]}} – #{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}</td></tr>}}</table></includeonly><noinclude>
desc none}}</td></tr>{{#if:{{{nolinks|}}}||<tr><td>[[Template:Wiki banner|<font color="{{{linkcolor|#002bb8}}}">Wiki Banners</font>]]</td><td style="text-align: right"> [{{fullurl:Image:wiki-banner{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}.{{#switch:{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}|4|5|8=png|gif}}}} <font color="{{{linkcolor|#002bb8}}}">file info</font>] {{#if:{{{banner|}}}||– [{{fullurl:{{FULLPAGENAME}}|action=purge}} <font color="{{{linkcolor|#002bb8}}}">show another</font>]}} – #{{{banner|{{#expr:{{NUMBEROFEDITS:R}} mod 7}}}}}</td></tr>}}</table></includeonly><noinclude>


{{:Template:wiki banner/doc}}
Documentation: see [[Template:wiki banner/doc]].
This relies on
<!-- this is silly subpage usage! -->
: NUMBEROFEDITS : {{NUMBEROFEDITS}}
: NUMBEROFEDITS:R : {{NUMBEROFEDITS:R}}
: #expr:" " mod N : {{#expr:{{NUMBEROFEDITS:R}} mod 7}}
: #tag:imagemp : {{#tag:imagemap|image:wiki-banner-1.gif}}
:: or < tag > ?
<imagemap>
image:wiki-banner-1.gif
rect 0 0 468 60 [[:metaWikimedia:Wikimania 2008]]
</imagemap>

For instance, see 1 : {{wiki banner|banner=1}}


</noinclude>
</noinclude>

Latest revision as of 02:47, 14 February 2008


Documentation: see Template:wiki banner/doc. This relies on

NUMBEROFEDITS : 325,733
NUMBEROFEDITS:R : 325733
#expr:" " mod N : 2
#tag:imagemp : <imagemap>image:wiki-banner-1.gif</imagemap>
or < tag > ?

<imagemap> image:wiki-banner-1.gif rect 0 0 468 60 metaWikimedia:Wikimania 2008 </imagemap>

For instance, see 1 :