Charactersheet: Unterschied zwischen den Versionen

Aus Meddlerde
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „<button class="my-button">Click Me!</button>“)
Markierung: Ersetzt
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<button class="my-button">Click Me!</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

Vorlage:Button

<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

Vorlagenparameter

Diese Vorlage bevorzugt Inline-Formatierung von Parametern.

ParameterBeschreibungTypStatus
labellabel

The text to display on the button

Beispiel
Click Me!
Zeichenfolgeerforderlich
linklink

The URL the button should link to

Beispiel
https://example.com
Zeichenfolgeerforderlich