Page MenuHomePhabricator

Rendering of styled page content only for iframe embedding
Closed, DeclinedPublicFeature

Description

Feature summary:

Rendering of Wikimedia Project page styled content only, so that it can be embedded in other sites using iframe html code without showing side and top navigation bars.

Use case(s):

Example use case: English Wikiversity page content could be embedded into an educational institution's learning management system.

Embedded Wikimedia project page content often looks and feels better if embedded without the side and top navigation bars. The navigation bars can be removed by appending ?action=render to the embed URL (i.e., the print version), but this loses the styling. The mobile version can be embedded with more minimal navigation material. But, ideally, there could be a version with only the styled page content and no navigation bars.

Example of a MediaWiki extension which seeks to achieve this: https://wiki.ubc.ca/Documentation:Embed_wiki_to_canvas_via_iframe

by using this extension:
https://github.com/ubc/EmbedPage

Benefits:

Rendering of Wikimedia project page content would appeal to websites which wish to dynamically embed styled Wikimedia content without navigation bars using iframe.

Event Timeline

Hi @Jtneill, if an extension already exists, what exactly is being requested in this task? How would this not collide with Content-Security-Policy (CSP)?

@Aklapper Thanks for the response.

I don't know how it might best be achieved, or even if it is a good idea, but the suggestion is for MediaWiki software to allow styled page content only (without the top/side/footer bars etc.) to be embedded elsewhere.

Happy to take advice e.g., if an extension is the way to go?

I'm not familiar with the CSP or how this might be inconsistent. e.g., maybe there could be concerns such as page content being shown without context such as the copyright licensing?

Hi, you could pull content via the API and render it according to your needs so I'm going to decline this.
I also recommend to bring this up on https://www.mediawiki.org/wiki/Project:Support_desk for what's feasible.