"മീഡിയവിക്കി:RefToolbarLocal.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
Content deleted Content added
(ചെ.) +-
(ചെ.) Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?).
വരി 16: വരി 16:
*
*
* "modal" - if true, the dialogs will be modal windows, blocking access to the rest of the window.
* "modal" - if true, the dialogs will be modal windows, blocking access to the rest of the window.
* See http://en.wikipedia.org/wiki/Modal_window
* See //en.wikipedia.org/wiki/Modal_window
* All dialogs in the toolbar are modal by default
* All dialogs in the toolbar are modal by default
*
*
വരി 267: വരി 267:
"cite-error-unclosed" : "അടയ്ക്കാത്ത <span style='font-family:monospace'>&lt;ref&gt;</span> റ്റാഗുകൾ",
"cite-error-unclosed" : "അടയ്ക്കാത്ത <span style='font-family:monospace'>&lt;ref&gt;</span> റ്റാഗുകൾ",
"cite-error-samecontent" : "ഒരേ ഉള്ളടക്കമുള്ള ഒന്നിലധികം അവലംബങ്ങൾ",
"cite-error-samecontent" : "ഒരേ ഉള്ളടക്കമുള്ള ഒന്നിലധികം അവലംബങ്ങൾ",
"cite-error-templates" : "<a href='http://en.wikipedia.org/wiki/Wikipedia:Citation_templates'>സൈറ്റേഷൻ ഫലകം</a> ഉപയോഗിക്കാത്ത അവലംബങ്ങൾ",
"cite-error-templates" : "<a href='//en.wikipedia.org/wiki/Wikipedia:Citation_templates'>സൈറ്റേഷൻ ഫലകം</a> ഉപയോഗിക്കാത്ത അവലംബങ്ങൾ",
"cite-error-repeated" : "ഒരേ പേരിലുള്ള ഒന്നിലധികം അവലംബങ്ങൾ",
"cite-error-repeated" : "ഒരേ പേരിലുള്ള ഒന്നിലധികം അവലംബങ്ങൾ",
"cite-error-undef" : "പേരുള്ള അവലംബങ്ങൾ നിർവചിക്കാതെ ഉപയോഗിക്കൽ",
"cite-error-undef" : "പേരുള്ള അവലംബങ്ങൾ നിർവചിക്കാതെ ഉപയോഗിക്കൽ",

19:43, 8 ജനുവരി 2012-നു നിലവിലുണ്ടായിരുന്ന രൂപം

/* Sitewide options for the the Cite toolbar button:
* All options should be specified
*
* "date format" sets the date format used for the function to insert the current date
* Current available options:
* date - the day of the month
* zdate - day of the month, zero padded to 2 digits
* monthname - The month name
* month - The numberic month (1-12)
* zmonth - numeric month, zero padded to 2 digits
* year - The full year (4 digits)
*
* "autodate fields" is a list of template fields that should have a button to insert the current date
* 
* "months" is a list of localized month names
*
* "modal" - if true, the dialogs will be modal windows, blocking access to the rest of the window.
* See //en.wikipedia.org/wiki/Modal_window
* All dialogs in the toolbar are modal by default
*
* "autoparse" - if true, previewing a ref will automatically trigger a preview of the parsed wikitext.
* Its not recommended to set this to true as a global setting as it may slow the script down for people
* with slow connections
*
* "expandtemplates" - if true, templates and parser functions will be expanded when getting page text
* (templates inside of ref tags will not be expanded). This will allow references inside of templates or
* references using {{#tag:ref}} to be listed in the named refs dialog and searched by error checks.
* This may slow loading the named refs and error check dialogs.
*/

CiteTB.Options = {
"date format" : "<date> <monthname> <year>",
"autodate fields" : ['accessdate'],
"months" : ['ജനുവരി', 'ഫെബ്രുവരി', 'മാർച്ച്', 'ഏപ്രിൽ', 'മെയ്', 'ജൂൺ', 'ജൂലൈ', 'ഓഗസ്റ്റ്', 'സെപ്റ്റംബർ', 'ഒക്ടോബർ', 'നവംബർ', 'ഡിസംബർ'],
"modal" : true,
"autoparse" : false,
"expandtemplates" : false
};

// Cite template definitions
new citeTemplate('cite web', 'വെബ്',
[ // Basic fields
{"field": "first", "label":"പ്രഥമനാമം", "tooltip": "രചയിതാവിന്റെ പ്രഥമനാമം"}, 
{"field": "last", "label":"അവസാനനാമം", "tooltip": "രചയിതാവിന്റെ അവസാനനാമം"},
{"field": "title", "label":"തലക്കെട്ട്"},
{"field": "url", "label":"യൂ.ആർ.എൽ."},
{"field": "work", "tooltip": "If this is part of a larger work"},
{"field": "publisher", "label":"പ്രസാധകൻ"},
{"field": "accessdate", "label":"ശേഖരിച്ച തീയതി"}
],
[ // Expanded fields
{"field": "author", "label":"രചയിതാവ്"},
{"field": "authorlink", "label":"രചയിതാവിനെക്കുറിച്ചുള്ള താൾ", "tooltip":"രചയിതാവിനെക്കുറിച്ച് ഒരു താളുണ്ടെങ്കിൽ, ആ താൾ"},
{"field": "coauthors", "label":"സഹരചയിതാക്കൾ"},
{"field": "archiveurl"},
{"field": "archivedate"},
{"field": "location"},
{"field": "page", "label":"താൾ"},
{"field": "pages", "label":"താളുകൾ"},
{"field": "language", "label":"ഭാഷ"},
{"field": "format",  "label":"ഇനം", "tooltip":"html അല്ലെങ്കിൽ pdf എന്നിങ്ങനെ"},
{"field": "doi", "label":"DOI"},
{"field": "date", "label":"തീയതി"},
{"field": "month", "label":"മാസം"},
{"field": "year", "label":"വർഷം"},
{"field": "quote", "label":"ഉദ്ധരണി"}
]);

new citeTemplate('cite news', 'വാർത്ത',
[ // Basic fields
{"field": "first", "label":"പ്രഥമനാമം", "tooltip": "രചയിതാവിന്റെ പ്രഥമനാമം"}, 
{"field": "last", "label":"അവസാനനാമം", "tooltip": "രചയിതാവിന്റെ അവസാനനാമം"},
{"field": "title", "label":"തലക്കെട്ട്"},
{"field": "url", "label":"യൂ.ആർ.എൽ."},
{"field": "accessdate", "label":"ശേഖരിച്ച തീയതി"},
{"field": "newspaper",  "label":"വാർത്താപത്രം"},
{"field": "date", "label":"തീയതി"}
],
[ // Expanded fields
{"field": "author", "label":"രചയിതാവ്"},
{"field": "author2", 'label': "2nd author"},
{"field": "author3", 'label': "3rd author"},
{"field": "author4", 'label': "4th author"},
{"field": "author5", 'label': "5th author"},
{"field": "authorlink", "label":"രചയിതാവിനെക്കുറിച്ചുള്ള താൾ", "tooltip":"രചയിതാവിനെക്കുറിച്ച് ഒരു താളുണ്ടെങ്കിൽ, ആ താൾ"},
{"field": "agency"},
{"field": "archiveurl"},
{"field": "archivedate"},
{"field": "location"},
{"field": "page", "label":"താൾ"},
{"field": "pages", "label":"താളുകൾ"},
{"field": "language", "label":"ഭാഷ"},
{"field": "format"},
{"field": "doi", "label":"DOI"},
{"field": "month", "label":"മാസം"},
{"field": "year", "label":"വർഷം"},
{"field": "quote", "label":"ഉദ്ധരണി"}
]);

new citeTemplate('cite book', 'പുസ്തക',
[ // Basic fields
{"field": "first", "label":"പ്രഥമനാമം", "tooltip": "രചയിതാവിന്റെ പ്രഥമനാമം"}, 
{"field": "last", "label":"അവസാനനാമം", "tooltip": "രചയിതാവിന്റെ അവസാനനാമം"},
{"field": "title", "label":"തലക്കെട്ട്"},
{"field": "year", "label":"വർഷം"},
{"field": "publisher", "label":"പ്രസാധകൻ"},
{"field": "isbn", "label":"ഐ.എസ്.ബി.എൻ."},
{"field": "pages", "label":"താളുകൾ"},
{"field": "url", "label":"യൂ.ആർ.എൽ."}
],
[ // Expanded fields
{"field": "author", "label":"രചയിതാവ്"},
{"field": "authorlink", "label":"രചയിതാവിനെക്കുറിച്ചുള്ള താൾ", "tooltip":"രചയിതാവിനെക്കുറിച്ച് ഒരു താളുണ്ടെങ്കിൽ, ആ താൾ"},
{"field": "coauthors", "label":"സഹരചയിതാക്കൾ"},
{"field": "editor", "label":"എഡിറ്റർ"},
{"field": "accessdate", "label":"ശേഖരിച്ച തീയതി"},
{"field": "archiveurl"},
{"field": "archivedate"},
{"field": "location"},
{"field": "page", "label":"താൾ"},
{"field": "language", "label":"ഭാഷ"},
{"field": "format"},
{"field": "chapter"},
{"field": "date", "label":"തീയതി"},
{"field": "month", "label":"മാസം"},
{"field": "quote", "label":"ഉദ്ധരണി"}
]);

new citeTemplate('cite journal', 'ജേർണൽ',
[ // Basic fields
{"field": "first", "label":"പ്രഥമനാമം", "tooltip": "രചയിതാവിന്റെ പ്രഥമനാമം"}, 
{"field": "last", "label":"അവസാനനാമം", "tooltip": "രചയിതാവിന്റെ അവസാനനാമം"},
{"field": "coauthors", "label":"സഹരചയിതാക്കൾ"},
{"field": "title", "label":"തലക്കെട്ട്"},
{"field": "journal", "label":"ജേർണൽ"},
{"field": "date", "label":"തീയതി"},
{"field": "year", "label":"വർഷം"},
{"field": "month", "label":"മാസം"},
{"field": "volume", "label":"വാല്യം"},
{"field": "series", "label":"പരമ്പര"},
{"field": "issue"},
{"field": "pages", "label":"താളുകൾ"},
{"field": "doi", "label":"DOI"},
{"field": "pmid", "label":"PMID"},
{"field": "url", "label":"യൂ.ആർ.എൽ."},
{"field": "accessdate", "label":"ശേഖരിച്ച തീയതി"}
],
[ // Expanded fields
{"field": "author", "label":"രചയിതാവ്"},
{"field": "authorlink", "label":"രചയിതാവിനെക്കുറിച്ചുള്ള താൾ"},
{"field": "editor1-first", "label":"Editor's first"},
{"field": "editor1-last", "label":"Editor's last"},
{"field": "editor1-link", "label":"Editor's article"},
{"field": "page", "label":"താൾ"},
{"field": "at"},
{"field": "trans_title", "label":"പരിഭാഷപ്പെടുത്തിയ തലക്കെട്ട്"},
{"field": "publisher", "label":"പ്രസാധകൻ"},
{"field": "location"},
{"field": "language", "label":"ഭാഷ"},
{"field": "format"},
{"field": "issn", "label":"ISSN"},
{"field": "pmc", "label":"PMC"},
{"field": "oclc", "label":"OCLC"},
{"field": "bibcode"},
{"field": "id", "label":"ID"},
{"field": "laysummary", "label":"Lay summary"},
{"field": "laysource", "label":"Lay source"},
{"field": "laydate", "label":"Lay date"},
{"field": "quote", "label":"ഉദ്ധരണി"},
{"field": "ref"},
{"field": "postscript"}
]);


new citeErrorCheck({'type':'reflist', 'testname':'samecontent', 'desc': "Check for references with the same content",
'func': function(reflist) {
  var errors = [];
  var refs2 = [];
  for(var i=0; i<reflist.length; i++) {
    if (!reflist[i].shorttag) {
      if ($j.inArray(reflist[i].content, refs2) != -1) {
        if ($j.inArray(reflist[i].content, errors) == -1) {
          errors.push(reflist[i].content);
        }
      } else {
        refs2.push(reflist[i].content);
      }
    }
  }
  ret = [];
  for(var j=0; j<errors.length; j++) {
    ret.push({'msg':'Multiple references contain the same content', 'err':errors[j]});
  }
  return ret;
}}
);

new citeErrorCheck({'type':'reflist', 'testname':'repeated', 'desc':'Multiple references with the same name',
'func': function(reflist) {
  var errors = [];
  var refs2 = [];
  for(var i=0; i<reflist.length; i++) {
    if (!reflist[i].shorttag && reflist[i].refname) {
      if ($j.inArray(reflist[i].refname, refs2) != -1) {
        if ($j.inArray(reflist[i].refname, errors) == -1) {
          errors.push(reflist[i].refname);
        }
      } else {
        refs2.push(reflist[i].refname);
      }
    }
  }
  ret = [];
  for(var j=0; j<errors.length; j++) {
    ret.push({'msg':'Multiple references are using the same name', 'err':errors[j]});
  }
  return ret;
}}
);

new citeErrorCheck({'type':'reflist', 'testname':'undefined', 'desc':'Usage of undefined named references',
'func': function(reflist) {
  var errors = [];
  var longrefs = [];
  for(var i=0; i<reflist.length; i++) {
    if (!reflist[i].shorttag && reflist[i].refname) {
      longrefs.push(reflist[i].refname);
    }
  }
  for(var j=0; i<reflist.length; j++) {
    if (reflist[i].shorttag && $j.inArray(reflist[i].refname, errors) == -1 && $j.inArray(reflist[i].refname, longrefs) == -1) {
      errors.push(reflist[i].refname);
    }
  }
  ret = [];
  for(var j=0; j<errors.length; j++) {
    ret.push({'msg':'A named reference is used but not defined', 'err':errors[j]});
  }
  return ret;
}}
);

// All user-facing messages
// TODO: Document usage
$j(document).ready( function() {
mw.usability.addMessages( { "cite-section-label" : "അവലംബം ചേർക്കുക",
"cite-template-list" : "ഫലകങ്ങൾ",
"cite-named-refs-label" : "പേരുള്ള അവലംബങ്ങൾ",
"cite-named-refs-title" : "പേരുള്ള അവലംബങ്ങൾ ചേർക്കുക",
"cite-named-refs-button" : "പേരുള്ള അവലംബങ്ങൾ",
"cite-named-refs-dropdown" : "പേരിട്ട അവലംബങ്ങൾ", // Used on the top of the named refs list dropsown
"cite-errorcheck-label" : "പിഴപരിശോധന",
"cite-errorcheck-button" : "പിഴവുകളുണ്ടോയെന്നു നോക്കുക",
"cite-dialog-base" : "സ്രോതസ്സ്",
"cite-form-submit" : "ഉൾപ്പെടുത്തുക",
"cite-form-showhide" : "അധിക ഫീൽഡുകൾ പ്രദർശിപ്പിക്കുക/മറയ്ക്കുക",
"cite-no-namedrefs" : "ഈ താളിൽ പേരുള്ള അവലംബങ്ങൾ കണ്ടെത്താനായില്ലCannot find any named refs on the page",
"cite-namedrefs-intro" : "അവലംബത്തിന് പട്ടികയിൽ നിന്നും ഒരു പേര് ചേർക്കുക. എഴുത്തിലേക്ക് അവലംബം ചേർക്കാൻ \"ഉൾപ്പെടുത്തുക\" ഞെക്കുക.",
"cite-raw-preview" : "വിക്കി എഴുത്ത്:",
"cite-parsed-label" : "പാഴ്സ് ചെയ്യപ്പെട്ട വിക്കി എഴുത്ത്:",
"cite-form-parse" : "പാഴ്സ് ചെയ്യപ്പെട്ടതിന്റെ പ്രിവ്യൂ കാട്ടുക",
"cite-refpreview" : "എങ്ങനെയുണ്ടെന്നു കാണുക",
"cite-name-label" : "അവലംബനാമം",
"cite-group-label" : "അവലംബ സംഘം",
"cite-errorcheck-submit" : "പരിശോധിക്കുക",
"cite-errorcheck-heading" : "താഴെ പറയുന്ന പിഴവുകളുണ്ടോയെന്നു പരിശോധിക്കുക:",
"cite-error-unclosed" : "അടയ്ക്കാത്ത <span style='font-family:monospace'>&lt;ref&gt;</span> റ്റാഗുകൾ",
"cite-error-samecontent" : "ഒരേ ഉള്ളടക്കമുള്ള ഒന്നിലധികം അവലംബങ്ങൾ",
"cite-error-templates" : "<a href='//en.wikipedia.org/wiki/Wikipedia:Citation_templates'>സൈറ്റേഷൻ ഫലകം</a> ഉപയോഗിക്കാത്ത അവലംബങ്ങൾ",
"cite-error-repeated" : "ഒരേ പേരിലുള്ള ഒന്നിലധികം അവലംബങ്ങൾ",
"cite-error-undef" : "പേരുള്ള അവലംബങ്ങൾ നിർവചിക്കാതെ ഉപയോഗിക്കൽ",
"cite-error-samecontent-msg" : "ഒന്നിലധികം അവലംബങ്ങൾ ഒരേ ഉള്ളടക്കം ഉപയോഗിക്കുന്നു: $1", 
"cite-error-repeated-msg" : "ഒന്നിലധികം അവലംബങ്ങൾ ഈ പേര് ഉപയോഗിക്കുന്നു: \"$1\"",
"cite-error-templates-msg" : "Does not use a template: $1",
"cite-form-reset" : "ഫോം പുനഃക്രമീകരിക്കുക",
"cite-loading" : "വിവരങ്ങൾ ശേഖരിക്കുക", // Shown while pagetext is being downloaded from the API
"cite-insert-date" : "ഇന്നത്തെ തീയതി ഉൾപ്പെടുത്തുക", // Alt/title text for "insert date" icon
"cite-err-report-heading" : "സൈറ്റേഷൻ പിഴവുകൾ", // Heading for error report table
"cite-err-report-close" : "അടയ്ക്കുക", // Alt/title text for "close" icon on error report
"cite-err-report-empty" : "പിഴവൊന്നും കണ്ടെത്താനാല്ല" // Message displayed in the error report list if there are no errors
});

CiteTB.init();
});

$j(window).load(function() {
  CiteTB.init();
});
"https://ml.wikipedia.org/w/index.php?title=മീഡിയവിക്കി:RefToolbarLocal.js&oldid=1157467" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്