Template:Culture card: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
{{{content|}}} | {{{content|}}} | ||
</div> | </div> | ||
</div></includeonly> | </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 withoutFile:.link- optional link destination; defaults toname.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.