User:TheRoman/Sandbox: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 4: Line 4:
<span style="display: block; font-size: 1.5em; font-family: Georgia; font-weight: normal; margin-top: 0.7em; border-bottom: 1px solid #a2a9b1;">Chapter One: The Q</span>
<span style="display: block; font-size: 1.5em; font-family: Georgia; font-weight: normal; margin-top: 0.7em; border-bottom: 1px solid #a2a9b1;">Chapter One: The Q</span>
Testing out using a standardized Chapter heading for the {{t|Book ref}} template, so no exception has to be made for odd chapter formats. Follow suggestion from [https://chatgpt.com/c/681efbe0-1d98-8006-a2a2-b18f68cde2a4 ChatGPT]
Testing out using a standardized Chapter heading for the {{t|Book ref}} template, so no exception has to be made for odd chapter formats. Follow suggestion from [https://chatgpt.com/c/681efbe0-1d98-8006-a2a2-b18f68cde2a4 ChatGPT]
Using:
<pre>
<span id="Chapter 1"></span>
<h2>Chapter One: The First Time</h2>
</pre>


If you want the <code><nowiki><span></nowiki></code> not to appear (e.g., no line break or spacing), add CSS:
If you want the <code><nowiki><span></nowiki></code> not to appear (e.g., no line break or spacing), add CSS:

Revision as of 17:11, 10 May 2025

This text will not be displayed.

Chapter One: The First Time

Chapter One: The Q Testing out using a standardized Chapter heading for the {{Book ref}} template, so no exception has to be made for odd chapter formats. Follow suggestion from ChatGPT

Using:

<span id="Chapter 1"></span>
<h2>Chapter One: The First Time</h2>

If you want the <span> not to appear (e.g., no line break or spacing), add CSS:

In MediaWiki:Common.css:

.anchor-hidden {
  display: inline-block;
  height: 0;
  overflow: hidden;
}

Then write:

<span id="Chapter 1" class="anchor-hidden"></span>
<h2>Chapter One: The First Time</h2>

Chapter One: The First Time
























Chapter Two: The Second Time

























Chapter Three: The Third Time

























Chapter Four: The Fourth Time