Template:BentoItem: Difference between revisions

From The Seven Sages of Rome
Created page with "<includeonly> <div class="bento-item{{#if:{{{type|}}}| bento-item-{{{type}}}}}"> <!-- Title with link (or plain text if no link) --> <h3 class="font-weight-bold mb-2"> {{{title}}} </h3> <!-- Count display with label --> <p class="text-muted small mb-3"> There are <span class="font-weight-bold"> {{{count}}} </span> {{{countlabel}}} in the database. </p> <!-- Optional content (e.g., maps, images, etc.) --> {{#if:{{{content|}..."
 
No edit summary
Line 25: Line 25:
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
== Usage ==
<pre>
{{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
}}
}}
</pre>
</noinclude>

Revision as of 12:42, 12 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
}}
}}