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


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

Revision as of 12:37, 13 December 2024