Template:Profile card: Difference between revisions
Jump to navigation
Jump to search
Created page with "<div class="wizlords-collapsible-section wizlords-collapsed-hint-section wizlords-lore-profile mw-collapsible mw-collapsed" id="{{{id}}}"> <div class="wizlords-lore-profile-mobile-icon">[[File:{{{image}}}|88px|link=|alt=]]</div> <div class="wizlords-collapsible-section-title"><span class="wizlords-lore-profile-name">{{{name}}}</span><span class="wizlords-lore-profile-subtitle"><span class="wizlords-lore-profile-dash"> — </span>{{{subtitle}}}</span></div> <div class="wi..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class="wizlords-collapsible-section wizlords-collapsed-hint-section wizlords-lore-profile mw-collapsible mw-collapsed" id="{{{id}}}"> | <includeonly><div class="wizlords-collapsible-section wizlords-collapsed-hint-section wizlords-lore-profile mw-collapsible mw-collapsed" id="{{{id}}}"> | ||
<div class="wizlords-lore-profile-mobile-icon">[[File:{{{image}}}|88px|link=|alt=]]</div> | <div class="wizlords-lore-profile-mobile-icon">[[File:{{{image}}}|88px|link=|alt=]]</div> | ||
<div class="wizlords-collapsible-section-title"><span class="wizlords-lore-profile-name">{{{name}}}</span><span class="wizlords-lore-profile-subtitle"><span class="wizlords-lore-profile-dash"> — </span>{{{subtitle}}}</span></div> | <div class="wizlords-collapsible-section-title"><span class="wizlords-lore-profile-name">{{{name}}}</span><span class="wizlords-lore-profile-subtitle"><span class="wizlords-lore-profile-dash"> — </span>{{{subtitle}}}</span></div> | ||
| Line 12: | Line 12: | ||
<div class="wizlords-spellbook-bottom-toggle wizlords-lore-collapse" role="button" tabindex="0" aria-label="Collapse profile">[<span>Collapse</span>]</div> | <div class="wizlords-spellbook-bottom-toggle wizlords-lore-collapse" role="button" tabindex="0" aria-label="Collapse profile">[<span>Collapse</span>]</div> | ||
</div> | </div> | ||
</div><noinclude> | </div></includeonly><noinclude> | ||
== About this template == | == About this template == | ||
An expandable profile for a house, duchy, organisation, or other group. | An expandable profile for a house, duchy, organisation, or other group. | ||
Latest revision as of 01:52, 6 October 2026
About this template
[edit]An expandable profile for a house, duchy, organisation, or other group.
On desktop, the collapsed card shows its name, subtitle, and motto. Opening it reveals the full profile and a larger captioned image on the right. On mobile, the icon appears beside the name and subtitle. The motto appears only after opening. The icon and title toggle the card; an up arrow at the bottom closes it.
Uses the shared profile-card styles and controls in MediaWiki:Common.css and MediaWiki:Common.js.
Parameters
[edit]id— unique card ID on the page, such ashouse-umbraxix.name— profile name.subtitle— descriptive title beneath the name on mobile.motto— motto or short quotation, without italic markup.image— image filename withoutFile:.image alt— optional description of the expanded image.caption— optional image caption; defaults to the name followed by “emblem.”content— full profile in wikitext.
Example
[edit]{{Profile card
|id=house-umbraxix
|name=House Umbraxix
|subtitle=The Scholars of the Dark Moon
|motto=“From shadow, wisdom. From wisdom, dominion.”
|image=SubIcon_ArcaneFederation.png
|caption=House Umbraxix emblem (placeholder).
|content=
Your profile text goes here.
}}
For a table-of-contents entry or section link, place a wiki heading before the card. Existing pages can keep their wizlords-toc-only-heading wrapper to hide that heading visually.