Template:Feature: Difference between revisions
Template page
More actions
Create Template:Feature -- a generic name/description card for grids of parallel items |
m Replace reader-visible prose double hyphens with a proper em dash entity |
||
| Line 4: | Line 4: | ||
<pre>{{Feature|name=Endermites|text=An abundance of Endermites spawn periodically}}</pre> | <pre>{{Feature|name=Endermites|text=An abundance of Endermites spawn periodically}}</pre> | ||
Renders as one card | Renders as one card — a bold name, plus an optional description. <code>name</code> can also be the first unnamed parameter; leaving <code>text</code> out renders a name-only card. Lay several cards out in a responsive grid with a plain wrapper div: | ||
<pre><nowiki><div class="loka-feature-grid"></nowiki> | <pre><nowiki><div class="loka-feature-grid"></nowiki> | ||
Latest revision as of 14:19, 23 August 2026
Usage
{{Feature|name=Endermites|text=An abundance of Endermites spawn periodically}}
Renders as one card — a bold name, plus an optional description. name can also be the first unnamed parameter; leaving text out renders a name-only card. Lay several cards out in a responsive grid with a plain wrapper div:
<div class="loka-feature-grid">
{{Feature|...}}
{{Feature|...}}
</div>
Add loka-feature-grid--compact alongside loka-feature-grid for narrower columns, better suited to name-only cards than the wider default.