User:TheRoman/Sandbox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 2: | Line 2: | ||
<span id="Chapter 1"></span> | <span id="Chapter 1"></span> | ||
<h2>Chapter One: The First Time</h2> | <h2>Chapter One: The First Time</h2> | ||
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] | ||
| Line 27: | Line 26: | ||
<span id="Chapter 1" class="anchor-hidden"></span> | <span id="Chapter 1" class="anchor-hidden"></span> | ||
<h2>Chapter One: The First Time</h2> | <h2>Chapter One: The First Time</h2> | ||
<span id="Chapter 2"></span> | <span id="Chapter 2"></span> | ||
<h2>Chapter Two: The Second Time</h2> | <h2>Chapter Two: The Second Time</h2> | ||
Revision as of 17:11, 10 May 2025
Chapter One: The First Time
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