<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/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.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Module%3APage%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:Page/doc&amp;action=history"/>
	<updated>2026-05-04T13:49:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:Page/doc&amp;diff=8547&amp;oldid=prev</id>
		<title>Kg7qin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:Page/doc&amp;diff=8547&amp;oldid=prev"/>
		<updated>2022-01-21T19:01:44Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:01, 21 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:Page/doc&amp;diff=8546&amp;oldid=prev</id>
		<title>5.93.2.193 at 13:36, 25 September 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:Page/doc&amp;diff=8546&amp;oldid=prev"/>
		<updated>2021-09-25T13:36:22Z</updated>

		<summary type="html">&lt;p&gt;&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;
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;'''function'''|''parameters''&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, '''function''' is one of the following fields or functions for title objects:&lt;br /&gt;
&lt;br /&gt;
:* '''id''': The page_id. 0 if the page does not exist.&lt;br /&gt;
:* '''interwiki''': The interwiki prefix, or the empty string if none.&lt;br /&gt;
:* '''namespace''': The namespace number.&lt;br /&gt;
:* '''fragment''': The fragment, or the empty string. May be assigned.&lt;br /&gt;
:* '''nsText''': The text of the namespace for the page.&lt;br /&gt;
:* '''subjectNsText''': The text of the subject namespace for the page.&lt;br /&gt;
:* '''text''': The title of the page, without the namespace or interwiki prefixes.&lt;br /&gt;
:* '''prefixedText''': The title of the page, with the namespace and interwiki prefixes.&lt;br /&gt;
:* '''fullText''': The title of the page, with the namespace and interwiki prefixes and the fragment.&lt;br /&gt;
:* '''rootText''': If this is a subpage, the title of the root page without prefixes. Otherwise, the same as title.text.&lt;br /&gt;
:* '''baseText''': 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;
:* '''subpageText''': If this is a subpage, just the subpage name. Otherwise, the same as title.text.&lt;br /&gt;
:* '''canTalk''': Whether the page for this title could have a talk page.&lt;br /&gt;
:* '''exists''': Whether the page exists. Alias for fileExists for Media-namespace titles.&lt;br /&gt;
:* '''fileExists''': Whether the file exists. For File- and Media-namespace titles, this is expensive.&lt;br /&gt;
:* '''isContentPage''': Whether this title is in a content namespace.&lt;br /&gt;
:* '''isExternal''': Whether this title has an interwiki prefix.&lt;br /&gt;
:* '''isLocal''': 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;
:* '''isRedirect''': Whether this is the title for a page that is a redirect.&lt;br /&gt;
:* '''isSpecialPage''': Whether this is the title for a possible special page (i.e. a page in the Special: namespace).&lt;br /&gt;
:* '''isSubpage''': Whether this title is a subpage of some other title.&lt;br /&gt;
:* '''isTalkPage''': Whether this is a title for a talk page.&lt;br /&gt;
:* '''isSubpageOf'''( title2 ): Whether this title is a subpage of the given title.&lt;br /&gt;
:* '''inNamespace'''( 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;
:* '''inNamespaces'''( ... ): 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;
:* '''hasSubjectNamespace'''( ns ): Whether this title'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;
:* '''contentModel''': The content model for this title, as a string.&lt;br /&gt;
:* '''basePageTitle''': The same as mw.title.makeTitle( title.namespace, title.baseText ).&lt;br /&gt;
:* '''rootPageTitle''': The same as mw.title.makeTitle( title.namespace, title.rootText ).&lt;br /&gt;
:* '''talkPageTitle''': 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;
:* '''subjectPageTitle''': The same as mw.title.makeTitle( mw.site.namespaces[title.namespace].subject.id, title.text ).&lt;br /&gt;
:* '''subPageTitle'''( text ): The same as mw.title.makeTitle( title.namespace, title.text .. '/' .. text ).&lt;br /&gt;
:* '''partialUrl'''(): Returns title.text encoded as it would be in a URL.&lt;br /&gt;
:* '''fullUrl'''( 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;
:* '''localUrl'''( query ): Returns the local URL (with optional query table/string) for this title.&lt;br /&gt;
:* '''canonicalUrl'''( query ): Returns the canonical URL (with optional query table/string) for this title.&lt;br /&gt;
:* '''getContent'''(): 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;
:* ''id'' = [[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;
:* ''page'' = 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 ''page'' blank to call mw.title.getCurrentTitle() and thus default to the page presently being viewed.&lt;br /&gt;
:* ''makeTitle'' = 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 ''(exactly?)'' the same.&lt;br /&gt;
:* ''namespace'' = This parameter is passed to new/makeTitle to define what page to open.&lt;br /&gt;
:* ''fragment'' = This parameter is passed to makeTitle per the MediaWiki documentation.&lt;br /&gt;
:* ''interwiki'' = This parameter is passed to makeTitle per the MediaWiki documentation.&lt;br /&gt;
&lt;br /&gt;
=== Title object function parameters ===&lt;br /&gt;
:* ''p1'' is the first parameter passed to the functions '''within''' 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;
:* ''p2'' is the second parameter passed to the functions '''within''' the title object.&lt;br /&gt;
:** (second parameter) of inNameSpaces&lt;br /&gt;
:** &amp;quot;proto&amp;quot; for fullUrl&lt;br /&gt;
:* ''p3'' to ''p9'' are collected and passed to the functions, but should only affect inNamespaces.&lt;br /&gt;
&lt;br /&gt;
=== Postprocessing ===&lt;br /&gt;
:* ''as'' = 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'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'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's content&lt;br /&gt;
:** &amp;quot;raw&amp;quot; (or any other unrecognized value) to return the page content without any wrapping&lt;/div&gt;</summary>
		<author><name>5.93.2.193</name></author>
	</entry>
</feed>