মিডিয়াউইকি:Gadget-TemplatePreloader.js: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Inductiveload (আলোচনা | অবদান)
update to use new {{author}} interwiki parameters
Phe (আলোচনা | অবদান)
handle secure server for author page
২০৭ নং লাইন:
 
// When creating an author page fill field. Always filled, lastname,
// firstname, lastinitial, wikipedia_linkwikipedia, birth/year filled if an
// article is available on wp:en. Try also to avoid duplicate author:
// by creating a redirect if the wikipedia_linkwikipedia is non empty, its title
// is different from the current Author:title and an Author:new_title
// exists.
২৩৭ নং লাইন:
if (wpTextbox1 && !data.query.pages["-1"]) {
for (var ids in data.query.pages) {
wpTextbox1.value = wpTextbox1.value.replace(/( *\\| *wikipedia_linkwikipedia *= *)/, "$1" + data.query.pages[ids].title);
var cats = data.query.pages[ids].categories;
for (var i = 0; i < cats.length; ++i) {
৩৩৬ নং লাইন:
"==Works==\n\n";
 
varif base_url(wgServer == "httphttps://ensecure.wikipediawikimedia.org")
var base_url = "https://secure.wikimedia.org/wikipedia/en/w";
+ wgScriptPath
else
+ "/api.php?format=json&redirects";
var base_url = "http://en.wikipedia.org" + wgScriptPath;
 
var url = base_url
var url = base_url + "/api.php?format=json&redirects";
+ "&callback=author_fill_cb&action=query&prop=categories&cllimit=20&titles="
+ encodeURIComponent(wgTitle);