<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3APath%2Fdoc</id>
	<title>Module:Path/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3APath%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Path/doc&amp;action=history"/>
	<updated>2026-11-14T08:44:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Module:Path/doc&amp;diff=176871&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Path/doc&amp;diff=176871&amp;oldid=prev"/>
		<updated>2024-11-10T00:47:32Z</updated>

		<summary type="html">&lt;p&gt;creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
This module offers utilities to convert paths into different formats.&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
{{A note}} In all functions the {{para|1}} argument can indifferently be a relative (i.e. beginning with &amp;lt;code&amp;gt;./&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;../&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;) or an absolute path.&lt;br /&gt;
&lt;br /&gt;
{{vpad}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;abs&amp;lt;/code&amp;gt; ===&lt;br /&gt;
The &amp;lt;code&amp;gt;abs&amp;lt;/code&amp;gt; function parses the {{para|1}} argument and returns it as an absolute path.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|abs|./example}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|abs|./example}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|abs|.}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|abs|.}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|abs|Wikipedia:Lua}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|abs|Wikipedia:Lua}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|abs}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|abs}}&lt;br /&gt;
&lt;br /&gt;
{{vpad|1.5em}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;rel&amp;lt;/code&amp;gt; ===&lt;br /&gt;
The &amp;lt;code&amp;gt;rel&amp;lt;/code&amp;gt; function parses the {{para|1}} argument and returns it as a relative path.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|rel|Module:Path/example}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|rel|Module:Path/example}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|rel|Module:Path}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|rel|Module:Path}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|rel|Wikipedia:Lua}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|rel|Wikipedia:Lua}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|rel}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|rel}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;[[Module:Path/example|{{#invoke:path|rel|Module:Path/example}}]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ [[Module:Path/example|{{#invoke:path|rel|Module:Path/example}}]]&lt;br /&gt;
*:* See also {{tl|Relative link}}&lt;br /&gt;
&lt;br /&gt;
{{vpad|1.5em}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;sub&amp;lt;/code&amp;gt; ===&lt;br /&gt;
The &amp;lt;code&amp;gt;sub&amp;lt;/code&amp;gt; function parses the {{para|1}} argument and returns it as a partial path with only the subpages shown.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|sub|Module:Path/example}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|sub|Module:Path/example}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|sub|Module:Path}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|sub|Module:Path}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|sub|Wikipedia:Lua}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|sub|Wikipedia:Lua}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:path|sub}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ {{#invoke:path|sub}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;[[Module:Path/example|{{#invoke:path|sub|Module:Path/example}}]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*: ↳ [[Module:Path/example|{{#invoke:path|sub|Module:Path/example}}]]&lt;br /&gt;
*:* See also {{tl|Relative link implicit}}&lt;br /&gt;
&lt;br /&gt;
{{vpad}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{Tl|Relative link}}&lt;br /&gt;
* {{Tl|Relative link implicit}}&lt;br /&gt;
* [[:Category:Utility modules]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Utility modules|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>