Help:Editing BoyWiki 101: Difference between revisions
No edit summary |
No edit summary |
||
Line 61: | Line 61: | ||
* <code><nowiki>__TOC__</nowiki></code> forces the TOC to appear at the point where the magic word is inserted instead of the normal location. | * <code><nowiki>__TOC__</nowiki></code> forces the TOC to appear at the point where the magic word is inserted instead of the normal location. | ||
* <code><nowiki>__NOTOC__</nowiki></code> disables the TOC entirely. | * <code><nowiki>__NOTOC__</nowiki></code> disables the TOC entirely. | ||
=== Indent text === | === Indent text === | ||
Line 66: | Line 68: | ||
Indentation is most commonly used on talk pages. | Indentation is most commonly used on talk pages. | ||
{{ | {{Box1 start}} | ||
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. | <nowiki>:Each colon at the start of a line</nowiki> | ||
:::(The indentation persists | |||
<nowiki>::causes the line to be indented by three more character positions.</nowiki> | |||
<nowiki>:::(The indentation persists</nowiki> | |||
so long as no carriage return or line break is used.) | so long as no carriage return or line break is used.) | ||
:::Repeat the indentation at any line break. | |||
::::Use an extra colon for each response. | <nowiki>:::Repeat the indentation at any line break.</nowiki> | ||
:::::And so forth ... | |||
::::::And so on ...</nowiki> | <nowiki>::::Use an extra colon for each response.</nowiki> | ||
<nowiki>:::::And so forth ...</nowiki> | |||
<nowiki>::::::And so on ...</nowiki> | |||
{{Box2 start}} | |||
Indentation as used on talk pages: | |||
:Each colon at the start of a line | :Each colon at the start of a line | ||
::causes the line to be indented by three more character positions. | ::causes the line to be indented by three more character positions. | ||
Line 85: | Line 96: | ||
:::::And so forth ... | :::::And so forth ... | ||
::::::And so on ... | ::::::And so on ... | ||
}} | {{boxes end}} | ||
=== Text formatting === | === Text formatting === | ||
Revision as of 12:20, 19 April 2014
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.)
|
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. |