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
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:name (label=Name)|image (label=Image)|last_active (label=Last Active)|owners (label=Owners)|world_x (label=World X)|world_z (label=World Z)}}
This is the "Infobox Shop" template.
{{#cargo_declare:_table=Shops|name=String|image=URL|last_active=Datetime|owners=List (,) of String|world_x=Integer|world_z=Integer}}
It should be called in the following format:
<pre>
{{Infobox Shop
|name=
|image=
|section=
|world_x=
|world_z=
|owners=
|latest_activity=
}}
</pre>
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}}
</noinclude><includeonly>{{#cargo_store:_table=Shops}}
</noinclude><includeonly>{{#cargo_store:_table=Shops}}
{{Infobox
'''Name:''' {{{name|}}}
|title = An amazing Infobox
 
|header1 = {{{name|}}}
'''Image:''' {{#if:{{{image|}}}|[[6:{{{image|}}}]]}}
|label2 = jgdfhgj
 
|data2 = trog
'''Section:''' {{{section|}}}
|label3 = Web
 
|data3 = [https://trog.qgl.org trog.qgl.org]
'''World X:''' {{{world_x|}}}
}}
 
Save
'''World Z:''' {{{world_z|}}}
 
'''Owners:''' {{{owners|}}}
 
'''Latest Activity:''' {{{latest_activity|}}}
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
"params": {
"name": {
"label": "Name",
"description": "The name of the shop",
"type": "string",
"required": true
}
}
}
</templatedata>
</noinclude>

Revision as of 22:47, 13 October 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=
}}

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