This method worked a few weeks ago, even with the images.  I formatted an 
entire book (PDF) like this.  It may have stopped working after an update 
or something similar.

On Wednesday, February 29, 2012 3:15:12 AM UTC-7, Volker Haas wrote:
>
> Am 28.02.2012 19:08, schrieb Michael Kennard:
> > I'm trying to use the "only in print" template for an image but the
> > image does not appear in the PDF. I created a simple book on Wikipedia
> > that demonstrates this<http://en.wikipedia.org/wiki/User:Unjedai/
> > Books/Hide_in_print_test2>
> >
> > If I also include a "hide in print" template using the same image,
> > then the "only in print" template starts working and the image appears
> > in the PDF. Of course, the image also appears in the browser due to
> > the "hide in print" template and that's no good. Here's another simple
> > book on Wikipedia that demonstrates this<http://en.wikipedia.org/wiki/
> > User:Unjedai/Books/Hide_in_print_test>.
> >
> The "Only in print" template only works for text (check [1]). The 
> problem is that the image is not fetched and therefore can not be 
> included in the PDF. My Mediawiki templating skills aren't sufficient to 
> fix the problem. I imagine that the solution might be to not completely 
> exclude the content in the wiki, but to set the css property display:none.
>
> Currently the Mediawiki API call that lists all images for an article 
> probably omits the image in question. This might be fixed by the css 
> workaround.
>
>
> [1] 
>
> http://en.wikipedia.org/w/index.php?title=User:Volker.haas/Test&oldid=479447008
>
> -- 
> Volker Haas
> Senior Developer
> brainbot technologies ag
> Boppstra�e 64
> 55118 Mainz
> Phone: +49 (0)6131 2116394
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/mwlib/-/DXkvGDRCTRUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to