Template:Network card: Difference between revisions
Template page
More actions
Network card template, so the Main Page cards can be edited with a form |
Network card template, so the Main Page cards can be edited with a form |
||
| Line 1: | Line 1: | ||
<includeonly><div class="net-card {{{network|}}}"> | |||
<div class="net-head">[[File:{{{icon}}}|link={{{guide|}}}|38px|alt={{{name}}}]]<span class="net-meta"><span class="net-name">{{{name}}}</span><span class="net-for">{{{tagline|}}}</span></span></div> | |||
<p>{{{description|}}}</p> | |||
<div class="net-links"> | |||
{{{links|}}} | |||
</div> | |||
<div class="net-go">[[{{{guide}}}|{{{guide_text|Open the {{{name}}} guides →}}}]]</div> | |||
</div></includeonly><noinclude> | |||
A card for one network on the [[Main Page]], styled to match scotmesh.net. Put cards inside <code><nowiki><div class="sm-grid">...</div></nowiki></code> so they sit side by side. | |||
<templatedata> | |||
{ | |||
"description": "A card for one ScotMesh network: icon, name, tagline, a short description, useful links and a link to its guides.", | |||
"format": "block", | |||
"params": { | |||
"network": { | |||
"label": "Network colour", | |||
"description": "Which network's accent colour the card uses.", | |||
"type": "string", | |||
"suggestedvalues": [ "meshcore", "meshtastic" ], | |||
"example": "meshcore", | |||
"suggested": true | |||
}, | |||
"icon": { | |||
"label": "Icon", | |||
"description": "The network's icon, an uploaded file name.", | |||
"type": "wiki-file-name", | |||
"example": "ScotMesh-meshcore-mark.svg", | |||
"required": true | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "The network's name.", | |||
"type": "string", | |||
"example": "MeshCore", | |||
"required": true | |||
}, | |||
"tagline": { | |||
"label": "Tagline", | |||
"description": "A short line under the name.", | |||
"type": "string", | |||
"example": "Held Up by Repeaters", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "One or two sentences about the network.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"links": { | |||
"label": "Links", | |||
"description": "A bulleted list of useful links, one per line, each starting with *.", | |||
"type": "content", | |||
"example": "* [https://meshcore.scotmesh.net meshcore.scotmesh.net]: the network site", | |||
"suggested": true | |||
}, | |||
"guide": { | |||
"label": "Guides page", | |||
"description": "The wiki page the card links to.", | |||
"type": "wiki-page-name", | |||
"example": "MeshCore", | |||
"required": true | |||
}, | |||
"guide_text": { | |||
"label": "Guides link text", | |||
"description": "Text for the link at the bottom of the card.", | |||
"type": "string", | |||
"default": "Open the (name) guides →" | |||
} | |||
}, | |||
"paramOrder": [ "network", "icon", "name", "tagline", "description", "links", "guide", "guide_text" ] | |||
} | |||
</templatedata> | |||
[[Category:ScotMesh templates]] | |||
</noinclude> | |||
Latest revision as of 03:21, 6 November 2026
A card for one network on the Main Page, styled to match scotmesh.net. Put cards inside <div class="sm-grid">...</div> so they sit side by side.
A card for one ScotMesh network: icon, name, tagline, a short description, useful links and a link to its guides.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Network colour | network | Which network's accent colour the card uses.
| String | suggested |
| Icon | icon | The network's icon, an uploaded file name.
| File | required |
| Name | name | The network's name.
| String | required |
| Tagline | tagline | A short line under the name.
| String | suggested |
| Description | description | One or two sentences about the network. | Content | suggested |
| Links | links | A bulleted list of useful links, one per line, each starting with *.
| Content | suggested |
| Guides page | guide | The wiki page the card links to.
| Page name | required |
| Guides link text | guide_text | Text for the link at the bottom of the card.
| String | optional |