Hallo Gemeinde,
ich sitze gerade an der Umsetzung eines YAML Skins für MediaWiki.
Soweit so gut, allerdings frage ich mich wie das Template in Bezug auf Class und IDs angepasst werden soll..
Soll heissen: soll ich jetzt alles was entsprechend ersetzt werden kann (z.B. #globalWrapper wird zu .page_margins)
Z.b. heissen die skiplinks in mediawiki "jump-to-nav". Das muss doch nahtlos an die yaml class ".skip" im span wrap (.hideme) angepasst werden, oder zerstöre ich mir damit evtl. wiki Funktionalitäten?
Nachfolgend eine kleine Liste mit den bis jetzt bereits ersetzten Markern.
MediaWiki TagsYAML Tags
#globalWrapper#page_margins
#pLogo#header
#p-personal, #p-captions#nav
#column_content#main
#column_one#col1
#content#col3
So sieht bei mir der Anfang aus:
Bin ich mit dieser Variante auf dem richtigen Weg??Code:<!-- Body --> <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?> <?php if($this->data['body_onload']) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?> class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>"> <div class="page_margins"> <div class="page"> <!-- begin: header --> <div id="header"> <!-- Search Box --> <div id="p-search" class="portlet"> <h5><label for="searchInput"><?php $this->msg('search') ?></label></h5> <div id="searchBody" class="pBody"> <form action="<?php $this->text('searchaction') ?>" id="searchform"><div> <input id="searchInput" name="search" type="text"<?php echo $skin->tooltipAndAccesskey('search'); if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type='submit' name="go" class="searchButton" id="searchGoButton" value="<?php $this->msg('searcharticle') ?>" /> <input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="<?php $this->msg('searchbutton') ?>" /> </div></form> </div> </div> <!-- begin: topnav --> <div id="topnav"> <!-- start: skip link navigation --> <a class="skip" href="#navigation" title="skip link">skip to navigation</a><span class="hideme">.</span> <a class="skip" href="#content" title="skip link">Skip to the content</a><span class="hideme">.</span> <!-- end: skip link navigation --> <!-- Jump-To Links (intra-page navigation) [conditional] [optional] --> <?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#content"><?php $this->msg('jumptonavigation') ?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div><?php } ?> </div> <!-- end: topnav --> <!-- Logo Image --> <div class="portlet" id="p-logo"> <a style="background-image: url(<?php $this->text('logopath') ?>);" <?php ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a> </div> <script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script> <!-- IE alpha-transparency fix --> </div> <!-- end: header -->
Beste Grüße
Info


Zitieren
Lesezeichen