Help:Editing BoyWiki 101
Note this template is still under construction. It may not function as expected. |
Help Editing |
This pages is intended to be a basic overview of editing pages on BoyWiki.
Equal signs are used to mark the enclosed text as a section heading: Page layout'''Page layout''' The Body sections
==References== {{reflist}}
==See also==
==External links==
|
Table of contents
When a page has at least four headings, a table of contents (TOC) will automatically appear after the lead and before the first heading. The TOC can be controlled by magic words or templates:
__FORCETOC__
forces the TOC to appear at the normal location regardless of the number of headings.__TOC__
forces the TOC to appear at the point where the magic word is inserted instead of the normal location.__NOTOC__
disables the TOC entirely.
Indent text
Indentation is most commonly used on talk pages.
Indentation as used on talk pages: :Each colon at the start of a line ::causes the line to be indented by three more character positions.
:::Repeat the indentation at any line break. ::::Use an extra colon for each response. :::::And so forth ... ::::::And so on ... |
Indentation as used on talk pages:
so long as no carriage return or line break is used.)
|
Blockquote
When there is a need for separating a block of text. This is useful for (as the name says) inserting blocks of quoted (and cited) text.
<blockquote> The '''blockquote''' tag will indent both margins when needed instead of the left margin only as the colon does. </blockquote> |
|
Text formatting
Description | What you type | What it looks like |
---|---|---|
Italics, bold |
To ''italicize text'', just put 2 apostrophes on each side. 3 apostrophes will '''bold the text''' 5 apostrophes for '''''bold italics''''' '''''Italic and bold formatting''''' only works properly within a single line. For text as {{Smallcaps|small caps}}, that uses a [[Help:Template|template]]. |
To italicize text, just put 2 apostrophes on each side. 3 apostrophes will bold the text 5 apostrophes for bold italics Italic and bold formatting only works properly within a single line.
|
Small chunks of source code within a line of normal text. Code is displayed in a monospace font. |
function <code>int m2()</code> is nice |
function |
Syntax highlighting for source code. Computer code has colored text and more stringent formatting.
For example, to define a function: |
<syntaxhighlight lang="cpp"> #include <iostream> int m2 (int ax, char *p_ax) { std::cout <<"Hello World!"; return 0; }</syntaxhighlight> |
#include <iostream>
int m2 (int ax, char *p_ax) {
std::cout <<"Hello World!";
return 0;
} |
Small text |
Use <small>small text</small> if needed. A span tag can set text font-size as being <span style="font-size: 87%">87% of prior size</span>, to match an image caption. |
Use small text if needed. A span tag can set text font-size as being 87% of prior size, to match an image caption. |
Big text (Obsolete) |
Better not use <big>big text</big>, unless <small> it's <big>within</big> small</small> text. |
Better not use big text, unless it's within small text. |
You can include a non-breaking space (sometimes called non-printing character) where you require two words to always appear together on the same line, such as Mr. Smith or 400 km/h, using |
Mr. Smith or 400 km/h |
Mr. Smith or 400 km/h |
Extra spacing within text can best be achieved using the pad template. |
Mary {{pad|4em}} had a little lamb. |
Mary Template:Pad had a little lamb. |
Typewriter font (Obsolete) (Also works beyond the end of a paragraph.) |
<tt>arrow →</tt> <tt>''italics'', '''bold'''</tt> <tt>[[wikilink]] New paragraph </tt>started here. |
arrow → italics, bold New paragraph started here. |