Charactersheet: Unterschied zwischen den Versionen

Aus Meddlerde
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{{Button|label=Click Me!|link=https://example.com}}
<syntaxhighlight lang="wiki">
<syntaxhighlight lang="wiki">
<div style="text-align: center;">
<div style="border: 1px solid #ccc; padding: 10px; width: 300px;">
     <a href="{{{link}}}" class="button" style="background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px;">
     <h2>{{{name}}}</h2>
        {{{label}}}
    <p><strong>Class:</strong> {{{class}}}</p>
     </a>
    <p><strong>Level:</strong> {{{level}}}</p>
    <p><strong>Race:</strong> {{{race}}}</p>
    <p><strong>Background:</strong> {{{background}}}</p>
    <p><strong>Strength:</strong> {{{strength}}}</p>
    <p><strong>Dexterity:</strong> {{{dexterity}}}</p>
    <p><strong>Constitution:</strong> {{{constitution}}}</p>
    <p><strong>Intelligence:</strong> {{{intelligence}}}</p>
    <p><strong>Wisdom:</strong> {{{wisdom}}}</p>
     <p><strong>Charisma:</strong> {{{charisma}}}</p>
</div>
</div>
</syntaxhighlight>
</syntaxhighlight>
Zeile 12: Zeile 18:
{
{
     "params": {
     "params": {
         "label": {
         "name": {
             "description": "The text to display on the button",
             "description": "Character's name",
             "example": "Click Me!",
             "example": "Kinski",
            "type": "string",
            "required": true
        },
        "class": {
            "description": "Character's class",
            "example": "Sorcerer",
             "type": "string",
             "type": "string",
             "required": true
             "required": true
         },
         },
         "link": {
         "level": {
             "description": "The URL the button should link to",
             "description": "Character's level",
             "example": "https://example.com",
             "example": "5",
            "type": "number",
            "required": true
        },
        "race": {
            "description": "Character's race",
            "example": "Elf",
             "type": "string",
             "type": "string",
            "required": true
        },
        "background": {
            "description": "Character's background",
            "example": "Noble",
            "type": "string",
            "required": true
        },
        "strength": {
            "description": "Strength score",
            "example": "15",
            "type": "number",
            "required": true
        },
        "dexterity": {
            "description": "Dexterity score",
            "example": "14",
            "type": "number",
            "required": true
        },
        "constitution": {
            "description": "Constitution score",
            "example": "13",
            "type": "number",
            "required": true
        },
        "intelligence": {
            "description": "Intelligence score",
            "example": "12",
            "type": "number",
            "required": true
        },
        "wisdom": {
            "description": "Wisdom score",
            "example": "10",
            "type": "number",
            "required": true
        },
        "charisma": {
            "description": "Charisma score",
            "example": "16",
            "type": "number",
             "required": true
             "required": true
         }
         }
     },
     },
     "description": "Generates a clickable button with a link",
     "description": "Generates a D&D character sheet",
     "format": "inline"
     "format": "inline"
}
}
</templatedata>
</templatedata>
{{CharacterSheet
|name=Kinski
|class=Sorcerer
|level=5
|race=Elf
|background=Noble
|strength=15
|dexterity=14
|constitution=13
|intelligence=12
|wisdom=10
|charisma=16
}}

Version vom 22. Februar 2025, 14:55 Uhr

<div style="border: 1px solid #ccc; padding: 10px; width: 300px;">
    <h2>{{{name}}}</h2>
    <p><strong>Class:</strong> {{{class}}}</p>
    <p><strong>Level:</strong> {{{level}}}</p>
    <p><strong>Race:</strong> {{{race}}}</p>
    <p><strong>Background:</strong> {{{background}}}</p>
    <p><strong>Strength:</strong> {{{strength}}}</p>
    <p><strong>Dexterity:</strong> {{{dexterity}}}</p>
    <p><strong>Constitution:</strong> {{{constitution}}}</p>
    <p><strong>Intelligence:</strong> {{{intelligence}}}</p>
    <p><strong>Wisdom:</strong> {{{wisdom}}}</p>
    <p><strong>Charisma:</strong> {{{charisma}}}</p>
</div>

Generates a D&D character sheet

Vorlagenparameter

Diese Vorlage bevorzugt Inline-Formatierung von Parametern.

ParameterBeschreibungTypStatus
namename

Character's name

Beispiel
Kinski
Zeichenfolgeerforderlich
classclass

Character's class

Beispiel
Sorcerer
Zeichenfolgeerforderlich
levellevel

Character's level

Beispiel
5
Nummererforderlich
racerace

Character's race

Beispiel
Elf
Zeichenfolgeerforderlich
backgroundbackground

Character's background

Beispiel
Noble
Zeichenfolgeerforderlich
strengthstrength

Strength score

Beispiel
15
Nummererforderlich
dexteritydexterity

Dexterity score

Beispiel
14
Nummererforderlich
constitutionconstitution

Constitution score

Beispiel
13
Nummererforderlich
intelligenceintelligence

Intelligence score

Beispiel
12
Nummererforderlich
wisdomwisdom

Wisdom score

Beispiel
10
Nummererforderlich
charismacharisma

Charisma score

Beispiel
16
Nummererforderlich

Vorlage:CharacterSheet