Template:BentoItem: Difference between revisions
From The Seven Sages of Rome
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="bento-item {{#if:{{{type|}}}| bento-item-{{{type}}}}}"> | ||
<div class="bento-item {{#if:{{{type|}}}| bento-item-{{{type}}}}}"> | |||
<!-- Title with link (or plain text if no link) --> | <!-- Title with link (or plain text if no link) --> | ||
<h3 class="font-weight-bold mb-2"> | <h3 class="font-weight-bold mb-2"> | ||
{{{title}}} | <span class="nopopups">{{{title}}}</span> | ||
</h3> | </h3> | ||
<!-- Count display with label --> | <!-- Count display with label --> | ||
<p class="text-muted small mb-3"> | <p class="text-muted small mb-3"> | ||
| Line 14: | Line 12: | ||
{{{countlabel}}} in the database. | {{{countlabel}}} in the database. | ||
</p> | </p> | ||
<!-- Optional content (e.g., maps, images, etc.) --> | <!-- Optional content (e.g., maps, images, etc.) --> | ||
{{#if:{{{content|}}}|<div class=" | {{#if:{{{content|}}}|<div class="content-container">{{{content}}}</div>}} | ||
</div></includeonly> | </div></includeonly> | ||
<noinclude> | <noinclude> | ||
Latest revision as of 12:23, 24 March 2025
Usage
{{BentoItem
|type=wide
|title=[[Locations|Locations]]
|count={{#ask:[[Category:Location]]|format=count}}
|countlabel=locations
|content={{#ask:
[[Has Coordinates::+]]
|?Has Coordinates
|markercluster=on
|limit=500
|format=maps
}}
}}