<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://horizonffxi.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ALocation%2FReverse</id>
	<title>Template:Location/Reverse - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://horizonffxi.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ALocation%2FReverse"/>
	<link rel="alternate" type="text/html" href="https://horizonffxi.wiki/w/index.php?title=Template:Location/Reverse&amp;action=history"/>
	<updated>2026-04-30T08:32:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://horizonffxi.wiki/w/index.php?title=Template:Location/Reverse&amp;diff=62104&amp;oldid=prev</id>
		<title>Aramachus: Created page with &quot;&lt;onlyinclude&gt;&lt;includeonly&gt;&lt;!-- check if the location has coordinates by checking for brackets at the end --&gt;{{#ifeq:{{#sub:{{{1|}}}|-1}}|)&lt;!--  first split at a possible &quot;,&quot; which designates a specific map, and take the 0 part then, if it has coordinates, split at the ( and take the 1 part, then remove the  and  brackets and return --&gt;|{{#sub:{{#explode:{{#explode:{{{1}}}|,|0}}|(|0}}|2|-2}}&lt;!-- again, split at a possible &quot;,&quot; to account for a map being specified then,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://horizonffxi.wiki/w/index.php?title=Template:Location/Reverse&amp;diff=62104&amp;oldid=prev"/>
		<updated>2024-09-19T12:00:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;onlyinclude&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;!-- check if the location has coordinates by checking for brackets at the end --&amp;gt;{{#ifeq:{{#sub:{{{1|}}}|-1}}|)&amp;lt;!--  first split at a possible &amp;quot;,&amp;quot; which designates a specific map, and take the 0 part then, if it has coordinates, split at the ( and take the 1 part, then remove the &lt;a href=&quot;/w/index.php?title=And&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;And (page does not exist)&quot;&gt;and &lt;/a&gt; brackets and return --&amp;gt;|{{#sub:{{#explode:{{#explode:{{{1}}}|,|0}}|(|0}}|2|-2}}&amp;lt;!-- again, split at a possible &amp;quot;,&amp;quot; to account for a map being specified then,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;onlyinclude&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
check if the location has coordinates by checking for brackets at the end&lt;br /&gt;
--&amp;gt;{{#ifeq:{{#sub:{{{1|}}}|-1}}|)&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
first split at a possible &amp;quot;,&amp;quot; which designates a specific map, and take the 0 part&lt;br /&gt;
then, if it has coordinates, split at the ( and take the 1 part, then remove the [[ and ]] brackets and return&lt;br /&gt;
--&amp;gt;|{{#sub:{{#explode:{{#explode:{{{1}}}|,|0}}|(|0}}|2|-2}}&amp;lt;!--&lt;br /&gt;
again, split at a possible &amp;quot;,&amp;quot; to account for a map being specified&lt;br /&gt;
then, if there are no coordinates, things get tricky because the full html tooltip is now on the link and thats part of the return here. Splitting it at a &amp;quot; and taking the 1 part works to return the name. This seems somewhat unpredictable though so at some point in the future, maybe a more solid solution is needed&lt;br /&gt;
Also: this returns the slugified version with an underscore instead of a space&lt;br /&gt;
--&amp;gt;|{{#explode:{{#explode:{{{1}}}|,|0}}|&amp;quot;|1}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;/includeonly&amp;gt;&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
==Usage==&lt;br /&gt;
A template that is supposed to revert [[Template:Location]] and return the input area. &lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
With coordinates:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Location/Reverse|{{Location|Port Windurst|J-8}}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Location/Reverse|{{Location|Port Windurst|J-8}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Location/Reverse|{{Location|Windurst Water|map=North|J-8}}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Location/Reverse|{{Location|Windurst Waters|map=North|J-8}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Without Coordinates&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Location/Reverse|{{Location|Port Windurst}}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Location/Reverse|{{Location|Port Windurst}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Location/Reverse|{{Location|San d&amp;#039;Oria}}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Location/Reverse|{{Location|San d&amp;#039;Oria}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Not Working===&lt;br /&gt;
Locations without coordinates with a map specification&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Location/Reverse|{{Location|Windurst Waters|map=North}}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Location/Reverse|{{Location|Windurst Waters|map=North}}}}&lt;/div&gt;</summary>
		<author><name>Aramachus</name></author>
	</entry>
</feed>