Predloga:Material-kartica/en/doc: Razlika med redakcijama
Videz
Brez povzetka urejanja |
Brez povzetka urejanja |
||
| Vrstica 111: | Vrstica 111: | ||
|image-y=-20 | |image-y=-20 | ||
</pre> | </pre> | ||
</div> | </div> | ||
</div> | </div> | ||
<hr> | <hr> | ||
<div style=" | <div style=" | ||
padding:10px; | padding:10px; | ||
| Vrstica 125: | Vrstica 121: | ||
font-size:12px; | font-size:12px; | ||
"> | "> | ||
<div style=" | <div style=" | ||
font-size:12px; | font-size:12px; | ||
| Vrstica 131: | Vrstica 126: | ||
color:#2c3e50; | color:#2c3e50; | ||
margin-bottom:8px; | margin-bottom:8px; | ||
"> | ">Template hierarchy</div> | ||
Template | Material Library – [[Knjižnica_materialov/en]] | ||
<br>└─ uses template [[Template:Grid3]] to display material cards in a grid layout | |||
<br> └─ uses [[Template:Material-kartica/en]] to display information about an individual material | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<hr> | <hr> | ||
<div style=" | <div style=" | ||
margin-top:12px; | margin-top:12px; | ||
| Vrstica 151: | Vrstica 142: | ||
font-size:12px; | font-size:12px; | ||
"> | "> | ||
<div style=" | <div style=" | ||
font-size:12px; | font-size:12px; | ||
| Vrstica 157: | Vrstica 147: | ||
color:#2c3e50; | color:#2c3e50; | ||
margin-bottom:8px; | margin-bottom:8px; | ||
"> | ">Visual Editor</div> | ||
Visual Editor | |||
</div> | |||
This template includes TemplateData and supports insertion through the Visual Editor. | This template includes TemplateData and supports insertion through the Visual Editor. | ||
</div> | </div> | ||
Trenutna redakcija s časom 10:37, 26. avgust 2026
Material-kartica • Back to templates
Material card for displaying materials in the materials library.
Usage example (EN)
{{Material-kartica/en
|title1=Material page name
|display1=Material display name
|image1=File_name.jpg
|image-y=0
|kategorija1=CATEGORY
|lokacija1=LAB
|inv1=INV-001
|info1=
Short material description.
}}
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| title1 | Name of the page linked from the card. | Content | Yes |
| display1 | Text shown in the card title. If left empty, the page title is used. | Unbalanced wikitext | Suggested |
| image-y | Moves the image up or down in pixels. Use a negative value to move it upward. | Number | No |
| image1 | Image file name without the File: prefix. | File | Yes |
| kategorija1 | Category of the material or object. | Content | Yes |
| lokacija1 | Location of the material or object. | Content | Yes |
| inv1 | Inventory or reference number of the material or object. | Content | Yes |
| info1 | Short description, technical specifications, or additional information. | Content | Suggested |
Notes
- This template creates a material card for display in the materials library.
- It is most commonly used together with the
Grid3template. - The card layout is used on the Knjižnica_materialov/en page.
- The
image-yparameter allows vertical image positioning. - Negative values move the image upward.
- Positive values move the image downward.
- The image must be uploaded to the wiki before use.
|image-y=-20
Template hierarchy
Material Library – Knjižnica_materialov/en
└─ uses template Template:Grid3 to display material cards in a grid layout
└─ uses Template:Material-kartica/en to display information about an individual material
Visual Editor
This template includes TemplateData and supports insertion through the Visual Editor.