Giter Club home page Giter Club logo

imagepageprintlink's Introduction

Adds a ”print this image” link to the image page TOC, for local image files (in compatible browsers).

The extension is known to work in recent, and not so recent, versions of Chrome, Firefox, Internet Explorer and Opera. Making it work in Chrome requires an ugly hack though, and there might be cases where it doesn't work.

Release

0.5

Dependencies

MediaWiki 1.18

Installation

Add the following settings to your LocalSettings.php: require_once("$IP/extensions/ImagePagePrintLink/ImagePagePrintLink.php");

Changelog

  • 0.5
    • Now hosted on github
    • Minor code cleanup
    • Replace deprecated wfMsg
    • Added README file
  • 0.4
    • Now requires MW >= 1.18
    • Replaced wgOut with getContext
  • 0.3
    • Now requires MW >= 1.17
    • ja translation
    • added title-attribute
    • using Resource loader
  • 0.2
    • load jquery if not loaded
    • use i18n for description
    • add extensions name to i18n message names
  • 0.1
    • First version

To do

  • Find a way to handle Google Chrome. Chrome will close the window imediately, and then try to print an empty page, if allowed into the current code.
  • Use MW's build in functions to construct the list element.

Credits

The extension was originally written for http://säsongsmat.nu.

Leo Wallentin leo_wallentin (at) hotmail.com @leo_wallentin http://xn--ssongsmat-v2a.nu

License

BSD

Disclaimer

The source code is provided as-is, without warranty and does not warrant or endorse and does not assume and will not have any liability or responsibility for any damage or loss.

imagepageprintlink's People

Contributors

rotsee avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.