Template:Shop: Difference between revisions

From Artisans Asylum Wiki
m (Minor alignment cleanup)
(Adding templatedata)
Line 6: Line 6:
| colspan="2" class="infobox-image" | [[File:{{{image}}}|thumb|center|250px|{{{caption}}}]]
| colspan="2" class="infobox-image" | [[File:{{{image}}}|thumb|center|250px|{{{caption}}}]]
|-
|-
| colspan="2" class="infobox-subtitle" | {{{shop_subtitle}}}
| colspan="2" class="infobox-subtitle" | {{{shop_title}}}
|-
|-
| class="infobox-rowheader" | Lead || {{{lead|Unknown}}}
| class="infobox-rowheader" | Lead || {{{lead|Unknown}}}
Line 17: Line 17:
<includeonly>[[Category:Shop]]</includeonly>
<includeonly>[[Category:Shop]]</includeonly>
<noinclude>
<noinclude>
<templatedata>
{
    "description": "Shop template.",
    "params": {
        "shop_title": {
            "label": "Shop name",
            "type": "string",
            "required": true,
            "description": "Name of the shop (i.e. Metal, Wood)",
            "aliases": ["1"]
        },
        "image": {
            "label": "Image file name",
            "type": "wiki-file-name",
            "description": "File name of a picture of the shop",
            "autovalue": "No_image.jpeg"
            "aliases": ["1"]
        },
        "caption": {
            "label": "Image caption",
            "type": "string",
            "description": "Caption for the picture of the shop",
            "aliases": ["1"]
        },
        "lead": {
            "label": "Shop lead",
            "type": "string",
            "description": "Name of the shop lead",
            "aliases": ["1"]
        },
        "tool_testers": {
            "label": "Tool testers",
            "type": "string",
            "description": "Link to the tool testing request form, or a list of tool testers",
            "autovalue": "https://www.artisansasylum.com/tool-testing"
            "aliases": ["1"]
        },
        "hours": {
            "label": "Open hours",
            "type": "string",
            "description": "Hours that the shop is open (i.e. 9am-5pm, Mon-Fri)",
            "autovalue": "Same as membership hours"
            "aliases": ["1"]
        }
    }
}
</templatedata>
==Shop Template==
==Shop Template==
For showing off Shops.
For showing off Shops.
Line 24: Line 73:
{{Shop
{{Shop
|shop_title      = Electronics and Robotics
|shop_title      = Electronics and Robotics
|shop_subtitle  =
|image          = Electronics_area_overview_01.jpg
|image          = Electronics_area_overview_01.jpg
|caption        = Solder stations and work benches
|caption        = Solder stations and work benches
Line 38: Line 86:
{{Shop
{{Shop
|shop_title      =  
|shop_title      =  
|shop_subtitle  =
|image          =  
|image          =  
|caption        =  
|caption        =  
Line 62: Line 109:
</pre>
</pre>


[[Category:Shop Templates]]
 
 
</noinclude>
</noinclude>

Revision as of 11:22, 30 January 2024

{{{shop_title}}}
[[File:{{{image}}}|thumb|center|250px|{{{caption}}}]]
{{{shop_title}}}
Lead Unknown
Tool Testers

Unknown

Hours {{{hours}}}


Syntax error in JSON.

Shop Template

For showing off Shops.

Example

{{Shop
|shop_title      = Electronics and Robotics
|image           = Electronics_area_overview_01.jpg
|caption         = Solder stations and work benches
|lead            = Unknown
|tool_testers    = Unknown
|hours           = Same as membership hours
}}

Copy/pasteable blank version

{{Shop
|shop_title      = 
|image           = 
|caption         = 
|lead            = 
|tool_testers    = 
|hours           = 
}}

Tool Tester List

If you'd like to add a list of Tool Testers, instead of just one Tester, use this format:

...
|tool_testers    = Tester1

Tester2

Tester3

Tester4
...