Template:Category iconbox: Difference between revisions

Template page
Content added Content deleted
(Created page with "<onlyinclude><p class="cardbox-image" style="margin:0;">[[File:{{{title|}}}_fp.png|300px|link={{{title|}}}]]</p><h2 class="cardbox-title plainlinks" style="text-align:right; border-radius: 0 0 10px 10px; margin:0;">[[{{{title|}}}]]</h2>}} </div></onlyinclude> <noinclude> Category:Templates </noinclude>")
 
mNo edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude><p class="cardbox-image" style="margin:0;">[[File:{{{title|}}}_fp.png|300px|link={{{title|}}}]]</p><h2 class="cardbox-title plainlinks" style="text-align:right; border-radius: 0 0 10px 10px; margin:0;">[[{{{title|}}}]]</h2>}}
<diV class="iconbox">
</div></onlyinclude>
<p class="cardbox-image" style="margin:0; display:flex; justify-content:center">[[File:Veloren_{{{imagename|}}}_Category_Icon.png|{{#ifexpr: {{{width|}}}|{{{width|}}}x{{{height|}}}px|50x50px}}|link={{{pagelink|}}}]]</p>
<div>
<p class="iconbox-title" style="text-align:center; border-radius: 0 0 10px 10px; margin-top:0; margin-bottom:0;">[[{{{pagelink|}}}|{{{pagetext|}}}]]</p>
</div></div></onlyinclude>


<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
<templatedata>
</noinclude>
{
"params": {
"pagelink": {
"label": "Link to the page in title case",
"type": "wiki-page-name",
"suggested": true
},
"pagetext": {
"label": "The text you want to display",
"suggested": true
},
"imagename": {
"label": "Name of the Category or Section in title case for the image",
"description": "It will generate a image link : Veloren_CATEGORY_Category_Icon.png",
"example": "Head => Veloren_Head_Category_Icon.png",
"type": "wiki-page-name",
"suggested": true
},
"width": {
"label": "Width of the image",
"type": "number",
"autovalue": "50"
},
"height": {
"label": "Height of the image",
"type": "number",
"autovalue": "50"
}
},
"description": "Used for creating small category icon.(50px) It support larger image. 1) put this CSS at the top of page <templatestyles src=\"https://wiki.veloren.net/wiki/User:Ajima/MyStyle.css\" /> 2) Use <div class=\"flex-container\"> to wrap all icons",
"paramOrder": [
"imagename",
"width",
"height",
"pagelink",
"pagetext"
]
}
</templatedata></noinclude>

Latest revision as of 15:59, 1 August 2023

Used for creating small category icon.(50px) It support larger image. 1) put this CSS at the top of page <templatestyles src="https://wiki.veloren.net/wiki/User:Ajima/MyStyle.css" /> 2) Use <div class="flex-container"> to wrap all icons

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Name of the Category or Section in title case for the imageimagename

It will generate a image link : Veloren_CATEGORY_Category_Icon.png

Example
Head => Veloren_Head_Category_Icon.png
Page namesuggested
Width of the imagewidth

no description

Auto value
50
Numberoptional
Height of the imageheight

no description

Auto value
50
Numberoptional
Link to the page in title casepagelink

no description

Page namesuggested
The text you want to displaypagetext

no description

Unknownsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.