Help:Embed page
This page describes the steps necessary to embed a page within another page. See also: Help:Template.
Contents |
Syntax [edit]
{{Namespace:Pagename}}
If you do not provide a namespace, the Template
namespace will be used. For the pages in the main namespace, add a colon before the page name.
Example [edit]
{{:Sample Page}}
produces the following, which displays the contents of Sample Page inside the box:
This test page is a sample page, used as an example in Help:Embed page.
The box was created, (as with any wikitext transcluded or not) by indenting {{:Sample Page}}
here, by one space on a new line. Here is the same transclusion, with the newline, but without the indention: This test page is a sample page, used as an example in Help:Embed page.
You can verify these things by looking directly at the Sample Page and by editing this section.
Embedded special pages [edit]
The default install of MediaWiki allows you to embed only selected special pages, such as (depending on version):
- Special:Allpages
- Special:Prefixindex
- Special:Listfiles
- Special:Newimages
- Special:Newpages
- Special:Recentchanges
- Special:Recentchangeslinked
See also Help:Special pages#Links to special pages.
Generated lists [edit]
See: Help:Generated lists
Embedded images [edit]
See: Help:Images