Template:Main Page/sandbox: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
Line 10: Line 10:
<div id="mp-left" class="MainPageBG mp-box">
<div id="mp-left" class="MainPageBG mp-box">
<h2 id="mp-tfa-h2" class="mp-h2">Featured article</h2>
<h2 id="mp-tfa-h2" class="mp-h2">Featured article</h2>
<div id="mp-tfa" class="mp-contains-float">{{#ifexpr:{{formatnum:{{PAGESIZE:Wikivahdat:Today's featured article/{{#time:F j, Y}}}}|R}}>150|{{Wikivahdat:Today's featured article/{{#time:F j, Y}}}}|{{#ifexist: {{Wikivahdat:Today's featured article/{{#time:F j, Y|-1 day}}}}|{{Wikivahdat:Today's featured article/{{#time:F j, Y|-1 day}}}}|{{Wikivahdat:Today's featured article}}}}}}</div>
<div id="mp-tfa" class="mp-contains-float">{{#ifexpr:{{formatnum:{{PAGESIZE:Wikivahdat:Today's featured article/{{#time:F j, Y}}}}|R}}>150|{{Wikivahdat:Today's featured article/{{#time:F j, Y}}}}|{{Wikivahdat:Today's featured article}}}}</div>
<h2 id="mp-dyk-h2" class="mp-h2">Did you know&nbsp;...</h2>
<h2 id="mp-dyk-h2" class="mp-h2">Did you know&nbsp;...</h2>
<div id="mp-dyk" class="mp-contains-float">{{Did you know}}</div>
<div id="mp-dyk" class="mp-contains-float">{{Did you know}}</div>
Line 18: Line 18:
<div id="mp-itn" class="mp-contains-float">{{In the news}}</div>
<div id="mp-itn" class="mp-contains-float">{{In the news}}</div>
<h2 id="mp-otd-h2" class="mp-h2">On this day</h2>
<h2 id="mp-otd-h2" class="mp-h2">On this day</h2>
<div id="mp-otd" class="mp-contains-float">{{Wikivahdat:Selected anniversaries/{{#time:F j}}}}</div>
<div id="mp-otd" class="mp-contains-float">{{#ifexist:{{Wikivahdat:Selected anniversaries/{{#time:F j}}}}|{{Wikivahdat:Selected anniversaries/{{#time:F j}}}}|{{Wikivahdat:Selected anniversaries}}}}</div>
</div>
</div>
</div>
</div>
<!-- IF MONDAY OR FRIDAY, SHOW TFL -->{{#switch:{{CURRENTDAYNAME}}|Monday|Friday=
<!-- IF NO, SHOW TFL -->{{#switch:{{CURRENTDAYNAME}}|NO=
<div id="mp-middle" class="MainPageBG mp-box">
<div id="mp-middle" class="MainPageBG mp-box">
<h2 id="mp-tfl-h2" class="mp-h2">From today's featured list</h2>
<h2 id="mp-tfl-h2" class="mp-h2">From today's featured list</h2>
<div id="mp-tfl" class="mp-contains-float"></div>
<div id="mp-tfl" class="mp-contains-float">{{#ifexist:Wikipedia:Today's featured list/{{#time:F j, Y}}|{{Wikipedia:Today's featured list/{{#time:F j, Y}}}}|{{TFLempty}}}}</div>
</div>}}<!-- END CONDITIONAL SHOW -->
</div>}}<!-- END CONDITIONAL SHOW -->
<div id="mp-lower" class="MainPageBG mp-box">
<div id="mp-lower" class="MainPageBG mp-box">
<h2 id="mp-tfp-h2" class="mp-h2">Featured picture</h2>
<h2 id="mp-tfp-h2" class="mp-h2">Featured picture</h2>
<div id="mp-tfp"></div>
<div id="mp-tfp">{{#ifexist:Template:POTD protected/{{#time:Y-m-d}}|{{POTD protected/{{#time:Y-m-d}}}}|{{POTD protected}}}}</div>
</div>
</div>
<div id="mp-bottom" class="mp-box">
<div id="mp-bottom" class="mp-box">