Difference between revisions of "Template:UOAtlasFooter"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) |
||
(88 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="float:left; | + | <includeonly></div><div style="--linksWidth: {{{1|29}}}%; clear: left;float:left;{{#if:{{{embedded|}}}|position: absolute;}}" id="UOLinksList" class="UOLinksList"> |
{{#arrayunique:pinGroups}}{{#arraysort:pinGroups|asc}} | {{#arrayunique:pinGroups}}{{#arraysort:pinGroups|asc}} | ||
{{#loop: i | {{#loop: i | ||
|0 | |0 | ||
|{{#arraysize:pinGroups}} | |{{#arraysize:pinGroups}} | ||
− | |<br><br>{{#vardefine: pinGroup|{{#arrayindex:pinGroups | {{#var:i}} }} }}{{#vardefine:group|{{#switch: {{#var:pinGroup}} | + | |{{#if:{{{embedded|}}}||<br><br>}}{{#vardefine: pinGroup|{{#arrayindex:pinGroups | {{#var:i}} }} }}{{#vardefine:group|{{#switch: {{#var:pinGroup}} |
|body of water = Bodies of water | |body of water = Bodies of water | ||
|city = Cities | |city = Cities | ||
Line 10: | Line 10: | ||
|customs = Customs | |customs = Customs | ||
|library = Libraries | |library = Libraries | ||
+ | |lockpicking box = Lockpicking boxes | ||
|minax faction = Minax faction | |minax faction = Minax faction | ||
|other = Other | |other = Other | ||
|point of interest = Points of interest | |point of interest = Points of interest | ||
+ | |quest npc = Quest NPCs | ||
|ruins = Ruins | |ruins = Ruins | ||
|shadowlords faction = Shadowlords faction | |shadowlords faction = Shadowlords faction | ||
+ | |stairs = Stairs | ||
|terrain = Terrain | |terrain = Terrain | ||
|true britannians faction = True Britannians faction | |true britannians faction = True Britannians faction | ||
+ | |bardic guild = Bardic Collegium | ||
+ | |provisioners guild = Guild of Provisioners | ||
+ | |weapons guild = Society of Weaponmakers | ||
+ | |armaments guild = Guild of Armaments | ||
+ | |assasins guild = Guild of Assassins | ||
+ | |cooks guild = Society of Cooks and Chefs | ||
+ | |mages guild = Guild of Mages | ||
+ | |sorcerers guild = Guild of Sorcery | ||
+ | |illusionists guild = Masters of Illusion | ||
+ | |miners guild = Mining Cooperative | ||
+ | |rangers guild = League of Rangers | ||
+ | |seamans guild = Seaman's Chapter | ||
+ | |fishermans guild = Guild of Fishermen | ||
+ | |sailors guild = Sailor's Maritime Association | ||
+ | |shipwrights guild = Society of Shipwrights | ||
+ | |tailors guild = Tailor's Hall | ||
+ | |thieves guild = Society of Thieves | ||
+ | |rogues guild = Federation of Rogues and Beggars | ||
+ | |engineers guild = Order of Engineers | ||
+ | |warriors guild = Association of Warriors | ||
+ | |cavalry guild = Guild of Cavalry and Horse | ||
+ | |fighters guild = Fighters and Footmen | ||
|#default = {{ucfirst:{{#var:pinGroup}} }}s | |#default = {{ucfirst:{{#var:pinGroup}} }}s | ||
}} }}<!-- | }} }}<!-- | ||
− | -->< | + | --><h{{#if: {{#varexists:noscroll}}|3|2}} style="white-space: nowrap;"><span class="icon-{{#replace: {{#var:pinGroup}}| |_}}" style="vertical-align: bottom; overflow: hidden; transform: unset;"><div style="display: inline-block;">[[Image:UO-icons.png|class=icon icon-{{#replace: {{#var:pinGroup}}| |_}}|link=]]</div></span> <span class="pin-types" data-pin="{{#replace:{{#var:pinGroup}}| |-}}" data-name="{{#var:group}}">{{ProperCase|{{#if:{{{embedText|}}}|{{{embedText|}}}|{{#var:group}} }} }}</span></h{{#if: {{#varexists:noscroll}}|3|2}}><!-- |
-->{{#vardefine: pinType|pins-{{#var:pinGroup}} }}<!-- | -->{{#vardefine: pinType|pins-{{#var:pinGroup}} }}<!-- | ||
-->{{#arrayunique:{{#var: pinType}}}}<!-- | -->{{#arrayunique:{{#var: pinType}}}}<!-- | ||
-->{{#arraysort:{{#var: pinType}}|asc}}<!-- | -->{{#arraysort:{{#var: pinType}}|asc}}<!-- | ||
− | -->{{#arrayprint:{{#var: pinType}}|<br/>|@@@@ |<span data-pair="{{#explode: | + | -->{{#ifeq:{{#var: pinType}}|pins-door|<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">}}<!-- |
+ | -->{{#arrayprint:{{#var: pinType}}|<br/>|@@@@ |{{#vardefine:val|{{#replace:{{#replace:{{#replace:{{#replace:@@@@|⓪|0}}|①|1}}|②|2}}|③|3}} }}<span style="z-index: 1; position: relative; cursor: pointer;" data-pair="pin{{#replace:{{#explode:{{#var:val}}|;|2}}|-|_}}">{{#ifeq:{{#explode:{{#var:val}}|;|3}}|no|[[UO:{{#explode:{{#var:val}}|;|1}}|{{#explode:{{#var:val}}|;|0}}]]|{{#explode:{{#var:val}}|;|0}}}}</span>}}<!-- | ||
+ | -->{{#ifeq:{{#var: pinType}}|pins-door|</div>}} | ||
}} | }} | ||
+ | <br><br><br><br><br><br><br><br><br><br><br><br><br><br> | ||
</div> | </div> | ||
− | <br><br></includeonly> | + | {{#if: {{#varexists:divMenuBuilt}}||{{#vardefine:divMenuBuilt|1}} |
+ | <br><br> | ||
+ | <div id="toolmenu" style="display:none;" title="Map Tools"> | ||
+ | <div id="mylocation"></div> | ||
+ | <div id="showhide"></div> | ||
+ | <div id="mapoptions"></div> | ||
+ | <div id="addlocation"> | ||
+ | <br> | ||
+ | <input id="getlocbtn" type="button" value="Get coordinates" /><br><br> | ||
+ | <div id="getloctext" style="display:none"> | ||
+ | The coordinates you selected were: <span id="getloccoords"> </span><br><br> | ||
+ | What type of location is this? | ||
+ | <select id="getlocselect"> | ||
+ | <option value="archers guild">archers guild</option> | ||
+ | <option value="architect">architect</option> | ||
+ | <option value="armaments guild">armaments guild</option> | ||
+ | <option value="armorer">armorer</option> | ||
+ | <option value="armorers guild">armorers guild</option> | ||
+ | <option value="artist">artist</option> | ||
+ | <option value="artists guild">artists guild</option> | ||
+ | <option value="assasins guild">assasins guild</option> | ||
+ | <option value="baker">baker</option> | ||
+ | <option value="bank">bank</option> | ||
+ | <option value="barber">barber</option> | ||
+ | <option value="barbers guild">barbers guild</option> | ||
+ | <option value="bard">bard</option> | ||
+ | <option value="bardic guild">bardic guild</option> | ||
+ | <option value="barterers guild">barterers guild</option> | ||
+ | <option value="beekeeper">beekeeper</option> | ||
+ | <option value="blacksmith">blacksmith</option> | ||
+ | <option value="blacksmiths guild">blacksmiths guild</option> | ||
+ | <option value="body of water">body of water</option> | ||
+ | <option value="bowyer">bowyer</option> | ||
+ | <option value="bridge">bridge</option> | ||
+ | <option value="butcher">butcher</option> | ||
+ | <option value="carpenter">carpenter</option> | ||
+ | <option value="cartographer">cartographer</option> | ||
+ | <option value="cavalry guild">cavalry guild</option> | ||
+ | <option value="cave">cave</option> | ||
+ | <option value="champion">champion</option> | ||
+ | <option value="city">city</option> | ||
+ | <option value="cooks guild">cooks guild</option> | ||
+ | <option value="council of mages faction">council of mages faction</option> | ||
+ | <option value="counselors guild">counselors guild</option> | ||
+ | <option value="customs">customs</option> | ||
+ | <option value="daily rare">daily rare</option> | ||
+ | <option value="dock">dock</option> | ||
+ | <option value="dungeon">dungeon</option> | ||
+ | <option value="engineers guild">engineers guild</option> | ||
+ | <option value="exit">exit</option> | ||
+ | <option value="farm">farm</option> | ||
+ | <option value="fighters guild">fighters guild</option> | ||
+ | <option value="fishermans guild">fishermans guild</option> | ||
+ | <option value="fletcher">fletcher</option> | ||
+ | <option value="flight path">flight path</option> | ||
+ | <option value="fort">fort</option> | ||
+ | <option value="gate">gate</option> | ||
+ | <option value="graveyard">graveyard</option> | ||
+ | <option value="guild">guild</option> | ||
+ | <option value="healer">healer</option> | ||
+ | <option value="healers guild">healers guild</option> | ||
+ | <option value="herbalist">herbalist</option> | ||
+ | <option value="illusionists guild">illusionists guild</option> | ||
+ | <option value="inn">inn</option> | ||
+ | <option value="island">island</option> | ||
+ | <option value="jeweler">jeweler</option> | ||
+ | <option value="ladder">ladder</option> | ||
+ | <option value="landmark">landmark</option> | ||
+ | <option value="library">library</option> | ||
+ | <option value="lockpicking box">lockpicking box</option> | ||
+ | <option value="mage">mage</option> | ||
+ | <option value="mages guild">mages guild</option> | ||
+ | <option value="mariner">mariner</option> | ||
+ | <option value="market">market</option> | ||
+ | <option value="merchants guild">merchants guild</option> | ||
+ | <option value="minax faction">minax faction</option> | ||
+ | <option value="miners guild">miners guild</option> | ||
+ | <option value="moongate">moongate</option> | ||
+ | <option value="other">other</option> | ||
+ | <option value="painter">painter</option> | ||
+ | <option value="point of interest">point of interest</option> | ||
+ | <option value="provisioner">provisioner</option> | ||
+ | <option value="provisioners guild">provisioners guild</option> | ||
+ | <option value="quest npc">quest npc</option> | ||
+ | <option value="ranger">ranger</option> | ||
+ | <option value="rangers guild">rangers guild</option> | ||
+ | <option value="rogues guild">rogues guild</option> | ||
+ | <option value="ruins">ruins</option> | ||
+ | <option value="sailors guild">sailors guild</option> | ||
+ | <option value="scenic point">scenic point</option> | ||
+ | <option value="scribe">scribe</option> | ||
+ | <option value="seamans guild">seamans guild</option> | ||
+ | <option value="secret door">secret door</option> | ||
+ | <option value="shadowlords faction">shadowlords faction</option> | ||
+ | <option value="ship">ship</option> | ||
+ | <option value="shipwright">shipwright</option> | ||
+ | <option value="shipwrights guild">shipwrights guild</option> | ||
+ | <option value="shrine">shrine</option> | ||
+ | <option value="sorcerers guild">sorcerers guild</option> | ||
+ | <option value="stable">stable</option> | ||
+ | <option value="stairs">stairs</option> | ||
+ | <option value="stealable item">stealable item</option> | ||
+ | <option value="tailor">tailor</option> | ||
+ | <option value="tailors guild">tailors guild</option> | ||
+ | <option value="tanner">tanner</option> | ||
+ | <option value="tavern">tavern</option> | ||
+ | <option value="teleporter">teleporter</option> | ||
+ | <option value="terrain">terrain</option> | ||
+ | <option value="theater">theater</option> | ||
+ | <option value="thieves guild">thieves guild</option> | ||
+ | <option value="tinker">tinker</option> | ||
+ | <option value="tinkers guild">tinkers guild</option> | ||
+ | <option value="traders guild">traders guild</option> | ||
+ | <option value="true britannians faction">true britannians faction</option> | ||
+ | <option value="veterinarian">veterinarian</option> | ||
+ | <option value="warriors guild">warriors guild</option> | ||
+ | <option value="weapons guild">weapons guild</option> | ||
+ | </select><br><br> | ||
+ | Name of this location: | ||
+ | <input type="text" id="getlocdescription" width="60" /><br><br> | ||
+ | Wiki page for this location (optional): | ||
+ | <input type="text" id="getlocwikipage" width="60" /><br><br> | ||
+ | Add the following to this page's wikitext to add this location:<br><br> | ||
+ | <span id="getlocresult"></span></div> | ||
+ | <div class="editPinButtons" style="display: flex;justify-content:space-between;padding-left:3%;position:absolute;bottom:10%;width:84%;"> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div id="editlocation"> | ||
+ | <div class="editPinButtons" style="display: flex;justify-content:space-between;padding-left:3%;position:absolute;bottom:10%;width:84%;"> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | }}<!-- | ||
+ | --><!-- Empty the arrays --><!-- | ||
+ | -->{{#loop: i | ||
+ | |0 | ||
+ | |{{#arraysize:pinGroups}} | ||
+ | |{{#arraydefine:pins-{{#arrayindex:pinGroups | {{#var:i}} }} }} | ||
+ | }}{{#arraydefine:pinGroups}} | ||
+ | </includeonly> |