Help:Editing Features
For information on tables of contents, see Help:Table of Contents.
Page Creation[edit source]
The easiest route to create a page is to simply type the name of it in the search bar at the top, and follow the link it gives you. You can also type it in your address bar or go to it through a broken link.
Please do not make a page without providing at least some actual information about it! If you see a page doesn't exist even though it should, we would prefer you do not make it if you don't actually know anything about it. An acceptable alternative is to create a red link to the page somewhere and add Template:Todo1.
Tip: If you're making a page with a name similar to another page, consider using Template:conf, Template:for or making a disambiguation page.
Note: Page titles are case-sensitive, except for the first letter. door
and Door
are the same exact thing. Use DISPLAYTITLE to change the title of the page at the top of it (but not the URL).
The Summary box allows you to describe your changes. It's completely optional. It also has a 255 character limit, so you can make them kind of long, but not too long.
This is a minor edit marks your edit as minor. Reserve this for changes such as fixing typos. This should not be marked on any edits that change the actual information being told to readers.
Watch this page will tell the website to add the page you are editing to your watchlist.
The Show preview button allows you to see what your changes will look like before saving them. Please use this, instead of making many, many revisions to a page in rapid succession. Doing so creates clutter on edit history logs.
Show changes will summarize all the changes your current unsaved edit will make.
Click Save changes when you are done editing.
Line breaks[edit source]
Beginners are sometimes confused on how to start text on a new line, since one return doesn't actually start a new line. Use two returns to start a new line.
Input | Output |
---|---|
ab |
ab |
a b |
ab |
a b |
a
b |
Bold[edit source]
This button lets you make bold text.
Input | Output |
---|---|
'''bold text''' not bold |
bold text not bold |
Should not be used excessively. Commonly used on button labels (like Apply) or keyvalue names (like Name).
You can quickly bold an entire line of text by putting ;
at the start of the line.
Italic[edit source]
This button lets you make italic text.
Input | Output |
---|---|
''italic text'' not italic |
italic text not italic |
Also should not be used excessively. Sometimes used when quoting someone, or property/flag names (like Play Everywhere).
Unordered Lists[edit source]
Input | Output |
---|---|
*An item. *Another item. **All of these could be in any order you want. |
|
Ordered List[edit source]
Input | Output |
---|---|
#Open Hammer. #Make a map. #Compile the map. #Test it in the game. |
|
nowiki[edit source]
Prevents text from being formatted by the wiki in any way.
Without wiki formatting:
Input | Output |
---|---|
<nowiki>''{{restart}}''</nowiki> |
''{{restart}}'' |
With wiki formatting:
Input | Output |
---|---|
''{{restart}}'' |
Requires restart to take effect. |
Note: To display <nowiki> tags on a page, you must put them in their own <nowiki> tags, like this:
<nowiki><nowiki></nowiki>unformatted text<nowiki></nowiki></nowiki>
Without that, formatting may break unintentionally.
Tables[edit source]
The syntax for wiki tables closely follows that of HTML tags.
HTML | Wiki | |
---|---|---|
Table | <table></table> | {| |} |
Styles | <table class="tbl"> | {|class=tbl |
Header cell | <th>heading</th> | ! heading |
Row | <tr></tr> | |- |
Data cell |
<td>cell1</td> |
| cell1 | cell2 |
Data cell | <td>cell1</td> <td>cell2</td> <td>cell3</td> | | cell1 || cell2 || cell3 |
Sample table | <table> <tr> <th>Quantity</th> <th>Grocery Item</th> </tr> <tr> <td>4</td> <td>Apples</td> </tr> <tr> <td>3</td> <td>Oranges</td> </tr> <tr> <td>12</td> <td>Eggs</td> </tr> <tr> <td>9</td> <td>Bananas</td> </tr> </table> |
{| ! Quantity || Grocery Item |- | 4 || Apples |- | 3 || Oranges |- | 12 || Eggs |- | 9 || Bananas |} |
Note: Some other formatting may break in tables. If something isn't working right, try using Template:! or switching from wikitext to HTML.
Horizontal Lines[edit source]
----
makes a line like this:
They can be used to split things into sections, but usually that should be done with headers.
Indenting[edit source]
You can indent text by putting :
at the start of a line.
Input | Output |
---|---|
Unindented text. :Indent. :::::weee |
Unindented text.
|
Signifying Code[edit source]
Console commands, code, and filepaths are just some of the things we frequently format to be monospaced
.
<code> tags are the cleanest and most common method.
Input | Output |
---|---|
<code>code text</code> not code |
code text not code
|
<pre> tags are much more common when code takes up multiple lines.
A <pre> box can also be made by putting a space at the start of the line, which offers the advantage of inserting some formatting into the text.
Input | Output |
---|---|
<pre> buildcubemaps mat_hdr_level 0 (to go to LDR) restart (to reload map) buildcubemaps mat_hdr_level 2 (to go back to HDR) restart (to reload map) </pre> |
buildcubemaps mat_hdr_level 0 (to go to LDR) restart (to reload map) buildcubemaps mat_hdr_level 2 (to go back to HDR) restart (to reload map) |
<syntaxhighlight> will make a <pre> but will also color certain pieces of text based on language.
Input | Output |
---|---|
<syntaxhighlight lang="cpp"> void CBaseEntity::FireBullets( const FireBulletsInfo_t &info ) { static int tracerCount; trace_t tr; CAmmoDef* pAmmoDef = GetAmmoDef(); int nDamageType = pAmmoDef->DamageType(info.m_iAmmoType); int nAmmoFlags = pAmmoDef->Flags(info.m_iAmmoType); //... //remainder omitted //... } </syntaxhighlight> |
void CBaseEntity::FireBullets( const FireBulletsInfo_t &info )
{
static int tracerCount;
trace_t tr;
CAmmoDef* pAmmoDef = GetAmmoDef();
int nDamageType = pAmmoDef->DamageType(info.m_iAmmoType);
int nAmmoFlags = pAmmoDef->Flags(info.m_iAmmoType);
//...
//remainder omitted
//...
}
|
Note: Some characters may break the formatting in a pre or syntaxhighlight. Try substituting the characters with their HTML escape entities
See Help:Syntax Highlighting for more information on languages.