User:Dantman/Skinning system/Monobook template
This page is a part of Daniel Friesen's Skinning system plans. This page details an idea which was later superseded or re-thought. |
This is likely the template we would use for MonoBook.
- Other format ideas
<div id="globalWrapper">
<div id="column-content">
<div id="content" lang="mw:page">
<a id="top"></a>
<mw:region name="messages" size="wide" special />
<div class="pageicons" mw:optional><mw:pageicons /></div>
<h1 id="firstHeading" class="firstHeading"><mw:title /></h1>
<div id="bodyContent">
<div id="siteSub"><mw:msg key="tagline" /></div>
<mw:subtitles />
<div id="jump-to-nav" lang="mw:user" mw:if="pref:showjumplinks"><mw:msg key="jumpto" /> <a href="#column-one"><mw:msg key="jumptonavigation" /></a>, <a href="#searchInput"><mw:msg key="jumptosearch" /></a></div>
<mw:region name="body" size="wide" primary />
<div class="visualClear"></div>
</div>
</div>
</div>
<div id="column-one" lang="mw:user">
<div id="p-cactions" class="portlet">
<h5><mw:msg key="views" /></h5>
<div class="pBody">
<ul mw:loop="content_actions" />
</div>
</div>
<div class="portlet" id="p-personal">
<h5><mw:msg key="personaltools" /></h5>
<div class="pBody">
<ul lang="mw:user" mw:loop="personal_tools" />
</div>
</div>
<div class="portlet" id="p-logo">
<a style="background-image: url({logo|size=155x155});" href="{nav.mainpage}" mw:tooltip="p-logo" accesskey></a>
</div>
<script>if (window.isMSIE55) fixalpha();</script>
<mw:sidebar>
<div class="{generated}generated-sidebar{/generated} portlet" id="p-*" mw:tooltip="p-*">
<h5><mw:header /></h5>
<div class='pBody'>
<mw:content />
</div>
</div>
</mw:sidebar>
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer" lang="mw:user">
<mw:footericons mw:format="icononly">
<div id="f-*ico" mw:loop>
<mw:icon />
</div>
</mw:footericons>
<ul id="f-list" mw:optional mw:loop="footerlinks:flat" />
</div>
</div>
Brainstorming a catlinks-in-template pattern
edit<div id='catlinks' class='catlinks ' mw:context="categories">
<div id="mw-normal-catlinks" class="mw-normal-catlinks" mw:if="$.normal">
<a href="msg:pagecategorieslink"><mw:msg key="pagecategories" arg1="{$.count}" wikitext /></a><mw:msg key="colon-separator" />
<ul mw:loop="$" />
</div>
<div id="mw-hidden-catlinks" class="mw-hidden-catlinks {$.class}" mw:if="$.hidden">
<a href="msg:pagecategorieslink"><mw:msg key="hidden-categories" arg1="{$.count}" wikitext /></a><mw:msg key="colon-separator" />
<ul mw:loop="$" />
</div>
<mw:if test="$.browser">
<br><hr>
</mw:if>
</div>