Template:C: Difference between revisions

From The Reed and Rite
Line 6: Line 6:
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">How to Use</span><br><div style="text-align: left;"><span style="font-weight: normal;">Write <code><nowiki>{{c|X}}</nowiki></code>, replacing <code>"X"</code> with the correct chapter number. Place directly under the relevant chapter heading.<br><br>When used, it is functionally replacing <code><nowiki>{{c|X}}</nowiki></code> with <code><nowiki><span id="Chapter {{{1}}}"></span></nowiki></code>, where <code>{{{1}}}</code> is the number provided in lieu of <code>X</code>.</span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Template Usage</span><br><div style="text-align: left;"><span style="font-weight: normal;">Write <code><nowiki>{{c|X}}</nowiki></code>, replacing <code>"X"</code> with the correct chapter number. Place directly under the relevant chapter heading.<br><br>When used, it is functionally replacing <code><nowiki>{{c|X}}</nowiki></code> with <code><nowiki><span id="Chapter {{{1}}}"></span></nowiki></code>, where <code>{{{1}}}</code> is the number provided in lieu of <code>X</code>.</span></div>
|-
|-
! width=40%|You Type
! width=40%|You Type

Revision as of 21:01, 11 May 2025

Description

This template is used to create a hidden anchor for ease of linking to a specific Section heading on a Summary page without having to write the entire chapter title when chapter titles do not follow the convention of "Chapter 1", "Chapter 2", etc.

Usage

Template Usage
Write {{c|X}}, replacing "X" with the correct chapter number. Place directly under the relevant chapter heading.

When used, it is functionally replacing {{c|X}} with <span id="Chapter {{{1}}}"></span>, where {{{1}}} is the number provided in lieu of X.
You Type You Get
== Chapter One: The First Chapter ==
{{c|1}}
;Characters
{{columns|
* Character 1
* Character 2
* etc.
}}
;Summary
Lorem ipsum dolor sit amet…
Chapter One: The First Chapter

Characters
  • Character 1
  • Character 2
  • Character 3, etc.
Summary

Lorem ipsum dolor sit amet…