Template:Culture card: Difference between revisions

From Wizards and Warlords
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly><div class="wizlords-culture-card">
<includeonly><div class="wizlords-culture-card">
<div class="wizlords-culture-card-header">[[File:{{{icon}}}|250x250px|link={{{link|{{{name}}}}}}]]<div class="wizlords-culture-card-title">[[{{{link|{{{name}}}}}}|{{{name}}}]]</div></div>
<div class="wizlords-culture-card-header">[[File:{{{icon}}}|250x250px|link={{#if:{{{nolink|}}}||{{{link|{{{name}}}}}}}}]]<div class="wizlords-culture-card-title">{{#if:{{{nolink|}}}|{{{name}}}|[[{{{link|{{{name}}}}}}|{{{name}}}]]}}</div></div>
<div class="wizlords-culture-card-body">
<div class="wizlords-culture-card-body">
<p>{{{summary}}}</p>
<p>{{{summary}}}</p>
Line 15: Line 15:
* <code>icon</code> - image filename without <code>File:</code>.
* <code>icon</code> - image filename without <code>File:</code>.
* <code>link</code> - optional link destination; defaults to <code>name</code>.
* <code>link</code> - optional link destination; defaults to <code>name</code>.
* <code>nolink</code> - set to <code>yes</code> to disable title and image links while retaining the title styling. Omit when lore links are ready.
* <code>summary</code> - short description shown when the Citizen card is collapsed.
* <code>summary</code> - short description shown when the Citizen card is collapsed.
* <code>content</code> - optional additional wikitext, such as available classes, notes, or another paragraph.
* <code>content</code> - optional additional wikitext, such as available classes, notes, or another paragraph.

Latest revision as of 00:27, 6 October 2026

About this template

[edit]

Creates one culture card for a race page. The card keeps the existing desktop layout and becomes expandable in Citizen on phone and tablet.

Use this template inside the existing wizlords-culture-grid wrapper. Do not change the generated CSS class names because the site CSS and JavaScript depend on them.

Parameters

[edit]
  • name - culture name shown on the card.
  • icon - image filename without File:.
  • link - optional link destination; defaults to name.
  • nolink - set to yes to disable title and image links while retaining the title styling. Omit when lore links are ready.
  • summary - short description shown when the Citizen card is collapsed.
  • content - optional additional wikitext, such as available classes, notes, or another paragraph.

Basic example

[edit]
{{Culture card
|name=Example Culture
|icon=ExampleCulture.png
|summary=A short description of the culture.
|content=
<div class="wizlords-culture-separator"></div>
<div class="wizlords-culture-classes">Available Classes:</div>
* [[Classes#Fighter|Fighter]]
* [[Classes#Ranger|Ranger]]
}}

Keep an available-classes list immediately after wizlords-culture-classes. The responsive JavaScript relies on that relationship.