Wikinews:Custom skin/Latest code

This page contains the most recent code from the Wikinews skin currently entered in the Wikinews design contest. Please note that much of the code is still not optimized and contains a lot of unneeded content. The skin is currently done with tables (not CSS, which I am working to revise it into) as the images were originally exported from Photoshop.


 * I have tried to update this somewhat as noclips version didn't work for me. Unfortunatly i never actually saw what his final product looked like, so it might be slightly(or a lot) different. The original is available in the history. please note there are still issues needing to be worked out with this. All paths are relative to wherever you installed mediawiki (perhaps, or something along those lines) Bawolff ☺☻ 02:39, 20 January 2008 (UTC)

in skins/WikiNews.php   Africa Asia Central America

Europe</a></li> <li><a href="Middle_East">Middle East</a></li> <li><a href="North_America">North America</a></li> <li><a href="Oceania">Oceania</a></li> <li><a href="South_America">South America</a></li> </TD> <TD id="regionsfiller"> </TD> <TD HEIGHT=100 COLSPAN=2 class="sidebar"> Latest news Get involved

Submit a story Newsroom Water cooler </TD></TR> <TR> <TD COLSPAN=8 class="divider"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=800 HEIGHT=1 ALT=""></TD> </TR><?php } ?> <TR> <TD COLSPAN=6 id="content"> <?php foreach($this->data['personal_urls'] as $key => $item) { ?><li id="pt-<?php echo htmlspecialchars($key) ?>"><a href="<?php echo htmlspecialchars($item['href']) ?>"<?php if(!empty($item['class'])) { ?> class="<?php echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php echo htmlspecialchars($item['text']) ?></a></li><?php } ?>

<?php if($this->data['sitenotice']) { ?> <?php $this->html('sitenotice')?> <?php }?> <?php /* echo htmlspecialchars(print_r($this->data))*/ ?> <?php if($this->data['title'] != 'Main Page') { ?><h1 class="contentheader"><?php $this->text('title') ?> <?php } ?> <?php if($this->data['title'] != 'Main Page') { ?> <?php $this->msg('tagline') ?> <?php } ?> <?php if($this->data['title'] != 'Main Page') { ?> <?php $this->html('subtitle') ?> <?php } ?>

<?php if($this->data['undelete']) { ?> <?php    $this->html('undelete') ?> <?php } ?> <?php if($this->data['newtalk'] ) { ?> <?php $this->html('newtalk') ?> <?php } ?> <?php $this->html('bodytext') ?> <?php if($this->data['catlinks']) { ?> <?php      $this->html('catlinks') ?> <?php } ?> </TD> <TD COLSPAN=2 class="sidebar" id="controls"> <?php foreach($this->data['content_actions'] as $key => $action) { ?><a href="<?php echo htmlspecialchars($action['href']) ?>"><?php echo htmlspecialchars($action['text']) ?></a> <?php } ?> <?php if($this->data['notspecialpage']) { foreach( array( 'whatlinkshere', 'recentchangeslinked' ) as $special ) { ?>

<a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) ?>"><?php echo $this->msg($special) ?></a> <?php } } ?><?php if($this->data['feeds']) { ?><?php foreach($this->data['feeds'] as $key => $feed) { ?><span id="feed-<?php echo htmlspecialchars($key) ?>"><a href="<?php echo htmlspecialchars($feed['href']) ?>"><?php echo htmlspecialchars($feed['text'])?></a> <?php } ?><?php } ?><?php foreach( array('contributions', 'emailuser', 'upload', 'specialpages') as $special ) { ?> <?php if($this->data['nav_urls'][$special]) {?><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) ?>"><?php $this->msg($special) ?></a> <?php } ?><?php } ?> </TD> </TR> <TR> <TD bgcolor="#000000"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=450 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000">

<IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=49 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=55 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000"> <IMG SRC="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/spacer.gif" WIDTH=100 HEIGHT=1 ALT=""></TD> <TD bgcolor="#000000"></TD> </TR> <TR> <TD colspan="8" class="footer"> <?php if($this->data['lastmod'  ]) { ?> <?php    $this->html('lastmod')    ?></li><?php } ?> <?php if($this->data['viewcount' ]) { ?> <?php $this->html('viewcount')  ?></li><?php } ?>

<?php if($this->data['credits'  ]) { ?> <?php    $this->html('credits')    ?></li><?php } ?> <?php if($this->data['copyright' ]) { ?> <?php $this->html('copyright')  ?></li><?php } ?> <?php if($this->data['about'    ]) { ?> <?php      $this->html('about')      ?></li><?php } ?> <?php if($this->data['disclaimer']) { ?> <?php $this->html('disclaimer') ?></li><?php } ?> <?php if($this->data['poweredbyico']) { ?> <?php $this->html('poweredbyico') ?></li><?php } ?><?php if($this->data['copyrightico']) { ?> <?php $this->html('copyrightico') ?></li><?php } ?> </TD>

</TR> <TR> <TD colspan="8" class="divider"></TD> </TR> <TR> <TD colspan="8" style="height: 0px"></TD> </TR> </TABLE> </BODY> </HTML> <?php } } ?>

in /skins/wikinews/main.css In skins/WikiNews.deps.php

In skins/wikinews/wn-gradient.png: [[media:wn-gradient.png]]

In skins/wikinews/spacer.gif put a 1 pixel big black dot. (I don't think it overly matters if it is actually there. a transparent dot may also work)