Template:PlaceCard: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
No edit summary |
m Added category |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<div style="flex: 1 0 200px; max-width: 300px; text-align: center;"> | <div style="flex: 1 0 200px; display:flex; justify-content: flex-start; flex-direction: column; max-width: 300px; text-align: center; border: 1px solid #ccc; padding: 10px;"> | ||
[[ | [[Image:{{{image}}}|center|300px|alt={{{caption}}}|link={{{link}}}]] | ||
<div style="margin-top: auto; width: 100%; align-self: flex-end;">{{{caption}}}</div> | |||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
Line 17: | Line 18: | ||
"type": "string", | "type": "string", | ||
"description": "The caption or placeholder text.", | "description": "The caption or placeholder text.", | ||
"suggested": true | |||
}, | |||
"link": { | |||
"label": "Link", | |||
"type": "string", | |||
"description": "The link for the card.", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 22: | Line 29: | ||
} | } | ||
</templatedata> | </templatedata> | ||
<div style="display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 20px;"> | |||
{{PlaceCard|image=Spooking_Out.png|caption=Placeholder by Developer Name|link=Community:Spooking_Out}} | |||
{{PlaceCard|image=Mikeds_Paint_Ball.png|caption=Placeholder by Developer Name}} | |||
<!-- Add more instances for each game card --> | |||
</div> | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 03:16, 31 December 2023
[[Image:{{{image}}}|center|300px|alt={{{caption}}}|link={{{link}}}]]
{{{caption}}}
Template for displaying place cards, mainly on the Community Hub page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image File | image | The filename of the image for the place. | String | suggested |
Caption | caption | The caption or placeholder text. | String | suggested |
Link | link | The link for the card. | String | suggested |
Placeholder by Developer Name
Placeholder by Developer Name