addStyle('scratchwikiskin/main.css', 'screen'); $out->addHeadItem('skinscript', ""); } } class ScratchWikiSkinTemplate extends BaseTemplate{ public function execute() { global $wgRequest, $wgStylePath, $wgUser; $skin = $this->data['skin']; wfSuppressWarnings(); $this->html('headelement'); ?>
getSidebar() as $box): if ($box['header']!='Toolbox'||$wgUser->isLoggedIn()){?>

    $item):?> makeListItem($name, $item)?>
renderContenttypeBox(); if (!$wgUser->isLoggedIn()) { ?>

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more!

html('title')?>

data['subtitle']):?>

html('subtitle')?>

data['undelete']):?>

html('undelete')?>

html('bodytext')?> data['catlinks'] ): ?> html( 'catlinks' ); ?>
printTrail(); ?> data['catlinks'] ) { $cat = $this->data['catlinks']; if(strpos($cat, 'Tutorials')>0 || strpos($cat, 'FAQ')>0 || strpos($cat, 'Help Pages')>0) { $contenttype = 'helppage'; } else if(strpos($cat, 'Portals')>0) { $contenttype = 'portal'; } else { $contenttype = 'descriptive'; } } else { //not good. we need a better way to find out when not to content-categorize a page. $contenttype = 'descriptive'; } $titles = Array('descriptive'=>'Information Page', 'helppage'=>'How-to Page', 'portal'=>'Portal'); $info = Array( 'descriptive' => 'This page has information, facts, and history about this subject.', 'helppage' => 'This page provides step-by-step help on how to do something.', 'portal' => 'This page contains links to help you find the information you\'re looking for.'); $o = '
'. '

'.$titles[$contenttype].'

'. '
'./*'
'*/ $info[$contenttype].'
'. '
'; if ($contenttype!='portal') { echo $o; } } }