More actions
GamingTwist (talk | contribs) No edit summary Tag: Reverted |
GamingTwist (talk | contribs) Undo revision 1598 by 254407348855111680@discord.com (talk) Tag: Undo |
||
Line 1: | Line 1: | ||
< | <noinclude> | ||
< | This is the "Infobox Shop" template. | ||
{{{for | It should be called in the following format: | ||
<pre> | |||
{{Infobox Shop | |||
| | |name= | ||
|image= | |||
|season= | |||
| {{{ | |section= | ||
| | |world_x= | ||
|world_z= | |||
|owners= | |||
| | |latest_activity= | ||
}} | |||
</pre> | |||
| | <templatedata> | ||
{ | |||
"params": { | |||
"name": { | |||
"description": "Name of the shop", | |||
| {{{ | "type": "string", | ||
| | "required": true | ||
}, | |||
"image": { | |||
| | "description": "Image of the shop", | ||
"type": "wiki-file-name", | |||
"suggested": true | |||
| | }, | ||
{{{ | "section": { | ||
"description": "Section of the shopping district", | |||
"type": "string" | |||
}, | |||
"world_x": { | |||
"description": "X coordinate of shop", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"world_z": { | |||
"description": "Z coordinates of shop", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"owners": { | |||
"description": "Owner(s) of the shop", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"latest_activity": { | |||
"description": "Last time the shop was stocked/checked for stock", | |||
"type": "date" | |||
}, | |||
"server": { | |||
"label": "Server", | |||
"type": "wiki-page-name" | |||
}, | |||
"season": { | |||
"label": "Season", | |||
"type": "wiki-page-name" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"name", | |||
"server", | |||
"season", | |||
"image", | |||
"section", | |||
"world_x", | |||
"world_z", | |||
"owners", | |||
"latest_activity" | |||
] | |||
} | |||
</templatedata> | |||
Edit the page to see the template text. | |||
{{#cargo_declare:_table=Shops | |||
| name = String | |||
| image = File | |||
| section = String | |||
| season = String | |||
| world_x = Integer | |||
| world_z = Integer | |||
| owners = List (,) of String | |||
| latest_activity = Date | |||
}}</noinclude> | |||
<includeonly>{{#cargo_store:_table=Shops | |||
| section = {{{section|}}} | |||
| owners = {{{owners|}}} | |||
| latest_activity = {{{latest_activity|}}} | |||
}}{{Infobox | |||
| above = {{#if: {{{name|}}}|{{{name|}}}}} | |||
| name = {{{name|}}} | |||
| image = {{#if: {{{image|}}}|[[File:{{{image}}}|250px|alt=Alt text|Caption]]}} | |||
| caption = | |||
| header1 = Shop Details | |||
== | | label1 = Name | ||
{{{ | | data1 = {{{name|}}} | ||
| label2 = Season | |||
| data2 = {{BreadCrumbs Season|season={{{season|}}}}} | |||
| label3 = Owners | |||
| data3 = {{{owners|}}} | |||
| label4 = X Coordinate | |||
| data4 = {{{world_x}}} | |||
{{{ | |||
| | | label5 = Z Coordinate | ||
| {{{ | | data5 = {{{world_z}}} | ||
| {{{ | |||
| {{ | | data6 = {{map|world=overworld|season={{{season|}}}|zoom=-2|world_x={{{world_x}}}|world_z={{{world_z}}}|height=300px}} | ||
| {{{ | |||
| {{{ | | label7 = Last Activity | ||
| {{{ | | data7 = {{#if: {{{latest_activity|}}}|{{{latest_activity}}}}} | ||
| {{{ | }}</includeonly> | ||
{{{ | |||
</includeonly> |
Revision as of 12:42, 13 December 2024
This is the "Infobox Shop" template. It should be called in the following format:
{{Infobox Shop |name= |image= |season= |section= |world_x= |world_z= |owners= |latest_activity= }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | Name of the shop | String | required |
Server | server | no description | Page name | optional |
Season | season | no description | Page name | optional |
image | image | Image of the shop | File | suggested |
section | section | Section of the shopping district | String | optional |
world_x | world_x | X coordinate of shop | Number | required |
world_z | world_z | Z coordinates of shop | Number | required |
owners | owners | Owner(s) of the shop | String | required |
latest_activity | latest_activity | Last time the shop was stocked/checked for stock | Date | optional |
Edit the page to see the template text. This template defines the table "Shops". This table has not been created yet.