Vorlage:Inventory/doc: Unterschied zwischen den Versionen
Aus Meddlerde
Xeada (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<templatedata> { "params": { "itemName1": { "description": "Name of the first item", "example": "Longsword", "type": "string", "required": true }, "quantity1": { "description": "Quantity of the first item", "example": "1", "type": "number", "required": true }, "weight1": { "description": "Weight of the fir…“) |
Xeada (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
{{Documentation subpage}} | |||
== Usage == | |||
Place the following in your page to display the inventory: | |||
<syntaxhighlight lang="wiki"> | |||
{{Inventory | |||
| itemName1 = Longsword | |||
| quantity1 = 1 | |||
| weight1 = 3 lbs | |||
| description1 = A versatile weapon | |||
| category1 = Weapon | |||
| itemName2 = Backpack | |||
| quantity2 = 1 | |||
| weight2 = 5 lbs | |||
| description2 = A sturdy backpack | |||
| category2 = Gear | |||
}} | |||
</syntaxhighlight> | |||
Item names will automatically link to their dnd5e.wikidot.com page via the {{Item}} template. | |||
== Example == | |||
{{Inventory | |||
| itemName1 = Longsword | |||
| quantity1 = 1 | |||
| weight1 = 3 lbs | |||
| description1 = A versatile weapon | |||
| category1 = Weapon | |||
| itemName2 = Backpack | |||
| quantity2 = 1 | |||
| weight2 = 5 lbs | |||
| description2 = A sturdy backpack | |||
| category2 = Gear | |||
}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"itemName1": { | "itemName1": { | ||
"description": "Name of the first item", | "description": "Name of the first item (links to Wikidot)", | ||
"example": "Longsword", | "example": "Longsword", | ||
"type": "string", | "type": "string", | ||
| Zeile 33: | Zeile 69: | ||
}, | }, | ||
"itemName2": { | "itemName2": { | ||
"description": "Name of the second item", | "description": "Name of the second item (links to Wikidot)", | ||
"example": "Backpack", | "example": "Backpack", | ||
"type": "string", | "type": "string", | ||
| Zeile 63: | Zeile 99: | ||
} | } | ||
}, | }, | ||
"description": " | "description": "Displays a D&D 5e style fantasy inventory box with item links to Wikidot." | ||
} | } | ||
</templatedata> | </templatedata> | ||
Aktuelle Version vom 23. August 2025, 15:14 Uhr
| This is a documentation subpage for Vorlage:Inventory. It may contain usage information, categories and other content that is not part of the original vorlage page. |
Usage
Place the following in your page to display the inventory:
{{Inventory
| itemName1 = Longsword
| quantity1 = 1
| weight1 = 3 lbs
| description1 = A versatile weapon
| category1 = Weapon
| itemName2 = Backpack
| quantity2 = 1
| weight2 = 5 lbs
| description2 = A sturdy backpack
| category2 = Gear
}}Item names will automatically link to their dnd5e.wikidot.com page via the Vorlage:Item template.
Example
🪙 Inventory
<thead> </thead> <tbody> </tbody>| Item | Qty | Weight | Description | Category |
|---|---|---|---|---|
| Vorlage:Item | 1 | 3 lbs | A versatile weapon | Weapon |
| Vorlage:Item | 1 | 5 lbs | A sturdy backpack | Gear |
Displays a D&D 5e style fantasy inventory box with item links to Wikidot.
| Parameter | Beschreibung | Typ | Status | |
|---|---|---|---|---|
| itemName1 | itemName1 | Name of the first item (links to Wikidot)
| Zeichenfolge | erforderlich |
| quantity1 | quantity1 | Quantity of the first item
| Nummer | erforderlich |
| weight1 | weight1 | Weight of the first item
| Zeichenfolge | erforderlich |
| description1 | description1 | Description of the first item
| Zeichenfolge | erforderlich |
| category1 | category1 | Category of the first item
| Zeichenfolge | erforderlich |
| itemName2 | itemName2 | Name of the second item (links to Wikidot)
| Zeichenfolge | erforderlich |
| quantity2 | quantity2 | Quantity of the second item
| Nummer | erforderlich |
| weight2 | weight2 | Weight of the second item
| Zeichenfolge | erforderlich |
| description2 | description2 | Description of the second item
| Zeichenfolge | erforderlich |
| category2 | category2 | Category of the second item
| Zeichenfolge | erforderlich |
