Template:Culture card: Difference between revisions

From Wizards and Warlords
Jump to navigation Jump to search
Created page with "<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-body"> <p>{{{summary}}}</p> {{{content|}}} </div> </div>"
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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={{{link|{{{name}}}}}}]]<div class="wizlords-culture-card-title">[[{{{link|{{{name}}}}}}|{{{name}}}]]</div></div>
<div class="wizlords-culture-card-body">
<div class="wizlords-culture-card-body">
Line 5: Line 5:
{{{content|}}}
{{{content|}}}
</div>
</div>
</div>
</div></includeonly><noinclude>
== About this template ==
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 <code>wizlords-culture-grid</code> wrapper. Do not change the generated CSS class names because the site CSS and JavaScript depend on them.
 
== Parameters ==
* <code>name</code> - culture name shown on the card.
* <code>icon</code> - image filename without <code>File:</code>.
* <code>link</code> - optional link destination; defaults to <code>name</code>.
* <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.
 
== Basic example ==
<pre>
{{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]]
}}
</pre>
 
Keep an available-classes list immediately after <code>wizlords-culture-classes</code>. The responsive JavaScript relies on that relationship.
</noinclude>

Latest revision as of 03:34, 16 July 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.
  • 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.