Template:ScotMesh hero: Difference between revisions
Template page
More actions
Heading block template for the Main Page, editable with a form |
Heading block template for the Main Page, editable with a form |
||
| Line 1: | Line 1: | ||
<includeonly><div class="sm-hero"> | |||
<div class="sm-herologo">[[File:{{{logo|ScotMesh-lockup.svg}}}|link=|alt=ScotMesh|260px]]</div> | |||
<div class="sm-h1">{{{title}}}</div> | |||
<p class="sm-lead">{{{lead|}}}</p> | |||
<div class="sm-btns">{{#if:{{{discord_url|}}}|<span class="b-discord">[{{{discord_url}}} {{{discord_text|Join the Discord}}}]</span> }}{{#if:{{{button_url|}}}|<span>[{{{button_url}}} {{{button_text|}}}]</span>}}</div> | |||
</div></includeonly><noinclude> | |||
The heading block at the top of the [[Main Page]], styled to match scotmesh.net. | |||
<templatedata> | |||
{ | |||
"description": "The ScotMesh logo, a big heading, a short introduction and up to two buttons.", | |||
"format": "block", | |||
"params": { | |||
"logo": { "label": "Logo", "type": "wiki-file-name", "default": "ScotMesh-lockup.svg" }, | |||
"title": { "label": "Heading", "type": "string", "required": true, "example": "Two meshes across Scotland, one wiki." }, | |||
"lead": { "label": "Introduction", "type": "content", "suggested": true }, | |||
"discord_url": { "label": "Discord button link", "description": "Shown as the blue Discord button. Leave empty for no button.", "type": "url" }, | |||
"discord_text": { "label": "Discord button text", "type": "string", "default": "Join the Discord" }, | |||
"button_url": { "label": "Second button link", "description": "Leave empty for no second button.", "type": "url" }, | |||
"button_text": { "label": "Second button text", "type": "string" } | |||
}, | |||
"paramOrder": [ "logo", "title", "lead", "discord_url", "discord_text", "button_url", "button_text" ] | |||
} | |||
</templatedata> | |||
[[Category:ScotMesh templates]] | |||
</noinclude> | |||
Latest revision as of 03:21, 6 November 2026
The heading block at the top of the Main Page, styled to match scotmesh.net.
The ScotMesh logo, a big heading, a short introduction and up to two buttons.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Logo | logo | no description
| File | optional |
| Heading | title | no description
| String | required |
| Introduction | lead | no description | Content | suggested |
| Discord button link | discord_url | Shown as the blue Discord button. Leave empty for no button. | URL | optional |
| Discord button text | discord_text | no description
| String | optional |
| Second button link | button_url | Leave empty for no second button. | URL | optional |
| Second button text | button_text | no description | String | optional |