Pojdi na vsebino

Predloga:Material-kartica-vertikal/en: Razlika med redakcijama

Iz Center Rog
Brez povzetka urejanja
Brez povzetka urejanja
Vrstica 87: Vrstica 87:
----
----
'''Dokumentacija:''' [[Predloga:Material-kartica-vertikal/en/dok|View template documentation]]
'''Dokumentacija:''' [[Predloga:Material-kartica-vertikal/en/dok|View template documentation]]
<templatedata>
{
"params": {
"inv1": {
"label": "Inventory number",
"description": "Inventory or reference number of the material or object.",
"type": "content",
"required": true
},
"image-x": {
"label": "Horizontal image offset",
"description": "Moves the image left or right in pixels. A negative value moves the image to the left.",
"type": "number",
"default": "0"
},
"image-y": {
"label": "Vertical image offset",
"description": "Moves the image up or down in pixels. A negative value moves the image upward.",
"type": "number",
"default": "0"
},
"image1": {
"label": "Image",
"description": "Image file name without the File: prefix.",
"type": "wiki-file-name",
"required": true
},
"kategorija1": {
"label": "Category",
"description": "Category of the material or object.",
"type": "content",
"required": true
},
"lokacija1": {
"label": "Location",
"description": "Location of the material or object.",
"type": "content",
"required": true
}
},
"description": "Card displaying a material image, inventory number, category, and location for use on material pages.",
"format": "block"
}
</templatedata>
</noinclude>
</noinclude>
</noinclude>

Redakcija: 11:01, 26. avgust 2026

Category
Category
Location
Location

Dokumentacija: View template documentation

Card displaying a material image, inventory number, category, and location for use on material pages.

Parametri predloge[Urejanje podatkov predloge]

Za to predlogo je priporočljiva postavitev parametrov v bloku.

ParameterOpisVrstaStanje
Inventory numberinv1

Inventory or reference number of the material or object.

Vsebinazahtevano
Horizontal image offsetimage-x

Moves the image left or right in pixels. A negative value moves the image to the left.

Privzeto
0
Številkaneobvezno
Vertical image offsetimage-y

Moves the image up or down in pixels. A negative value moves the image upward.

Privzeto
0
Številkaneobvezno
Imageimage1

Image file name without the File: prefix.

Datotekazahtevano
Categorykategorija1

Category of the material or object.

Vsebinazahtevano
Locationlokacija1

Location of the material or object.

Vsebinazahtevano