User:TheRoman/Sandbox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 3: | Line 3: | ||
<h2>Chapter One: The First Time</h2> | <h2>Chapter One: The First Time</h2> | ||
<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. | 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] | ||
If you want the <code><nowiki><span></nowiki></code> not to appear (e.g., no line break or spacing), add CSS: | |||
In <code>MediaWiki:Common.css:</code> | |||
<pre> | |||
.anchor-hidden { | |||
display: inline-block; | |||
height: 0; | |||
overflow: hidden; | |||
} | |||
</pre> | |||
Then write: | |||
<pre><span id="Chapter 1" class="anchor-hidden"></span> | |||
<h2>Chapter One: The First Time</h2> | |||
</pre> | |||
<span id="Chapter 1" class="anchor-hidden"></span> | |||
<h2>Chapter One: The First Time</h2> | |||
<br> | <br> | ||
<br> | <br> | ||
Revision as of 07:47, 10 May 2025
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
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