Jump to content

CrucibleCodexStyles

From Crucible Codex
Revision as of 11:55, 23 April 2026 by WikiSysop (talk | contribs)

Crucible Codex Markup Pattern

This page defines the standard wrapper pattern for all Crucible Codex subsites.

The canonical structure is now consistent across subsites:

{{SubsiteHeader}}
<div class="codex-page codex-page--subsite">

Page content here.

<div class="codex-navbox codex-navbox--subsite">
'''Subsite Codex'''
[[Subsite:Home|Home]] • [[Subsite:Other Page|Other Page]]
</div>

</div>

Canonical Subsite Wrappers

Subsite Page Wrapper Navigation Wrapper Legacy Alias Still Supported
Nightcats <div class="codex-page codex-page--nightcats"> <div class="codex-navbox codex-navbox--nightcats"> None needed
Five Fists / Burning Temple <div class="codex-page codex-page--ffbt"> <div class="codex-navbox codex-navbox--ffbt"> None needed
Sigil Lands <div class="codex-page codex-page--sigil"> <div class="codex-navbox codex-navbox--sigil"> None needed
Stormbringer <div class="codex-page codex-page--stormbringer"> <div class="codex-navbox codex-navbox--stormbringer"> codex-nav--stormbringer, stormbringer-nav
Hawkmoon <div class="codex-page codex-page--hawkmoon"> <div class="codex-navbox codex-navbox--hawkmoon"> hawkmoon-theme, hawkmoon-navbox
Apes <div class="codex-page codex-page--apes"> <div class="codex-navbox codex-navbox--apes"> None needed

Standard Rule

All subsites should use:

  • a shared Codex page wrapper based on codex-page
  • a subsite modifier in the form codex-page--NAME
  • a shared navigation wrapper based on codex-navbox
  • a subsite modifier in the form codex-navbox--NAME

This keeps page markup predictable and makes future CSS maintenance much easier.

Stormbringer Example

{{StormbringerHeader}}
<div class="codex-page codex-page--stormbringer">

= Character Creation =

Page text here.

<div class="codex-navbox codex-navbox--stormbringer">
<span class="storm-nav-title">Stormbringer Codex</span>
[[Stormbringer:Home|Home]] • [[Stormbringer:Character Creation|Character Creation]]
</div>

</div>

Hawkmoon Example

{{HawkmoonHeader}}
<div class="codex-page codex-page--hawkmoon">

= Granbretan =

Page text here.

<div class="codex-navbox codex-navbox--hawkmoon">
'''Hawkmoon Codex'''
[[Hawkmoon:Home|Home]] • [[Hawkmoon:Granbretan|Granbretan]]
</div>

</div>

Migration Note

Older markup should continue to render, because legacy Hawkmoon and Stormbringer selectors are still supported in CSS. New pages should use the canonical wrappers shown here.