Template:Card: Difference between revisions
From Paw Borough Wiki
(Format adustments) |
(Adjustments to force consistency.) |
||
| Line 1: | Line 1: | ||
<includeonly><div style="display:grid;grid-template-rows:1fr 1fr;grid-template-rows:1fr 1fr;box-sizing:border-box; border:1px solid #514033; border-radius:4px; height:185px; width:95px; background:#FFF; overflow:hidden | <includeonly><div style="display:grid; grid-template-rows:1fr 1fr; grid-template-rows:1fr 1fr; box-sizing:border-box; border:1px solid #514033; border-radius:4px; height:185px; width:95px; background:#FFF; overflow:hidden;"> | ||
<div style="display:flex; align-items:center; justify-content:center; padding-top:10px; padding-bottom:3px;">[[File:{{{1|}}}.png| | <div style="display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; object-fit:contain; padding-top:10px; padding-bottom:3px;">[[File:{{{1|}}}.png|75x75px]]</div> | ||
<div style="display:flex; align- | <div style="display:flex; align-self:flex-start; justify-content:center; color:#302218; background:RGBA(179, 150, 127, 0.5); padding:3px; height:100%; font-size:.85rem; font-weight:bold;">[[{{{1|}}}]]</div></div></includeonly><noinclude> | ||
[[{{{1|}}}]] | |||
</div> | |||
</div></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</div></noinclude> | </div></noinclude> | ||
Revision as of 14:13, 24 August 2026
| Template documentation follows |
|---|
| Visit Template:Card/doc to edit this documentation. (How does this work?) |
| Editors can experiment in this template's sandbox and test case pages. |
Usage
Creates a small flex card of the item, similar in design to the storage cards. This template should be nested within a flex container to format properly.
Syntax
{{Card|}}
{{Card||acc=|thumb=}}
Examples
{{Card|Northern Lunasagi}}
<div style="display:flex; gap: 5px;">
{{Card|Guard's Back Greaves|acc=y}}{{Card|Guard's Chestplate|acc=y}}{{Card|Guard's Front Greaves|acc=y}}{{Card|Guard's Helm|acc=y}}{{Card|Guard's Pants|acc=y}}{{Card|Guard's Sword|acc=y}}
</div>
<div style="display:flex; gap: 5px;">
{{Card|Abyssal Outskirts|thumb=y}}{{Card|Cogwheel Outskirts|thumb=y}}{{Card|Harvest Outskirts|thumb=y}}{{Card|Luna Outskirts|thumb=y}}{{Card|Metropolis Outskirts|thumb=y}}{{Card|Sol Outskirts|thumb=y}}{{Card|Zenith Outskirts|thumb=y}}
</div>
Associated Templates
Template Data
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Name of the item, should be in proper case. | Unknown | required |
| acc | acc | If populated it'll add "White" to the beginning of the file title. Should be used for accessory items.
| Unknown | optional |
| thumb | thumb | If populated it'll add "Thumbnail" to the end of the file title. Intended to be used primarily for decor and backdrop items whose primary images have awkward dimensions.
| Unknown | optional |
