Template:Multiparameter

From Kingdom Come: Deliverance Wiki
Jump to navigation Jump to search


Description

This template is used in the item infobox template on saddle and skill book pages to avoid flooding the template with parameters.

Syntax

Type {{Multiparameter|<type>|<1>|<2>|<3>|<4>|<5(saddle only)>}} in an item infobox row.
"type" is either "book" (for skill books) or "saddle" (for saddles), anything else will show an error.

Sample
{{Item infobox
|title         = Agile as a Weasel
|image         = Agile as a Weasel.jpg
|type          = [[Books - Skill|Skill book]]
|length        = {{Multiparameter|type = book|40|60|80|100}}
|weight        = 1
|price         = {{Multiparameter|type = book|{{Groschen|50}}|{{Groschen|150}}|{{Groschen|450}}|1350}}
|skill         = [[Agility]]
|image3        = Agile as a Weasel.png
|code          = {{Multiparameter|type = book|e69bf96e-47ff-4eb2-a9b3-06dc896d43b8|8c23bd24-ea62-43b3-ac49-357ff34d3ed2|d9f62ac5-7e3b-4d2b-93d9-2effa81a8610|b95f10cb-5225-4308-ada7-8405a8238b29}}
}}

Results in:

Multiparameter
Agile as a Weasel.jpg
Item information
Length
Book I
40
Book II
60
Book III
80
Book IV
100
Weight
1
Price
Book I
50 Prague Groschen
Book II
150 Prague Groschen
Book III
450 Prague Groschen
Book IV
1350
Skill
Technical information
Code
Book I
e69bf96e-47ff-4eb2-a9b3-06dc896d43b8
Book II
8c23bd24-ea62-43b3-ac49-357ff34d3ed2
Book III
d9f62ac5-7e3b-4d2b-93d9-2effa81a8610
Book IV
b95f10cb-5225-4308-ada7-8405a8238b29