Template:Main Header

From Nanya

(Difference between revisions)
 
Line 1: Line 1:
[[:Category:Characters|Characters]] '''&middot;''' [[:Category:Locations|Locations]]  '''&middot;''' [[:Category:8 Equipment|Equipment]] '''&middot;''' [[:Category:Timeline_of_galactic_history |Chronology]] '''&middot;''' [[Nanya:Quick Index|Index]] '''&middot;''' [[Special:Categories|Categories]]  '''&middot;''' [[:Category:Browse|Browse]] '''&middot;''' [[Forum:In the Core|Discussion]] '''&middot;''' [[Nanya:Frequently asked questions|FAQ]] '''&middot;''' [[Help:Contents|Help]] '''&middot;''' [[Project:Things to do|Things to do]] '''&middot;''' [[Nanya:Article requests|Article requests]]<noinclude>[[Category:Administrative templates|{{PAGENAME}}]]</noinclude>
[[:Category:Characters|Characters]] '''&middot;''' [[:Category:Locations|Locations]]  '''&middot;''' [[:Category:8 Equipment|Equipment]] '''&middot;''' [[:Category:Timeline_of_galactic_history |Chronology]] '''&middot;''' [[Nanya:Quick Index|Index]] '''&middot;''' [[Special:Categories|Categories]]  '''&middot;''' [[:Category:Browse|Browse]] '''&middot;''' [[Forum:In the Core|Discussion]] '''&middot;''' [[Nanya:Frequently asked questions|FAQ]] '''&middot;''' [[Help:Contents|Help]] '''&middot;''' [[Project:Things to do|Things to do]] '''&middot;''' [[Nanya:Article requests|Article requests]]<noinclude>[[Category:Administrative templates|{{PAGENAME}}]]</noinclude>
-
 
-
<style type="text/css">
 
-
  /*
 
-
      Notes:
 
-
      -You must log as admin to edit this page
 
-
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles.
 
-
      -if you want your code to look nice on this page, put a space at the beginning of each line
 
-
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css
 
-
     
 
-
      For example uncomment this next section to turn all the text green:
 
-
  */
 
-
 
-
.CategoryTreeChildren {
 
-
margin-left: 1.5ex;
 
-
}
 
-
 
-
.CategoryTreeBullet a:link {
 
-
text-decoration: none;
 
-
color: inherit;
 
-
font-weight: bold;
 
-
speak: none;
 
-
}
 
-
 
-
.CategoryTreeLabelPage {
 
-
font-style: italic;
 
-
}
 
-
 
-
.CategoryTreeParents {
 
-
margin-top: 1.5ex;
 
-
font-style: italic;
 
-
}
 
-
 
-
.CategoryTreeResult {
 
-
margin-top: 1.5ex;
 
-
}
 
-
 
-
.CategoryTreeTag {
 
-
margin-top: 0.5ex;
 
-
margin-bottom: 0.5ex;
 
-
}
 
-
 
-
.CategoryTreeNotice {
 
-
font-style: italic;
 
-
}
 
-
</style>
 
-
 
-
<script type="text/javascript">
 
-
function categoryTreeNextDiv(e) {
 
-
var n= e.nextSibling;
 
-
while ( n && ( n.nodeType != 1 || n.nodeName != 'DIV') ) {
 
-
//alert('nodeType: ' + n.nodeType + '; nodeName: ' + n.nodeName);
 
-
n= n.nextSibling;
 
-
}
 
-
     
 
-
return n;
 
-
}
 
-
   
 
-
function categoryTreeExpandNode(cat, mode, lnk) {
 
-
var div= categoryTreeNextDiv( lnk.parentNode.parentNode );
 
-
     
 
-
div.style.display= 'block';
 
-
lnk.innerHTML= '&ndash;';
 
-
lnk.title= categoryTreeCollapseMsg;
 
-
lnk.onclick= function() { categoryTreeCollapseNode(cat, mode, lnk) }
 
-
       
 
-
if (lnk.className != "CategoryTreeLoaded") {
 
-
categoryTreeLoadNode(cat, mode, lnk, div);
 
-
}
 
-
}
 
-
   
 
-
function categoryTreeCollapseNode(cat, mode, lnk) {
 
-
var div= categoryTreeNextDiv( lnk.parentNode.parentNode );
 
-
     
 
-
div.style.display= 'none';
 
-
lnk.innerHTML= '+';
 
-
lnk.title= categoryTreeExpandMsg;
 
-
lnk.onclick= function() { categoryTreeExpandNode(cat, mode, lnk) }
 
-
}
 
-
   
 
-
function categoryTreeLoadNode(cat, mode, lnk, div) {
 
-
div.style.display= 'block';
 
-
lnk.className= 'CategoryTreeLoaded';
 
-
lnk.innerHTML= '&ndash;';
 
-
lnk.title= categoryTreeCollapseMsg;
 
-
lnk.onclick= function() { categoryTreeCollapseNode(cat, mode, lnk) }
 
-
 
-
categoryTreeLoadChildren(cat, mode, div)
 
-
}
 
-
   
 
-
function categoryTreeLoadChildren(cat, mode, div) {
 
-
div.innerHTML= '<i class="CategoryTreeNotice">' + categoryTreeLoadingMsg + '</i>';
 
-
     
 
-
function f( request ) {
 
-
result= request.responseText;
 
-
result= result.replace(/^\\s+|\\s+$/, '');
 
-
 
-
if (request.status != 200) result= "<div class='error'> " + request.status + " " + request.statusText + ": " + result + "</div>";
 
-
         
 
-
if ( result == '' ) {
 
-
result= '<i class="CategoryTreeNotice">';
 
-
                   
 
-
if ( mode == 0 ) result= categoryTreeNoSubcategoriesMsg;
 
-
else if ( mode == 10 ) result= categoryTreeNoPagesMsg;
 
-
else result= categoryTreeNothingFoundMsg;
 
-
                   
 
-
result+= '</i>';
 
-
}
 
-
         
 
-
result = result.replace(/##LOAD##/g, categoryTreeExpandMsg);
 
-
div.innerHTML= result;
 
-
}
 
-
     
 
-
sajax_do_call( "efCategoryTreeAjaxWrapper", [cat, mode] , f );
 
-
}
 
-
   
 
-
</script>
 

Current revision as of 07:25, 7 July 2007

Characters · Locations · Equipment · Chronology · Index · Categories · Browse · Discussion · FAQ · Help · Things to do · Article requests

Personal tools