|
|
Line 1: |
Line 1: |
| [[:Category:Characters|Characters]] '''·''' [[:Category:Locations|Locations]] '''·''' [[:Category:8 Equipment|Equipment]] '''·''' [[:Category:Timeline_of_galactic_history |Chronology]] '''·''' [[Nanya:Quick Index|Index]] '''·''' [[Special:Categories|Categories]] '''·''' [[:Category:Browse|Browse]] '''·''' [[Forum:In the Core|Discussion]] '''·''' [[Nanya:Frequently asked questions|FAQ]] '''·''' [[Help:Contents|Help]] '''·''' [[Project:Things to do|Things to do]] '''·''' [[Nanya:Article requests|Article requests]]<noinclude>[[Category:Administrative templates|{{PAGENAME}}]]</noinclude> | | [[:Category:Characters|Characters]] '''·''' [[:Category:Locations|Locations]] '''·''' [[:Category:8 Equipment|Equipment]] '''·''' [[:Category:Timeline_of_galactic_history |Chronology]] '''·''' [[Nanya:Quick Index|Index]] '''·''' [[Special:Categories|Categories]] '''·''' [[:Category:Browse|Browse]] '''·''' [[Forum:In the Core|Discussion]] '''·''' [[Nanya:Frequently asked questions|FAQ]] '''·''' [[Help:Contents|Help]] '''·''' [[Project:Things to do|Things to do]] '''·''' [[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= '–';
| |
- | 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= '–';
| |
- | 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>
| |