O WikiRio está passando por uma grande atualização
Após uma década de sucesso, estamos passando por nossa primeira grande reestruturação!
Teremos muito conteúdo exclusivo e pensado para ser visto tanto na tela do computador quanto no celular!
Fique ligado para mais atualizações e não perca nenhum detalhe!
MediaWiki:AddNewOpenMediaFileVersion.js
Nota: Após publicar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.
- Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
- Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
- Internet Explorer/Edge: PressioneCtrl enquanto clica Recarregar, ou Pressione Ctrl-F5
- Opera: Pressione Ctrl-F5.
/* @description add a new version of a File @dependencies $.resource @dependencies $.jI18n.en */ $.extend(true, $.jI18n, {/* append to resource string dictionary Nomenclature proposal: if an extra plugin is used, strings can be designated as “plugin_toolTipSomthing” otherwise just “toolTipSomthing” (global string). So it’s more clear if somebody wants to deactivate a plugin and remove strings from the resource dictionary. */ en: {uploadNewFileVersion:"Upload a new file version (OpenMedia)"}, de: {uploadNewFileVersion:"Neue Dateiversion hochladen (OpenMedia)"} });//$.jI18n if ($ !== undefined) {// chek jQuery if (mw.config.get('wgAction')==="view" && mw.config.get('wgNamespaceNumber') == 6){/* 6 is file namespace */ var custom_file_tools =$("#filetoc").find("#custom_file_tools"); if (! custom_file_tools.length) { $("#filetoc").append('<div stale="text-align:center;" id="custom_file_tools"></div>'); custom_file_tools=$("#filetoc").find("#custom_file_tools"); } $(custom_file_tools).append('<form style="display:inline-block;" action="http://species-id.net/o/index.php" method="get">' + '<input type="hidden" name="wpDestFile" value="' + mw.config.get('wgTitle') + '" />' + '<input type="hidden" name="title" value="Special:Upload" />' + '<button type="submit" name="wpForReUpload" value="1" >'+ $.resource('uploadNewFileVersion') +'</button></form>'); } }