Template:Infobox location: Difference between revisions
Appearance
imported>Margotbean allow for island map |
imported>Peaw mNo edit summary |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div id="infoboxborder"> | <includeonly><div id="infoboxborder"> | ||
{| class="location" id="infoboxtable" | {| class="location" id="infoboxtable" | ||
|colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}} | |colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
|colspan=2 id="locationimg"|{{#if:{{{building|}}}|[[File:{{{building|}}}{{!}}{{#if:{{{width|}}}|{{{width|}}}{{!}}}}center]]|}} | |colspan="2" id="locationimg"|{{#if:{{{building|}}}|[[File:{{{building|}}}{{!}}{{#if:{{{width|}}}|{{{width|}}}{{!}}}}center]]|}} | ||
|- | |- | ||
|colspan=2|{{# | |colspan="2"|{{#switch:{{{island|}}} | ||
|{{Map|island= | |true={{Map|main=false|island=true|islandloc1x={{{mapx|}}}|islandloc1y={{{mapy|}}}}} | ||
|{{ | |small={{Map|island=small|{{{mapx|}}}|{{{mapy|}}}}} | ||
|#default={{Map|{{{mapx|}}}|{{{mapy|}}}}} }}<!-- | |||
-->{{#if:{{{openhours|}}}|<nowiki /> | -->{{#if:{{{openhours|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
| Line 27: | Line 28: | ||
|}{{#seo: | |}{{#seo: | ||
|keywords=Stardew Valley Wiki,Stardew Valley,Villagers,{{PAGENAME}},{{{name|}}},hours,location | |keywords=Stardew Valley Wiki,Stardew Valley,Villagers,{{PAGENAME}},{{{name|}}},hours,location | ||
}}</div>{{InfoboxSEO | }}</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | ||
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |||
Latest revision as of 14:45, 11 October 2024
Description
This template is used to provide an infobox for locations.
Use
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
{{Infobox location
|name =
|mapx =
|mapy =
|building =
|openhours =
|closed =
|address =
|width =
|occupants =
|island =
|}}
parameters
{{Infobox location
|name = Location name (defaults to pagename)
|mapx = The image's X coordinate
|mapy = The image's Y coordinate
|building = The image name, minus the File:
|openhours = The hours the store is open
|closed = The days the store is closed
|address = Location
|width = Override the default width of the image (optional)
|occupants = NPCs that live in the location, using [[Template:NPC]]
|island = true (Optional, will display the map with Ginger Island inset)
|}}