Page MenuHomePhabricator

Expand $wgEnableScaryTranscluding to include all namespaces and make interwiki content identifiable in XHTML source
Open, LowPublicFeature

Description

Author: MediaWiki

Description:
Currently, enabling scary transcluding (transclusion?) only works on templates. It would be quite useful to be able to include content from another wiki, content that is not necessarily a template.

Also, it would be well if MediaWiki automatically wrapped a <div class="mw-scary-block">...</div> or something like that around material transcluded from another wiki, so it could be styled with CSS to make its origin clear.


Version: 1.11.x
Severity: enhancement

Details

Reference
bz12400

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:00 PM
bzimport set Reference to bz12400.
bzimport added a subscriber: Unknown Object (MLST).

You can already work with non-template articles. The format is just a little weird:

{{iwprefix::Some article in mainspace}}. Not ideal, but it works.

Added class "mw-iw-transclusion" in r40707.

ayg wrote:

Um, doesn't this break XHTML validity for an interwiki source with unclosed HTML tags? Like, I don't know, [[mw:Template:TalkFromMeta]]. Obviously most sites wouldn't include that specific template, but similar quite reasonable ones are easily imagined. You can't just wrap divs around arbitrary chunks of HTML and expect it to work.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.