Pojdi na vsebino

Predloga:DIY-kartica/en: Razlika med redakcijama

Iz Center Rog
Brez povzetka urejanja
Brez povzetka urejanja
 
(5 vmesnih redakcij istega uporabnika ni prikazanih)
Vrstica 23: Vrstica 23:
<!-- IMAGE -->
<!-- IMAGE -->
<div style="height:180px;overflow:hidden;background:#fafafa;">
<div style="height:180px;overflow:hidden;background:#fafafa;">
<div style="position:relative;left:{{{image-x|0}}}px;top:{{{image-y|0}}}px;text-align:center;">
<div style="position:relative;left:{{{image-x|0}}}px;top:{{{image-y|0}}}px;text-align:center;">
[[File:{{{image1|Example.jpg}}}|320px|center|link={{{title1|Example}}}]]
[[File:{{{image1|Example.jpg}}}|320px|center|link={{{title1|Example}}}]]
</div>
</div>
</div>
</div>


Vrstica 35: Vrstica 31:
</div>
</div>
<noinclude>
<noinclude>
----
----
'''Documentation:''' [[Predloga:DIY-kartica/en/dok|View template documentation]]
'''Documentation:''' [[Template:DIY-kartica/en/doc|View template documentation]]
</noinclude>
 
<templatedata>
{
"params": {
"title1": {
"label": "Project page",
"description": "Name of the wiki project page the card links to.",
"type": "wiki-page-name",
"required": true
},
"display1": {
"label": "Display title",
"description": "Title displayed on the card. If not provided, the project page name is used.",
"type": "string",
"suggested": true
},
"tag1": {
"label": "Tag 1",
"description": "First project tag.",
"type": "string",
"required": true
},
"tag2": {
"label": "Tag 2",
"description": "Second project tag.",
"type": "string",
"required": true
},
"tag3": {
"label": "Tag 3",
"description": "Third project tag.",
"type": "string",
"required": true
},
"image-x": {
"label": "Image offset X",
"description": "Horizontal image offset in pixels.",
"type": "number",
"default": "0"
},
"image-y": {
"label": "Image offset Y",
"description": "Vertical image offset in pixels.",
"type": "number",
"default": "0"
},
"image1": {
"label": "Image",
"description": "Project image file.",
"type": "wiki-file-name",
"required": true
}
},
"description": "Displays a project card for use in project galleries and overview lists.",
"format": "block"
}
</templatedata></noinclude>

Trenutna redakcija s časom 10:14, 31. avgust 2026

tag 1 tag 2 tag 3



Documentation: View template documentation

Displays a project card for use in project galleries and overview lists.

Parametri predloge[Urejanje podatkov predloge]

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

ParameterOpisVrstaStanje
Project pagetitle1

Name of the wiki project page the card links to.

Ime stranizahtevano
Display titledisplay1

Title displayed on the card. If not provided, the project page name is used.

Nizpredlagano
Tag 1tag1

First project tag.

Nizzahtevano
Tag 2tag2

Second project tag.

Nizzahtevano
Tag 3tag3

Third project tag.

Nizzahtevano
Image offset Ximage-x

Horizontal image offset in pixels.

Privzeto
0
Številkaneobvezno
Image offset Yimage-y

Vertical image offset in pixels.

Privzeto
0
Številkaneobvezno
Imageimage1

Project image file.

Datotekazahtevano