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
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 6: Line 6:
|name=
|name=
|image=
|image=
|season=
|section=
|section=
|world_x=
|world_x=
Line 48: Line 49:
"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|name=String|image=File|section=String|world_x=Integer|world_z=Integer|owners=List (,) of String|latest_activity=Date}}
{{#cargo_declare:_table=Shop
</noinclude>
| name           = String
<includeonly>{{#cargo_store:_table=Shops
| image           = File
| name            = {{{name|}}}
| section         = String
| image          = {{#if: {{{image|}}} | [[6:{{{image}}}]] }}
| season          = String
| server          = {{{server|}}}
| world_x         = Integer
| season          = {{{season|}}}
| world_z         = Integer
| owners         = List (,) of String
| latest_activity = Date
}}</noinclude>
<includeonly>{{#cargo_store:_table=Shop
| section        = {{{section|}}}
| section        = {{{section|}}}
| world_x        = {{{world_x|}}}
| world_z        = {{{world_z|}}}
| owners          = {{{owners|}}}
| owners          = {{{owners|}}}
| latest_activity = {{{latest_activity|}}}
| latest_activity = {{{latest_activity|}}}
}}{{Infobox
}}{{Infobox
| above      = {{#if: {{{name|}}}|{{{name|}}}}}
| name        = {{{name|}}}
| name        = {{{name|}}}
| image      = {{#if: {{{image|}}}|[[File:{{{image}}}|250px|alt=Alt text|Caption]]}}
| image      = {{#if: {{{image|}}}|[[File:{{{image}}}|250px|alt=Alt text|Caption]]}}
| caption    =  
| caption    = [[SurvivalS3_Shops|View all shops]]
| header1    = Shop Details
| header1    = Shop Details


Line 74: Line 97:
| data1      = {{{name|}}}
| data1      = {{{name|}}}


| label2      = Server
| label2      = Season
| data2      = {{{server|}}}
| data2      = {{BreadCrumbs Season|season={{{season|}}}}}
 
| label3      = Season
| data3      = {{{season|}}}


| label4     = Owners
| label3     = Owners
| data4       = {{{owners|}}}
| data3       = {{#arraymap:{{{owners|}}}|,|x|{{player|x}}}}


| label5     = X Coordinate
| label4     = Location
| data5       = {{{world_x}}}
| data4       = {{#if: {{{world_x|}}}{{{world_z|}}}|(&nbsp;{{{world_x}}},{{{world_z}}}&nbsp;)}}


| label6      = Z Coordinate
| data6      = {{{world_z}}}


| label7      = Map
| data6       = {{map|world=overworld|season={{{season|}}}|zoom=-2|world_x={{{world_x}}}|world_z={{{world_z}}}|height=300px}}
| data7       = {{map|world=overworld|season=s4|zoom=-2|world_x={{{world_x}}}|world_z={{{world_z}}}|height=300px}}


| label8     = Last Activity
| label7     = Last Activity
| data8       = {{#if: {{{latest_activity|}}}|{{{latest_activity}}}}}
| data7       = {{#if: {{{latest_activity|}}}|{{{latest_activity}}}}}
}}</includeonly>
}}</includeonly>

Latest revision as of 22:38, 16 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

Name of the shop

Stringrequired
Serverserver

no description

Page nameoptional
Seasonseason

no description

Page nameoptional
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 "Shop". View table.