No edit summary |
(Added comment to coords) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
| Name=String |
| Name=String |
||
| Screenshot=File |
| Screenshot=File |
||
+ | | map=Page |
||
| Biome=Page |
| Biome=Page |
||
− | | Coords=Coordinates |
+ | | Coords=Coordinates <!-- DOES NOT WORK ON SIPTAH--> |
| Type=String |
| Type=String |
||
| MapIcon=File |
| MapIcon=File |
||
| Faction=Page |
| Faction=Page |
||
− | | Unmarked= |
+ | | Unmarked=String (allowed values=Yes,No) |
}} |
}} |
||
</noinclude> |
</noinclude> |
||
Line 15: | Line 16: | ||
| Name={{{Name|PAGENAME}}} |
| Name={{{Name|PAGENAME}}} |
||
| Screenshot={{{Screenshot|}}} |
| Screenshot={{{Screenshot|}}} |
||
+ | | map={{{map|}}} |
||
| Biome={{{Biome|}}} |
| Biome={{{Biome|}}} |
||
| Coords={{{Coords|}}} |
| Coords={{{Coords|}}} |
||
Line 26: | Line 28: | ||
|- |
|- |
||
{{#if: {{{Screenshot|}}} | {{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{Screenshot}}}|300px]] }} |
{{#if: {{{Screenshot|}}} | {{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{Screenshot}}}|300px]] }} |
||
+ | |- |
||
+ | {{#if: {{{map|}}} | {{!}} colspan="1" class="infoboxlabel" style="width:150px;" {{!}} Map |
||
+ | {{!}} {{{map}}} }} |
||
|- |
|- |
||
{{#if: {{{Biome|}}} | {{!}} colspan="1" class="infoboxlabel" style="width:150px;" {{!}} Biome |
{{#if: {{{Biome|}}} | {{!}} colspan="1" class="infoboxlabel" style="width:150px;" {{!}} Biome |
||
Line 44: | Line 49: | ||
{{#if: {{{Coords|}}} | {{!}} colspan="2" {{!}} {{Minimap | xloc = {{#expr: (({{#explode:{{{Coords}}}|,|0}} + 342) * -2.45) + 150 }} | yloc = {{#expr: (({{#explode:{{{Coords}}}|,|1}} + 446) * -2.45) + 150 }} | icon = Mini {{{MapIcon}}} | location = {{{Name}}} }} }} |
{{#if: {{{Coords|}}} | {{!}} colspan="2" {{!}} {{Minimap | xloc = {{#expr: (({{#explode:{{{Coords}}}|,|0}} + 342) * -2.45) + 150 }} | yloc = {{#expr: (({{#explode:{{{Coords}}}|,|1}} + 446) * -2.45) + 150 }} | icon = Mini {{{MapIcon}}} | location = {{{Name}}} }} }} |
||
|} |
|} |
||
− | {{# |
+ | {{#if: {{{Unmarked|}}} | [[Category:Unmarked locations]] | [[Category:Locations]]}}</includeonly> |
<noinclude>{{doc}}[[Category:Infobox templates]]</noinclude> |
<noinclude>{{doc}}[[Category:Infobox templates]]</noinclude> |
Revision as of 19:23, 1 January 2021
This template defines the table "Locations". View table.
Usage
{{Location infobox | Name = String E.G. Test Location | Screenshot = File E.G. Screenshot.jpg | map = [[Exiled Lands]] or [[Isle of Siptah]] | Biome = Page E.G. [[Desert]] | Coords = Coordinates E.G. 30,10 DOES NOT WORK ON SIPTAH | Type = String E.G. Camp | MapIcon = File | Faction = Page E.G. [[Black Hand]] | Unmarked = Binary }}
Parameters
This template uses Cargo to populate a database table.
- Name
- Name of the Location. Defaults to
{{PAGENAME}}
. - Screenshot
- Screenshot of the location. This is a file reference.
- map
- Which Map (Exiled Lands or Isle of Siptah). This is a PAGE so remember to enclose in double square brackets.
- Biome
- The Biome that the location is in. This is a PAGE so remember to enclose in double square brackets.
- Coords DOES NOT WORK ON SIPTAH
- EXILED LANDS in-game coordinates. Note - when using ToggleDebugHUD command to view coordinates, you need to divide those values by 1000 to get the values on this wiki. See https://help.gamepedia.com/Cargo:_Storing_data for more info on using coordinate data.
- Type
- Type of location. Choose from: Camp, Capital, Cave, Dungeon, Obelisk, Ruins, Vista.
- MapIcon
- The map icon used for this location. For reference, see Category:MapMarker icons.
- Faction
- The name of the faction that control this location, where relevant (such as camps).
- Unmarked
- The location is important, but not an icon on the ingame map. Choose from: blank (on ingame map), yes (not on ingame map)
The above documentation is transcluded from Template:Location infobox/doc. (edit | history)