Coder Social home page Coder Social logo

Comments (6)

fillion07 avatar fillion07 commented on July 29, 2024 2

Team: Open Source will work on it during the Hackathon. We will try to improve the user experience. We have couple ideas. We still have to evaluate the feasibility.

from gcpedia.

pabrams avatar pabrams commented on July 29, 2024

What form of link are you using? [[File:filename.ext]] or [[Media:filename.ext]] ? When I use the latter, the file opens instead of bringing me to the file information page. Am I misunderstanding, or should this Issue be closed?

from gcpedia.

massierick avatar massierick commented on July 29, 2024

Aha! You are correct! (mostly).

I kept running into the issue with images, I wanted them to open full size when a user clicked them. I was using the [[File]] kink, since [[Media]] doesn't work for images (well, it doesn't display them on the current page). So perhaps this issue is only limited to images. Is there a way to make [[Media]] work with images on the current page? The link seems to work, but it only includes your caption text, not the actual picture. See here for example: http://www.gcpedia.gc.ca/wiki/User:Rick.massie/sandbox

from gcpedia.

Phanoix avatar Phanoix commented on July 29, 2024

I'd suggest trying checking the latest version of mediawiki (stable 1.28), or even the wmf alpha version (https://www.mediawiki.org/wiki/MediaWiki_1.29/wmf.19) and see if this hasn't been already addressed since the version GCpedia is currently running on (1.26).

from gcpedia.

massierick avatar massierick commented on July 29, 2024

I created a short script that sort of does what I was hinting at. This is probably far from the most glamorous solution (I'm a newbie to jquery), but it does work in the current environment. See example here: (http://www.gcpedia.gc.ca/wiki/File:Aandc-yt-eti-plan.doc)

And code below:
`<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

<script> <script> $(document).ready(function(){ //Select the url to the document var docLink = $('.dangerousLink').children('a').first().attr('href'); //Get the title of the document var docTitle = $("a.internal").attr("title"); //Create a button with a link to the document $('.fullMedia').prepend("
Download" + " " + docTitle + "
"); //Increase text size in the button to make it more prominent on the page $("#docButton").css("font-size","200%"); }) </script>`

from gcpedia.

Phanoix avatar Phanoix commented on July 29, 2024

This might be resolved by now, will need to check.

from gcpedia.

Related Issues (20)

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.