Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ScotMesh hero: Difference between revisions

Template page
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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Logologo

no description

Default
ScotMesh-lockup.svg
Fileoptional
Headingtitle

no description

Example
Two meshes across Scotland, one wiki.
Stringrequired
Introductionlead

no description

Contentsuggested
Discord button linkdiscord_url

Shown as the blue Discord button. Leave empty for no button.

URLoptional
Discord button textdiscord_text

no description

Default
Join the Discord
Stringoptional
Second button linkbutton_url

Leave empty for no second button.

URLoptional
Second button textbutton_text

no description

Stringoptional