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
Tag: Undo
Line 1: Line 1:
<includeonly>
<noinclude>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
This is the "Infobox Shop" template.
{{{for template|Infobox Shop}}}
It should be called in the following format:
{| class="formtable"
<pre>
! section:  
{{Infobox Shop
| {{{field|section}}}
|name=
|-
|image=
! name:  
|season=
| {{{field|name}}}
|section=
|-
|world_x=
! image:
|world_z=
| {{{field|image}}}
|owners=
|-
|latest_activity=
! season:
}}
| {{{field|season}}}
</pre>
|-
<templatedata>
! world x:  
{
| {{{field|world x}}}
"params": {
|-
"name": {
! world z:
"description": "Name of the shop",
| {{{field|world z}}}
"type": "string",
|-
"required": true
! owners:
},
| {{{field|owners}}}
"image": {
|-
"description": "Image of the shop",
! latest activity:  
"type": "wiki-file-name",
| {{{field|latest activity}}}
"suggested": true
|}
},
{{{end template}}}
"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


==about==
| label1      = Name
{{{section|about|level=2}}}
| data1      = {{{name|}}}


{| class="shop-items-table" style="width: 100%; border-collapse: collapse; border: 1px solid #AAAAAA;"
| label2      = Season
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | Shop
| data2      = {{BreadCrumbs Season|season={{{season|}}}}}
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | World X
 
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | World Y
| label3      = Owners
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | World Z
| data3      = {{{owners|}}}
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | Status
 
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | Notes
| label4      = X Coordinate
! style="background-color: #f2f2f2; text-align: left; padding: 5px;" | Item
| data4      = {{{world_x}}}
{{{for template|Shop Item|multiple}}}
 
|-
| label5      = Z Coordinate
| {{{field|shop}}}
| data5      = {{{world_z}}}
| {{{field|world x}}}
 
| {{{field|world y}}}
| data6      = {{map|world=overworld|season={{{season|}}}|zoom=-2|world_x={{{world_x}}}|world_z={{{world_z}}}|height=300px}}
| {{{field|world z}}}
 
| {{{field|status}}}
| label7      = Last Activity
| {{{field|notes}}}
| data7      = {{#if: {{{latest_activity|}}}|{{{latest_activity}}}}}
| {{{field|item}}}
}}</includeonly>
{{{end template}}}
|}
{{{standard input|free text|rows=10}}}
</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.

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 "Shops". This table has not been created yet.