Minecraft Wiki
m (…)
mNo edit summary
(8 intermediate revisions by 6 users not shown)
Line 11: Line 11:
   
 
The optional ''&lt;element>'' parameter specifies the [[Wikipedia:HTML element|HTML element]] name to be applied to the placeholder text (if omitted, defaults to <code>h2</code>).
 
The optional ''&lt;element>'' parameter specifies the [[Wikipedia:HTML element|HTML element]] name to be applied to the placeholder text (if omitted, defaults to <code>h2</code>).
  +
  +
The optional {{p|extra}} parameter specifies the additional text to be input without affecting the Table of Contents.
  +
  +
The optional {{p|transcluded}} parameter specifies that the page is already transcluded, and should be shown directly (minus self-links). This is intended for performance, as the transclusion is cached, however features like <<nowiki/>noinclude> on the page won't work, and features like <code><nowiki>{{PAGENAME}}</nowiki></code> will use the original page's name, rather than the current pages name. Only self-links are manually resolved (however existing self-links will also remain).
   
 
== See also ==
 
== See also ==
Line 18: Line 22:
 
: A list of all pages loaded by LoadPage
 
: A list of all pages loaded by LoadPage
 
<includeonly>
 
<includeonly>
[[Category:Templates]]
+
[[Category:JavaScript-based templates]]
  +
[[de:Vorlage:LoadPage]]
+
[[de:Vorlage:Lade Inhalt]]
  +
[[pt:Predefinição:LoadPage]]
  +
[[ru:Шаблон:Загрузка]]
 
</includeonly>
 
</includeonly>
  +
<noinclude>
  +
[[de:Vorlage:Lade Inhalt/Dokumentation]]
  +
[[pt:Predefinição:LoadPage/doc]]
  +
[[ru:Шаблон:Загрузка/док]]
  +
</noinclude>

Revision as of 04:12, 23 April 2020

This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information

The LoadPage template creates a placeholder for unloaded content, and a link to load the content. Use the LoadPage template to split articles into multiple pieces to be loaded into a primary article as needed.

Usage

{{LoadPage|<page>|<title>|<element>}}

The <page> parameter specifies the page title (including namespace) of the content to be loaded when requested (for example, Namespace:Article/subpage).

The optional <title> parameter specifies the text to be displayed as placeholder (if omitted or empty, defaults to <page>).

The optional <element> parameter specifies the HTML element name to be applied to the placeholder text (if omitted, defaults to h2).

The optional |extra= parameter specifies the additional text to be input without affecting the Table of Contents.

The optional |transcluded= parameter specifies that the page is already transcluded, and should be shown directly (minus self-links). This is intended for performance, as the transclusion is cached, however features like <noinclude> on the page won't work, and features like {{PAGENAME}} will use the original page's name, rather than the current pages name. Only self-links are manually resolved (however existing self-links will also remain).

See also

Template:LoadBox
Alternative to LoadPage; loads the content into a box, instead of needing a section header.
Category:Ajax loaded pages
A list of all pages loaded by LoadPage