To include a page within iframe, sometimes it is reasonable to use "?printable=yes". For example there is a gadget in hewiki that shows Wikidata entry in iframe (within dialog) with ?printable=yes to allow uses to edit properties. (the benefit of printable=yes is that the JS is loaded, but there is no sidebar - which is nice for this purpose)
On Mon, May 20, 2013 at 11:17 PM, Daniel Friesen <daniel@nadir-seen-fire.com
wrote:
On Mon, 20 May 2013 12:55:24 -0700, Thomas Gries mail@tgries.de wrote:
Am 20.05.2013 18:11, schrieb Tyler Romeo:
I'm confused as to what the point of action=render is. How is it different from using the API?
I do use it (action=render) in rendering the content div of a mediawiki A in a different web page B, in the context of the authenticated user, in an iframe.
The different web page B has no additional logic, especially, I cannot add javascript or jquery, so render=action appears to be an easy solution for my problem. Unfortunately, and this is a drawback. action=render does currently not apply the mediawiki A stylesheets.
action=render should NOT be used for this purpose. &action=render is not a valid html page. It's meant to be read by something that does additional processing (which could use the api instead) and embedded inside of another html document.
I also don't see how your technique will logically work at all, since the moment the user clicks a link they lose action=render.
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l