* (bug 5236) Load wikibits.js before site-customized javascript
[mediawiki.git] / skins / MonoBook.tpl
blob033999e38cd433458242a8427d1028c523f7dc01
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang}" lang="{lang}" dir="{dir}">
3 <head>
4         <meta http-equiv="Content-Type" content="{~ mimetype}; charset={~ charset}" />
5         {headlinks}
6         {headscripts}
7         <title>{pagetitle}</title>
8         <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "{~ stylepath}/{~ stylename}/main.css?5"; /*]]>*/</style>
9         <link rel="stylesheet" type="text/css" {if notprintable {media="print"}} href="{~ stylepath}/common/commonPrint.css" />
10         <!--[if lt IE 5.5000]><style type="text/css">@import "{~ stylepath}/{~ stylename}/IE50Fixes.css";</style><![endif]-->
11         <!--[if IE 5.5000]><style type="text/css">@import "{~ stylepath}/{~ stylename}/IE55Fixes.css";</style><![endif]-->
12         <!--[if IE 6]><style type="text/css">@import "{~ stylepath}/{~ stylename}/IE60Fixes.css";</style><![endif]-->
13         <!--[if IE 7]><style type="text/css">@import "{~ stylepath}/{~ stylename}/IE70Fixes.css?1";</style><![endif]-->
14         <!--[if lt IE 7]><script type="{jsmimetype}" src="{~ stylepath}/common/IEFixes.js"></script>
15         <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
16         <script type="{jsmimetype}" src="{~ stylepath}/common/wikibits.js"><!-- wikibits js --></script>
17         {if jsvarurl {<script type="{jsmimetype}" src="{jsvarurl}"><!-- site js --></script>}}
18         {if pagecss {<style type="text/css">{pagecss}</style>}}
19         {usercss}
20         {sitecss}
21         {gencss}
22         {if userjs {<script type="{jsmimetype}" src="{userjs}"></script>}}
23         {if userjsprev {<script type="{jsmimetype}">{userjsprev}</script>}}
24         {trackbackhtml}
25 </head>
26 <body {if body_ondblclick {ondblclick="{body_ondblclick}"}} {if body_onload {onload="{body_onload}" }} class="{~ nsclass} {~ dir}">
27 <div id="globalWrapper">
28         <div id="column-content">
29                 <div id="content">
30                         <a name="top" id="top"></a>
31                         {if sitenotice {<div id="siteNotice">{sitenotice}</div> }}
32                         <h1 class="firstHeading">{title}</h1>
33                         <div id="bodyContent">
34                                 <h3 id="siteSub">{msg {tagline}}</h3>
35                                 <div id="contentSub">{subtitle}</div>
36                                 {if undelete {<div id="contentSub2"><span class="subpages">{undelete}</span></div> }}
37                                 {if newtalk {<div class="usermessage">{newtalk}</div> }}
38                                 {if showjumplinks {
39                                         <div id="jump-to-nav">{msg {jumpto}} <a href="#column-one">{msg {jumptonavigation}}</a>, 
40                                         <a href="#searchInput">{msg {jumptosearch}}</a></div> 
41                                 }}
42                                 <!-- start content -->
43                                 {bodytext}
44                                 {if catlinks {<div id="catlinks">{catlinks}</div> }}
45                                 <!-- end content -->
46                                 <div class="visualClear"></div>
47                         </div>
48                 </div>
49         </div>
50         <div id="column-one">
51                 <div id="p-cactions" class="portlet">
52                         <h5>{msg {views}}</h5>
53                         <ul>
54                                 {if is_special {
55                                         <li id="ca-article" class="selected"><a href="{request_url}">{msg {specialpage}}</a></li>
56                                 } {
57                                         <li id="ca-{nskey}" {selecttab {subject} subject_newclass}><a href="{subject_url}">{msg nskey}</a></li>
58                                         <li id="ca-talk" {selecttab {talk} talk_newclass}><a href="{talk_url}">{msg {talk}}</a></li>
59                                         {if can_edit {
60                                                 {if is_talk {
61                                                         <li id="ca-edit" {selecttab {edit} {istalk}}><a href="{edit_url}">{msg {edit}}</a></li>
62                                                         <li id="ca-addsection" {selecttab {addsection}}><a href="{localurl {action=edit&section=new}}">{msg {addsection}}</a></li>
63                                                 } {
64                                                         <li id="ca-edit" {selecttab {edit}}><a href="{edit_url}">{msg {edit}}</a></li>
65                                                 }}
66                                         } {
67                                                 <li id="ca-viewsource" {selecttab {edit}}><a href="{edit_url}">{msg {viewsource}}</a></li>
68                                         }}
70                                         {if article_exists {
71                                                 <li id="ca-history" {selecttab {history}}><a href="{localurl {action=history}}">{msg {history_short}}</a></li>
72                                                 {if {{ is_allowed {protect} }} {
73                                                         {if is_ns_mediawiki {
74                                                                 {if is_protected {
75                                                                         <li id="ca-protect" {selecttab {protect}}><a href="{localurl {action=protect}}">{msg {protect}}</a></li>
76                                                                 } {
77                                                                         <li id="ca-protect" {selecttab {protect}}><a href="{localurl {action=unprotect}}">{msg {unprotect}}</a></li>
78                                                                 }}
79                                                         }}
80                                                 }}
81                                                 
82                                                 {if {{ is_allowed {delete} }} {
83                                                                 <li id="ca-delete" {selecttab {delete}}><a href="{localurl {action=delete}}">{msg {delete}}</a></li>
84                                                 }}
85                                                 {if {{ is_allowed {move} }} {
86                                                         {if can_move {
87                                                                         <li id="ca-move" {selecttab {move}}><a href="{move_url}">{msg {move}}</a></li>
88                                                         }}
89                                                 }}
90                                                 {if is_loggedin {
91                                                         {if is_watching {
92                                                                 <li id="ca-unwatch" {selecttab {watch}}><a href="{localurl {action=unwatch}}">{msg {unwatch}}</a></li>
93                                                         } {
94                                                                 <li id="ca-watch" {selecttab {watch}}><a href="{localurl {action=watch}}">{msg {watch}}</a></li>
95                                                         }}
96                                                 }}
97                                         }}
98                                 }}
99                                 {extratabs {<li id="ca-$id" $class><a href="$href">$text</a></li>}}
100                         </ul>
101                 </div>
102                 <div class="portlet" id="p-personal">
103                         <h5>{msg {personaltools}}</h5>
104                         <div class="pBody">
105                                 <ul>                                            
106                                         {personal_urls { <li id="pt-$key" $classactive ><a href="$href" $class>$text</a></li> }}
107                                 </ul>
108                         </div>
109                 </div>
110                 <div class="portlet" id="p-logo">
111                         <a style="background-image: url({~ logopath});" href="{mainpage}" title="{msg {mainpage}}"></a>
112                 </div>
113                 <script type="{jsmimetype}"> if (window.isMSIE55) fixalpha(); </script>
114                 {sidebar {
115                         <div class='portlet' id="p-$bar">
116                                 <h5>$barname</h5>
117                                 <div class='pBody'>
118                                 <ul>
119                 } {
120                                 </ul>
121                                 </div>
122                         </div>
123                 } {<li id="$id" $classactive><a href="$href">$text</a></li>
124                         }
125                 }
127                 <div id="p-search" class="portlet">
128                         <h5><label for="searchInput">{msg {search}}</label></h5>
129                         <div id="searchBody" class="pBody">
130                                 <form action="{searchaction}" id="searchform"><div>
131                                         <input id="searchInput" name="search" type="text" {
132                                                 }{if {{fallbackmsg {accesskey-search} {} }} {accesskey="{fallbackmsg {accesskey-search} {} }"}}{
133                                                 }{if search { value="{search}"}} />
134                                         <input type='submit' name="go" class="searchButton" id="searchGoButton" value="{msg {go}}" />&nbsp;
135                                         <input type='submit' name="fulltext" class="searchButton" value="{msg {search}}" />
136                                 </div></form>
137                         </div>
138                 </div>
139                 <div class="portlet" id="p-tb">
140                         <h5>{msg {toolbox}}</h5>
141                         <div class="pBody">
142                                 <ul>
143                                         {if notspecialpage    {<li id="t-whatlinkshere"><a href="{nav_whatlinkshere}">{msg {whatlinkshere}}</a></li> }}
144                                         {if article_exists {<li id="t-recentchangeslinked"><a href="{nav_recentchangeslinked}">{msg {recentchangeslinked}}</a></li> }}
145                                         {if nav_trackbacklink {<li id="t-trackbacklink"><a href="{nav_trackbacklink}">{msg {trackbacklink}}</a></li>}}
146                                         {if feeds
147                                                 {<li id="feedlinks">{feeds {<span id="feed-$key"><a href="$href">$text</a>&nbsp;</span>}}
148                                         </li>}}
149                                         {if is_userpage {
150                                                 <li id="t-contributions"><a href="{nav_contributions}">{msg {contributions}}</a></li>
151                                                 {if {{is_allowed {block}}} {<li id="t-blockip"><a href="{nav_blockip}">{msg {blockip}}</a></li>}}
152                                                 {if is_loggedin     {<li id="t-emailuser"><a href="{nav_emailuser}">{msg {emailuser}}</a></li>}}
153                                         }}
154                                         {if nav_upload        {<li id="t-upload"><a href="{nav_upload}">{msg {upload}}</a></li>}}
155                                         {if nav_specialpages  {<li id="t-specialpages"><a href="{nav_specialpages}">{msg {specialpages}}</a></li>}}
156                                         {if nav_print         {<li id="t-print"><a href="{nav_print}">{msg {printableversion}}</a></li>}}
157                                         {if nav_permalink     {<li id="t-permalink"><a href="{nav_permalink}">{msg {permalink}}</a></li>}}
158                                         {if is_permalink      {<li id="t-ispermalink">{msg {permalink}}</li>}}
160                                         {toolboxend}
161                                 </ul>
162                         </div>
163                 </div>
164                 {language_urls {
165                         <div id="p-lang" class="portlet">
166                                 <h5>{msg {otherlanguages}}</h5>
167                                 <div class="pBody">
168                                         <ul>
169                                                 $body
170                                         </ul>
171                                 </div>
172                         </div>
173                 } {
174                         <li class="$class"><a href="$href">$text</a></li>
175                 }}      
176         </div><!-- end of the left (by default at least) column -->
177         <div class="visualClear"></div>
178         <div id="footer">
179                 {if poweredbyico { <div id="f-poweredbyico">{poweredbyico}</div> }}
180                 {if copyrightico { <div id="f-copyrightico">{copyrightico}</div> }}
182                 <ul id="f-list">
183                         {if lastmod                {  <li id="lastmod">{lastmod}</li> }}
184                         {if viewcount              {  <li id="viewcount">{viewcount}</li> }}
185                         {if numberofwatchingusers  {  <li id="numberofwatchingusers">{numberofwatchingusers}</li> }}
186                         {if credits                {  <li id="credits">{credits}</li> }}
187                         {if is_currentview         {  <li id="copyright">{normalcopyright}</li> }}
188                         {if usehistorycopyright    {  <li id="copyright">{historycopyright}</li> }}
189                         {if privacy                {  <li id="privacy">{privacy}</li> }}
190                         {if about                  {  <li id="about">{about}</li> }}
191                         {if disclaimer             {  <li id="disclaimer">{disclaimer}</li> }}
192                         {if tagline                {  <li id="tagline">{tagline}</li> }}
193                 </ul>
194         </div>
195         <script type="text/javascript"> if (window.runOnloadHook) runOnloadHook();</script>
196 </div>
197 {reporttime}
198 {if {} { vim: set syn=html ts=2 : }}
199 </body></html>