Last modified: 2010-05-15 15:33:10 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 T2813, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 813 - make Special: pages embeddable as templates
make Special: pages embeddable as templates
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.4.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 2447
  Show dependency treegraph
 
Reported: 2004-11-01 03:30 UTC by Aaron Peterson
Modified: 2010-05-15 15:33 UTC (History)
2 users (show)

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


Attachments

Description Aaron Peterson 2004-11-01 03:30:38 UTC
I'd like all pages to be embedable as a template.  "What links here" be able to
be used as a template... actually all pages should be able to be used as a template

and every page should be able to be viewable as a category by passing an option
?view=category or something like that...

and I'd like to have wiki links be able to include a "?", at least the special
pages, because I'd like to be able to link to a "what links here" without a lot
of work, however I just realized that a template would work for that.
Comment 1 Rowan Collins [IMSoP] 2004-11-01 17:29:09 UTC
I'm changing the summary of this bug to reflect the actual enhancement (i.e. the
part that is not already available) and splitting the seperate issue of
"category view" into a different bug (bug 816) so it can be discussed
seperately. Oh, and as for easily linking to "what links here", you can use the
subpage style: [[Special:Whatlinkshere/User:IMSoP]] will show the backlinks for
the page [[User:IMSoP]].

Any ordinary page can already be included as a template by using
{{Namespace:Pagename}} [e.g. {{User:IMSoP}}] pages in the "main" (article)
namespace must be referenced with a leading ":" [e.g. {{:Main Page}}].
Dynamically generated pages (whose names begin "Special:"), such as
Special:Whatlinkshere, cannot, since they technically have no content (nothing
is stored in the database as being "the content of that page").

One hurdle to making these includable is that they are mostly not written in
Wiki markup, but directly in HTML; whereas, AIUI, the current inclusion system
just grabs raw wiki-text and dumps it in the middle of the page before page
rendering begins. So the content generated by a Special: page would not render
correctly if included by the current mechanisms. May I ask what purpose(s) you
had in mind for this feature?
Comment 2 Rowan Collins [IMSoP] 2004-11-09 23:13:43 UTC
I just had an interesting thought relating to this (in answering a message on
mediawiki-l about running arbitrary PHP): 

Maybe SpecialPage.php could have an "executeAsTemplate()" method, which returned
wikitext to be included if the page was requested as an inclusion. That way, it
could return "" by default, and potentially format things differently than
accessing the page normally; and a site administrator could create Special:
pages to do custom bits of php designed for embedding. They could even be given
parameters: either using the sub-page style, like [[Special:Whatlinkshere/foo]]
etc; or, by having template parameters passed to exeuteAsTemplate(), in an
associative array or somesuch, so that you could do
"{{Special:Feed|url=http://example.com/foo.atom}}" or whatever.
Comment 3 Ævar Arnfjörð Bjarmason 2005-07-13 19:40:31 UTC
This is now possible, marking this as FIXED.
Comment 4 lɛʁi לערי ריינהארט 2005-12-22 23:53:36 UTC
adding blocks
bug 2447: allow inclusion of pages with parameters
Comment 5 lɛʁi לערי ריינהארט 2006-03-06 19:49:02 UTC
Hallo!

According to the summary *all* special pages should be includable.
This request is FIXED in "fixed-in-cvs". Is there any reason why it is not
available at the Wikimadia Foundation wikies?

best regards reinhardt [[user:gangleri]]
Comment 6 Brion Vibber 2006-03-06 21:09:55 UTC
Special pages *which support it* are includable.

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


Navigation
Links