Charactersheet: Unterschied zwischen den Versionen
Aus Meddlerde
Xeada (Diskussion | Beiträge) (Der Seiteninhalt wurde durch einen anderen Text ersetzt: „<button class="my-button">Click Me!</button>“) Markierung: Ersetzt |
Xeada (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<button | {{Button|label=Click Me!|link=https://example.com}} | ||
<syntaxhighlight lang="wiki"> | |||
<div style="text-align: center;"> | |||
<a href="{{{link}}}" class="button" style="background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px;"> | |||
{{{label}}} | |||
</a> | |||
</div> | |||
</syntaxhighlight> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"label": { | |||
"description": "The text to display on the button", | |||
"example": "Click Me!", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"link": { | |||
"description": "The URL the button should link to", | |||
"example": "https://example.com", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "Generates a clickable button with a link", | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
Version vom 22. Februar 2025, 14:54 Uhr
<div style="text-align: center;">
<a href="{{{link}}}" class="button" style="background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px;">
{{{label}}}
</a>
</div>Generates a clickable button with a link
| Parameter | Beschreibung | Typ | Status | |
|---|---|---|---|---|
| label | label | The text to display on the button
| Zeichenfolge | erforderlich |
| link | link | The URL the button should link to
| Zeichenfolge | erforderlich |
