Help talk:Embed page

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

I tried to embed Special:Randompage[edit]

I tried to embed Special:Randompage in my Wiki by changing

'Randompage' => array( 'SpecialPage', 'Randompage' ), in 'Randompage' => array( 'IncludableSpecialPage', 'Randompage' ) in SepcialPages.php

as described in the help article. Cleared every cache I could think of, but instead of showing a random page it's just blank space. Tried the same with some other Specialpages, which are not includeable by default, which worked just fine.

Is there something ""Special"" about the Random Special page? How could this be embedded successfully?

Special:Whatlinkshere[edit]

I would be interested in more information regarding embedding special pages. Specifically i wish to embed "what links here" into pages by placing the tag into a template. I expect some kind of {namespace} variable is needed. [[1]]

Put {{Special:Whatlinkshere/{{FULLPAGENAME}}}} in the template.--Patrick 01:08, 24 January 2007 (UTC)
How would I embed the output of that link instead of just the link? -Eep² 18:24, 31 July 2007 (UTC)
After posting a request for help on this question again, I realized that I missed the part about changing the $mList entry for Whatlinkshere from SpecialPage to IncludableSpecialPage. Doing that did indeed change the output from a link to the expected results of Whatlinkshere. Perhaps this was/will be missed by others as well. --BillBurton 16:38, 2 April 2009 (UTC)
Is it also possible to just include the list of links and not the whole form? -- Joolee 11:34, 17 April 2009 (UTC)
How do I put a directory on my main page? I tried embedding it, but it didn't work.
Joolee, I think you can use css to edit out certain portions of this page.
For example, I want to post recent changes on my user page, on mediawiki:common.css I enter:
body.page-User_Anno .mw-plusminus-pos  {display:none} /* plus minus of each edit */
body.page-User_Anno .mw-rollback-link  {display:none} /* rollback link */
body.page-User_Anno .mw-usertoollinks {display:none} /* (Talk | contribs | block) */
And those sections are edited out. You need to check the html coding for the name of each section to edit it out. I don't know enough about css to help you beyond this. Adamtheclown 04:25, 24 December 2010 (UTC)
Unfortunately inclusion (even if you hack the special page to allow it) seems to include the page user interface as well. A better solution may be to use DynamicPageList: {{#dpl: linksto = Help talk:Embed page }} GreenReaper 05:55, 15 May 2011 (UTC)

Embedding sections of articles[edit]

I want to be able to embed a section ONLY. I figured it would be possible given that a given section can be eddited. Can't find an extenstion to do this. Does anyone else want this feature Halski? 19/01/2007

That is something I am interested in being able to do too. It makes sense that one should be able to choose just one section of a larger article for inclusion in an other article...but no matter what I try, I can't firgure it out... RK 17:35, 12 July 2007 (UTC)

I looked all over the place but could not find something that does this! How would one request this as an enhancement? I think DokuWiki supports this. 67.171.180.61 20:18, 11 November 2007 (UTC)

See mw:Extension:Labeled Section Transclusion.--Patrick (talk) 01:01, 12 November 2007 (UTC)

embedding sub page[edit]

{{:../another page}} doesn't work --Deltaflux 14:11, 16 February 2007 (UTC)

There's an extension that allows Labeled Section Transclusion -?
Use {{:page/subpage}} for another page's subpage or {{:{{FULLPAGENAME}}/subpage1}} for another subpage under the current root page. For example, {{:{{FULLPAGENAME}}/test}} (which is /test) gives:

test sub page for discussion example

-Eep² 11:05, 3 August 2007 (UTC)

Embeding commons file to other Wikipedia[edit]

How to embed file from commons to other Wikipedia (bs, en, fr ...)? Nenaad77.46.253.113 10:05, 18 March 2008 (UTC)

This works for images and image pages, see Help:Images and other uploaded files and Help:Image page.--Patrick (talk) 12:22, 18 March 2008 (UTC)
Hello Patrick. I've tried to make page with descriptions of images of the day on bosnian Wikipedia. Descriptions of images are embeded in page Commons:Picture_of_the_day on commons Wikipedia. Is there any chance that in new versions of Wikipedia will be possible to embed files from commons to other Wikipedia? Nenaad77.46.253.113 15:31, 18 March 2008 (UTC)

Embed History page[edit]

Hi, is it possible to embed the history page into a page? If so, how is this done? --Magick 13:51, 26 September 2008 (UTC)


Changing WhatLinksHere to Includable creates error[edit]

I changed SpecialPage.php to 'Whatlinkshere' => array( 'IncludableSpecialPage', 'Whatlinkshere' ), and then i get the error of [function.call-user-func]: First argument is expected to be a valid callback in /home6/ignisaqu/public_html/w/includes/SpecialPage.php on line 792.

Not sure why this happens. Any clue?

It seems the documented method is not valid anymore. See this discussion. (But even after I followed those instructions, I still got an error, so who knows...) 69.165.153.210 20:37, 14 July 2011 (UTC)