Jump to content

Help:Embed page

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kaustuv (talk | contribs) at 23:18, 20 December 2006 (Copy of m:Help:Embed page because Template:Editor toc (automatically synced with m:Template:Editor toc) causes a prominent red link on WP's editing help pages. This is a stopgap measure.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This page describes the steps necessary to embed a page within another page.

Syntax

{{Namespace:Pagename}}

If you do not provide a namespace, the Template namespace will be used.

Example

{{:Sample Page}} produces the following:

Sample Page

the content of which, as you can see, is located at Sample Page.

Embedded Special Pages

The default install of MediaWiki allows you to embed only select special pages. (See Help:Special_pages#Miscellaneous.) To include an otherwise "unembedable" special page, you must edit the $mList array in the file includes/SpecialPage.php. Each entry is in the format

'Pagename' => array( 'PageType', 'Pagename')

The possible values for PageType are SpecialPage, UnlistedSpecialPage, and IncludableSpecialPage.

Find the entry for the page you want to embed and change the PageType to IncludableSpecialPage. You will now be able to include/embed the special page using the include syntax: {{Special:Pagename}}.

Generated Lists

See: Help:Generated lists

Embeded Images

See: Help:Images