Vikidia currently has 3,011 articles. Improve it!

Join Vikidia: create your account now and improve it!

Vikidia:Requests/Administrators/2015 09

From Vikidia, the encyclopedia for 8 to 13-year-old children that everybody can make better
Jump to: navigation, search

Update on protected page Vikidia:Image of the week[edit | edit source]

Dear administrators,

When the page Vikidia:Image of the week is used to include one image, that image is followed with a link "→ See more!". That link should actually appear only when the page is transcluded on Vikidia Main page, not when transcluded on any other pages (e.g. Vikidia:Talk/2014/22). I overlooked this when adding the "→ See more!" link on 13 June. Since the page is now protected, I need your help to correct my mistake!

The code to update is at the beginning of the page, where the <div...>...→ See more!...</div> should be displayed conditionally. That whole DIV should be surrounded with {{#ifeq:{{FULLPAGENAME}}|Main Page| and }}. The result should be as follows (beginning of the page up to <noinclude>):

<includeonly>{{Vikidia:Image of the week/{{{year|{{CURRENTWEEK.YEAR}}}}}|week={{{week|{{CURRENTWEEK}}}}}}}{{#ifeq:{{FULLPAGENAME}}|Main Page|<div style="background-color:#F2FFE5; float:right; width:12em; text-align:right; margin:20px 0 10px 0; border-top:2px solid #90FF40;">'''''[[Vikidia:Image of the week|→ See more!]]'''''</div>}}</includeonly><noinclude>

Thanks in advance,

Klipe (talk) 23:40, 26 September 2015 (CEST)

 Done, thank you for working. --CRH (Noia 64 apps xeyes-2.pngNuvola apps ksig.png) 06:43, 27 September 2015 (CEST)