Last modified: 2014-11-17 09:21:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14401, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12401 - Scary transclusion is non-intuitive and unreliable
Scary transclusion is non-intuitive and unreliable
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.16.x
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 16137 16490 (view as bug list)
Depends on: 20424
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-24 14:31 UTC by Voyagerfan5761 / dgw
Modified: 2014-11-17 09:21 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Voyagerfan5761 / dgw 2007-12-24 14:31:11 UTC
Right now, if one transcludes a page from another wiki using the wgEnableScaryTranscluding functionality, it does not properly obey <noinclude>. I'm guessing this is because it's getting content from the other wikis using action=render?

Anyway, it should use action=raw to get the plain wikitext and parse it locally, calling in remote template source (also with action=raw) until the include is done, then put the fully-parsed, behaving-as-expected text in the including article.
Comment 1 Alex Z. 2008-01-28 22:47:01 UTC
if you use it as {{raw:interwiki:templatename}} it will parse the raw text.
Comment 2 Voyagerfan5761 / dgw 2008-01-28 23:24:18 UTC
(In reply to comment #1)
> if you use it as {{raw:interwiki:templatename}} it will parse the raw text.
> 

I guess what I'm thinking is that parsing the raw text would be the logical default, so it behaves like other transclusions from the local wiki.
Comment 3 Adrian Wrigley 2008-02-02 16:18:45 UTC
When I try <nowiki>{{raw:wikipedia:unsourced}}</nowiki>, I get:

  Forbidden
  Raw pages must be accessed through the primary script entry point.

It accesses <nowiki>http://en.wikipedia.org/wiki/Template:unsourced?action=raw</nowiki>

What is the markup for using Wikipedia's "Unsourced" template on
my wiki?
~~~~ 
Comment 4 Joshua C. Lerner 2009-03-19 22:02:20 UTC
I ran into the same problem. Try setting iw_url to something like http://en.wikipedia.org/w/index.php?title=$1, in the interwiki table. Then the {{raw:wikipedia:unsourced}} syntax should work.

Note: I had trouble getting the system to recognize this change, so I just created a new prefix.
Comment 5 Ricky Chan 2009-06-25 15:14:17 UTC
This bug still appears in 1.15.0. Things in <noinclude> still shows up during interwiki-transclusion.

I tried the suggestion in comment #4, but {{raw:wikipedia:unsourced}} shows the following line:

------ Start quote -----
1. REDIRECT Template:Unreferenced
------- End quote ------

It does not give an expected result - gives the unsourced box.
Comment 6 Alex Z. 2009-06-25 15:29:10 UTC
The problems I see are twofold:

1. The default action is confusing. Rather than just getting the wikitext and using it like a template, it grabs the action=render output and just includes the HTML.
2. The "raw" usage uses ?action=raw, so breaks on wikis with "pretty URLs" and can't follow redirects.

The first could be fixed without too much work probably, but it would break backward compatibility for people who want the current behavior.

For the second, it would probably be best if scary transclusion used the API to get the page text, but that would be dependent on it being able to find the API, which would depend on bug 14024.
Comment 7 Alexandre Emsenhuber [IAlex] 2009-08-27 18:56:24 UTC
*** Bug 16137 has been marked as a duplicate of this bug. ***
Comment 8 Alexandre Emsenhuber [IAlex] 2009-08-29 19:09:47 UTC
*** Bug 16490 has been marked as a duplicate of this bug. ***
Comment 9 Ricky Chan 2011-04-16 05:33:29 UTC
As of Mediawiki versions 1.16.2, this problem still persists.

When I do {{wikipedia:mbox|text=Test}}, that would transclude the whole Template:Mbox documentation page. The documentation page is in the <noinclude> tags. So it is still not working.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links