利用者:Pontaks/common.js
注意: 保存後、変更を確認するにはブラウザーのキャッシュを消去する必要がある場合があります。
- Firefox / Safari: Shift を押しながら 再読み込み をクリックするか、Ctrl-F5 または Ctrl-R を押してください (Mac では ⌘-R)
- Google Chrome: Ctrl-Shift-R を押してください (Mac では ⌘-Shift-R)
- Internet Explorer / Microsoft Edge: Ctrl を押しながら 最新の情報に更新 をクリックするか、Ctrl-F5 を押してください
- Opera: Ctrl-F5を押してください
/* <pre> */
/* Any JavaScript here will be loaded for all users on every page load. */
self.ws_messages = {
'iwtrans':'Its text comes from',
'iwtrans2':'Its text comes from other sub-domains.',
'optlist':'Display options',
'hide_page_numbers':'Hide page links',
'show_page_numbers':'Show page links',
'layout':'Layout',
'author':'Author',
'translator':'Translator',
'editor':'Editor',
'publisher':'Publisher',
'place':'Place',
'volume':'Volume',
'school':'School',
'book':'Book',
'collection':'Collection',
'journal':'Journal or magazine',
'phdthesis':'Thesis, report',
'dictionary':'Dictionary',
'progress':'Progress',
'progress_T':'Done',
'progress_V':'To be validated',
'progress_C':'To be proofread',
'progress_MS':'Ready for Match & Split',
'progress_OCR':'Needs an OCR text layer',
'progress_L':'Source file is incorrect (missing pages, unordered pages, etc)',
'page_namespace_name': 'Page',
'page_trascluded_in': 'Page trascluded in:',
'text_number': 'Text',
'compare_with': 'Comparison with:',
'compare_texts': 'Compare texts'
}
importScript('MediaWiki:Base.js');
importScript('MediaWiki:IndexForm.js');
importScript('MediaWiki:InterWikiTransclusion.js');
importScript('MediaWiki:TranscludedIn.js');
importScript('MediaWiki:Compare.js');
/* Footnotes as tooltip - from it.wikipedia.org - request by Candalua */
$ ( function ()
{
sups = document.getElementsByTagName("sup");
for (i=0; i<sups.length; i++)
{
note_id = sups[i].childNodes[0].href;
if (note_id && (note_id.indexOf("#") != -1))
{
note_id = document.getElementById(note_id.substr(note_id.indexOf("#")+1));
if (note_id)
if (document.all)
{
sups[i].title = note_id.innerText;
sups[i].childNodes[0].title = note_id.innerText;
}
else
{
sups[i].title = note_id.textContent;
}
}
}
})
//link "Download as EPUB"
if (wgNamespaceNumber == 0) {
$(document).ready( function () {
mw.util.addPortletLink(
'p-coll-print_export',
'//toolserver.org/~tpt/wsexport/book.php?lang=ja&format=epub&page=' + mw.config.get('wgPageName'),
'Download as EPUB',
'n-epubExport',
'Download an EPUB version of this page',
'',
'#t-print');
});
}
/* </pre> */