Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox Shop: Difference between revisions

Template page
No edit summary
Tag: Reverted
m Reverted edits by 254407348855111680@discord.com (talk) to last revision by ArkhamCookie
Tag: Rollback
Line 6: Line 6:
|name=
|name=
|image=
|image=
|server=
|season=
|section=
|section=
|world_x=
|world_x=
Line 50: Line 48:
"description": "Last time the shop was stocked/checked for stock",
"description": "Last time the shop was stocked/checked for stock",
"type": "date"
"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>
</templatedata>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Shops
{{#cargo_declare:_table=Shops|name=String|image=File|section=String|world_x=Integer|world_z=Integer|owners=List (,) of String|latest_activity=Date}}
| name           = String
</noinclude>
| image           = File
| section         = String
| season          = String
| server          = String
| world_x         = Integer
| world_z         = Integer
| owners         = List (,) of String
| latest_activity = Date
}}</noinclude>
<includeonly>{{#cargo_store:_table=Shops
<includeonly>{{#cargo_store:_table=Shops
| name           = {{{name|}}}
|name={{{name|}}}
| image           = {{#if: {{{image|}}} | [[6:{{{image}}}]] }}
|image={{#if:{{{image|}}}|[[6:{{{image|}}}]]}}
| server          = {{{server|}}}
|section={{{section|}}}
| season          = {{{season|}}}
|world_x={{{world_x|}}}
| section         = {{{section|}}}
|world_z={{{world_z|}}}
| world_x         = {{{world_x|}}}
|owners={{{owners|}}}
| world_z         = {{{world_z|}}}
latest_activity={{{latest_activity|}}}
| owners         = {{{owners|}}}
}}
| latest_activity = {{{latest_activity|}}}
}}{{Infobox
| name        = {{{name|}}}
| image      = {{#if: {{{image|}}}|[[File:{{{image}}}|250px|alt=Alt text|Caption]]}}
| caption    =
| header1    = Shop Details


| label1      = Name
{{Infobox
| data1      = {{{name|}}}
| name = {{{name|}}}
| image = {{#if: {{{image|}}}|[[File:{{{image|}}}|250px|alt=Alt text|Caption]]}}
| caption =
| header1 = Shop Details


| label2      = Server
| label1 = Name
| data2      = {{{server|}}}
| data1 = {{{name|}}}


| label3      = Season
| label2 = Owners
| data3      = {{{season|}}}
| data2 = {{{owners|}}}


| label4      = Owners
| label3 = X Coordinate
| data4      = {{{owners|}}}
| data3 = {{{world_x}}}


| label5      = X Coordinate
| label4 = Z Coordinate
| data5      = {{{world_x}}}
| data4 = {{{world_z}}}


| label6      = Z Coordinate
| label5 = Last Activity
| data6      = {{{world_z}}}
| data5 = {{#if: {{{latest_activity|}}}|{{{latest_activity}}}}}
 
}}
| label7      = Map
</includeonly>
| data7      = {{map|world=overworld|season=s4|zoom=-2|world_x={{{world_x}}}|world_z={{{world_z}}}|height=300px}}
 
| label8      = Last Activity
| data8      = {{#if: {{{latest_activity|}}}|{{{latest_activity}}}}}
}}</includeonly>

Revision as of 23:59, 2 November 2024

This is the "Infobox Shop" template. It should be called in the following format:

{{Infobox Shop
|name=
|image=
|section=
|world_x=
|world_z=
|owners=
|latest_activity=
}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

Name of the shop

Stringrequired
imageimage

Image of the shop

Filesuggested
sectionsection

Section of the shopping district

Stringoptional
world_xworld_x

X coordinate of shop

Numberrequired
world_zworld_z

Z coordinates of shop

Numberrequired
ownersowners

Owner(s) of the shop

Stringrequired
latest_activitylatest_activity

Last time the shop was stocked/checked for stock

Dateoptional

Edit the page to see the template text. This template defines the table "Shops". This table has not been created yet.