Add a second copy of the catlinks at the top of the article (just under the article...
authorArne Heizmann <timwi@users.mediawiki.org>
Sun, 24 Jul 2005 21:59:52 +0000 (21:59 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Sun, 24 Jul 2005 21:59:52 +0000 (21:59 +0000)
make it invisible using display:none. This way people who would prefer the categories at the
top can customize the appearance of the wiki using CSS without having to resort to ugly
JavaScript hacks.

skins/MonoBook.php
skins/monobook/main.css

index 17a952d..5184a03 100644 (file)
@@ -80,6 +80,7 @@ class MonoBookTemplate extends QuickTemplate {
          <?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
          <h1 class="firstHeading"><?php $this->text('title') ?></h1>
          <div id="bodyContent">
+           <?php if($this->data['catlinks']) { ?><div id="catlinks-top"><?php   $this->html('catlinks') ?></div><?php } ?>
            <h3 id="siteSub"><?php $this->msg('tagline') ?></h3>
            <div id="contentSub"><?php $this->html('subtitle') ?></div>
            <?php if($this->data['undelete']) { ?><div id="contentSub"><?php     $this->html('undelete') ?></div><?php } ?>
index ff04c7d..ef4ee6d 100644 (file)
@@ -273,6 +273,10 @@ span.subpages {
     margin-top: 1em;
     clear: both;
 }
+#catlinks-top {
+    display: none;
+}
+
 /* currently unused, intended to be used by a metadata box
 in the bottom-right corner of the content area */
 .documentDescription {