<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.badwolfmc.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3APage%2Fdoc</id>
	<title>Module:Page/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.badwolfmc.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3APage%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:Page/doc&amp;action=history"/>
	<updated>2026-05-07T20:01:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.badwolfmc.com/w/index.php?title=Module:Page/doc&amp;diff=4649&amp;oldid=prev</id>
		<title>Merc: Created page with &quot;{{used in system}} {{Module rating|release}} {{Lua|Module:CallAssert|Module:Protect}} This module is meant to allow the goodies listed in {{slink|mw:Extension:Scribunto/Lua reference manual#Title objects}} to be accessed by people who do not want to write a Lua module.  Usage is: &lt;code&gt;&lt;nowiki&gt;{{#invoke:Page|&lt;/nowiki&gt;&#039;&#039;&#039;function&#039;&#039;&#039;|&#039;&#039;parameters&#039;&#039;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt;  == Functions== In the usage above, &#039;&#039;&#039;function&#039;&#039;&#039; is one of the following fields or functions for t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:Page/doc&amp;diff=4649&amp;oldid=prev"/>
		<updated>2025-05-04T07:47:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{used in system}} {{Module rating|release}} {{Lua|Module:CallAssert|Module:Protect}} This module is meant to allow the goodies listed in {{slink|mw:Extension:Scribunto/Lua reference manual#Title objects}} to be accessed by people who do not want to write a Lua module.  Usage is: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Page|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;parameters&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;  == Functions== In the usage above, &amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039; is one of the following fields or functions for t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{used in system}}&lt;br /&gt;
{{Module rating|release}}&lt;br /&gt;
{{Lua|Module:CallAssert|Module:Protect}}&lt;br /&gt;
This module is meant to allow the goodies listed in {{slink|mw:Extension:Scribunto/Lua reference manual#Title objects}} to be accessed by people who do not want to write a Lua module.&lt;br /&gt;
&lt;br /&gt;
Usage is: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Page|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;parameters&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functions==&lt;br /&gt;
In the usage above, &amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039; is one of the following fields or functions for title objects:&lt;br /&gt;
&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;id&amp;#039;&amp;#039;&amp;#039;: The page_id. 0 if the page does not exist.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;interwiki&amp;#039;&amp;#039;&amp;#039;: The interwiki prefix, or the empty string if none.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;namespace&amp;#039;&amp;#039;&amp;#039;: The namespace number.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;fragment&amp;#039;&amp;#039;&amp;#039;: The fragment, or the empty string. May be assigned.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;nsText&amp;#039;&amp;#039;&amp;#039;: The text of the namespace for the page.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;subjectNsText&amp;#039;&amp;#039;&amp;#039;: The text of the subject namespace for the page.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;#039;: The title of the page, without the namespace or interwiki prefixes.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;prefixedText&amp;#039;&amp;#039;&amp;#039;: The title of the page, with the namespace and interwiki prefixes.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;fullText&amp;#039;&amp;#039;&amp;#039;: The title of the page, with the namespace and interwiki prefixes and the fragment.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;rootText&amp;#039;&amp;#039;&amp;#039;: If this is a subpage, the title of the root page without prefixes. Otherwise, the same as title.text.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;baseText&amp;#039;&amp;#039;&amp;#039;: If this is a subpage, the title of the page it is a subpage of without prefixes. Otherwise, the same as title.text.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;subpageText&amp;#039;&amp;#039;&amp;#039;: If this is a subpage, just the subpage name. Otherwise, the same as title.text.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;canTalk&amp;#039;&amp;#039;&amp;#039;: Whether the page for this title could have a talk page.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;exists&amp;#039;&amp;#039;&amp;#039;: Whether the page exists. Alias for fileExists for Media-namespace titles.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;fileExists&amp;#039;&amp;#039;&amp;#039;: Whether the file exists. For File- and Media-namespace titles, this is expensive.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isContentPage&amp;#039;&amp;#039;&amp;#039;: Whether this title is in a content namespace.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isExternal&amp;#039;&amp;#039;&amp;#039;: Whether this title has an interwiki prefix.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isLocal&amp;#039;&amp;#039;&amp;#039;: Whether this title is in this project. For example, on the English Wikipedia, any other Wikipedia is considered &amp;quot;local&amp;quot; while Wiktionary and such are not.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isRedirect&amp;#039;&amp;#039;&amp;#039;: Whether this is the title for a page that is a redirect.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isSpecialPage&amp;#039;&amp;#039;&amp;#039;: Whether this is the title for a possible special page (i.e. a page in the Special: namespace).&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isSubpage&amp;#039;&amp;#039;&amp;#039;: Whether this title is a subpage of some other title.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isTalkPage&amp;#039;&amp;#039;&amp;#039;: Whether this is a title for a talk page.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;isSubpageOf&amp;#039;&amp;#039;&amp;#039;( title2 ): Whether this title is a subpage of the given title.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;inNamespace&amp;#039;&amp;#039;&amp;#039;( ns ): Whether this title is in the given namespace. Namespaces may be specified by anything that is a key found in mw.site.namespaces.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;inNamespaces&amp;#039;&amp;#039;&amp;#039;( ... ): Whether this title is in any of the given namespaces. Namespaces may be specified by anything that is a key found in mw.site.namespaces.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;hasSubjectNamespace&amp;#039;&amp;#039;&amp;#039;( ns ): Whether this title&amp;#039;s subject namespace is in the given namespace. Namespaces may be specified by anything that is a key found in mw.site.namespaces.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;contentModel&amp;#039;&amp;#039;&amp;#039;: The content model for this title, as a string.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;basePageTitle&amp;#039;&amp;#039;&amp;#039;: The same as mw.title.makeTitle( title.namespace, title.baseText ).&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;rootPageTitle&amp;#039;&amp;#039;&amp;#039;: The same as mw.title.makeTitle( title.namespace, title.rootText ).&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;talkPageTitle&amp;#039;&amp;#039;&amp;#039;: The same as mw.title.makeTitle( mw.site.namespaces[title.namespace].talk.id, title.text ), or nil if this title cannot have a talk page.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;subjectPageTitle&amp;#039;&amp;#039;&amp;#039;: The same as mw.title.makeTitle( mw.site.namespaces[title.namespace].subject.id, title.text ).&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;subPageTitle&amp;#039;&amp;#039;&amp;#039;( text ): The same as mw.title.makeTitle( title.namespace, title.text .. &amp;#039;/&amp;#039; .. text ).&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;partialUrl&amp;#039;&amp;#039;&amp;#039;(): Returns title.text encoded as it would be in a URL.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;fullUrl&amp;#039;&amp;#039;&amp;#039;( query, proto ): Returns the full URL (with optional query table/string) for this title. proto may be specified to control the scheme of the resulting url: &amp;quot;http&amp;quot;, &amp;quot;https&amp;quot;, &amp;quot;relative&amp;quot; (the default), or &amp;quot;canonical&amp;quot;.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;localUrl&amp;#039;&amp;#039;&amp;#039;( query ): Returns the local URL (with optional query table/string) for this title.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;canonicalUrl&amp;#039;&amp;#039;&amp;#039;( query ): Returns the canonical URL (with optional query table/string) for this title.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;getContent&amp;#039;&amp;#039;&amp;#039;(): Returns the (unparsed) content of the page, or nil if there is no page.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
=== Page selection ===&lt;br /&gt;
:* &amp;#039;&amp;#039;id&amp;#039;&amp;#039; = [[Help:Page ID|Page ID]] of the page to load and evaluate. If this parameter is specified, then other page selection parameters are ignored.&lt;br /&gt;
:* &amp;#039;&amp;#039;page&amp;#039;&amp;#039; = name of the page to load and evaluate. This is parameter &amp;quot;text&amp;quot; passed to mw.title.new or &amp;quot;title&amp;quot; passed to mw.title.makeTitle in the Mediawiki documentation.&lt;br /&gt;
:** Leave &amp;#039;&amp;#039;page&amp;#039;&amp;#039; blank to call mw.title.getCurrentTitle() and thus default to the page presently being viewed.&lt;br /&gt;
:* &amp;#039;&amp;#039;makeTitle&amp;#039;&amp;#039; = Set this to any nonblank value to call mw.title.makeTitle. Otherwise mw.title.new is called. The functions available for these and for getCurrentTitle() are generally &amp;#039;&amp;#039;(exactly?)&amp;#039;&amp;#039; the same.&lt;br /&gt;
:* &amp;#039;&amp;#039;namespace&amp;#039;&amp;#039; = This parameter is passed to new/makeTitle to define what page to open.&lt;br /&gt;
:* &amp;#039;&amp;#039;fragment&amp;#039;&amp;#039; = This parameter is passed to makeTitle per the MediaWiki documentation.&lt;br /&gt;
:* &amp;#039;&amp;#039;interwiki&amp;#039;&amp;#039; = This parameter is passed to makeTitle per the MediaWiki documentation.&lt;br /&gt;
&lt;br /&gt;
=== Title object function parameters ===&lt;br /&gt;
:* &amp;#039;&amp;#039;p1&amp;#039;&amp;#039; is the first parameter passed to the functions &amp;#039;&amp;#039;&amp;#039;within&amp;#039;&amp;#039;&amp;#039; the title object.&lt;br /&gt;
:** &amp;quot;title2&amp;quot; for isSubPageOf&lt;br /&gt;
:** &amp;quot;ns&amp;quot; for inNamespace&lt;br /&gt;
:** (first parameter) of inNameSpaces&lt;br /&gt;
:** &amp;quot;ns&amp;quot; for hasSubjectNamespace&lt;br /&gt;
:** &amp;quot;text&amp;quot; for subpageTitle&lt;br /&gt;
:** &amp;quot;query&amp;quot; for fullUrl, localUrl, canonicalUrl&lt;br /&gt;
:* &amp;#039;&amp;#039;p2&amp;#039;&amp;#039; is the second parameter passed to the functions &amp;#039;&amp;#039;&amp;#039;within&amp;#039;&amp;#039;&amp;#039; the title object.&lt;br /&gt;
:** (second parameter) of inNameSpaces&lt;br /&gt;
:** &amp;quot;proto&amp;quot; for fullUrl&lt;br /&gt;
:* &amp;#039;&amp;#039;p3&amp;#039;&amp;#039; to &amp;#039;&amp;#039;p9&amp;#039;&amp;#039; are collected and passed to the functions, but should only affect inNamespaces.&lt;br /&gt;
&lt;br /&gt;
=== Postprocessing ===&lt;br /&gt;
:* &amp;#039;&amp;#039;as&amp;#039;&amp;#039; = Changes how contents of a page is returned when function getContent() is called.&lt;br /&gt;
:** &amp;quot;pre&amp;quot; (default) to wrap the page&amp;#039;s content inside &amp;lt;nowiki&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
:** &amp;quot;nowiki&amp;quot; to wrap the page&amp;#039;s content inside &amp;amp;lt;nowiki&amp;amp;gt;&amp;amp;lt;/nowiki&amp;amp;gt;&lt;br /&gt;
:** &amp;quot;expand&amp;quot; to expand the page&amp;#039;s content&lt;br /&gt;
:** &amp;quot;raw&amp;quot; (or any other unrecognized value) to return the page content without any wrapping&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Template categories below this line, please. --&amp;gt;&lt;br /&gt;
[[Category:Template metamodules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Merc</name></author>
	</entry>
</feed>