User:Mattshu/sandbox

From Valve Developer Community
< User:Mattshu
Revision as of 23:32, 6 November 2011 by Mattshu (talk | contribs) (Added last section, "See also". Categorized page. Nearly complete! Replacing all "User:Mattshu/sandbox" links to "Help:Editing", then let the move begin.)
Jump to navigation Jump to search

Help:Editing

Page Creation

Editing Toolbar

http://developer.valvesoftware.com/w/skins/common/images/button_bold.png Bold text
http://developer.valvesoftware.com/w/skins/common/images/button_italic.png Italic text
http://developer.valvesoftware.com/w/skins/common/images/button_link.png Adding internal links
http://developer.valvesoftware.com/w/skins/common/images/button_extlink.png Adding external links
http://developer.valvesoftware.com/w/skins/common/images/button_headline.png Adding a headline
http://developer.valvesoftware.com/w/skins/common/images/button_image.png Inserting a picture
http://developer.valvesoftware.com/w/skins/common/images/button_nowiki.png Ignore Wiki formatting
http://developer.valvesoftware.com/w/skins/common/images/button_sig.png Inserting your signature
http://developer.valvesoftware.com/w/skins/common/images/button_hr.png Horizontal lines

Formatting Pages

Page Templates

Specific Formatting Guidelines

Page Creation

You can start editing a non-existant page in several ways:

  • The easiest way is to type the exact name you want into the "Search" bar then hit "Go". If the page doesn't exist, you will be able to create it.
Warning.pngWarning:Make sure the subject of the page you have in mind isn't already on the wiki. For example, you want to create the page "Portal 2 Particles", but you didn't notice the List of Portal 2 Particles page.
For example, let's say you've typed "Foobar" in the search bar, then hit the "Go" button. Since the page doesn't exist, you are given this message:
There were no results matching the query.
Create the page "Foobar" on this wiki!
In this scenario, you are able to click the Foobar link and begin editing your new page.
Tip.pngTip:Red links are pages that have not been created yet, and blue links are pages that already exist.
  • You can can modify the URL in your address bar to go where you'd like (in this case using the address http://developer.valvesoftware.com/wiki/Foobar).
  • Some pages in the wiki contain many red links. If you are familiar with the subject matter of the non-existent page, feel free to create the new page by following the red link. Your contributions are greatly appreciated, and the more blue links, the better.

During the course of an edit, clicking Show preview (to the right of the Save page button) will help you determine if your edit looks good. This displays the final result of the edited page, but does not save it. This will avoid spamming the Recent changes page with saved edits, to the frustration of other editors.

When you are done editing, proofread it to make sure that the edit is final, and then click Save page to finally create the new page.

To test your editing skills, you can either use the public sandbox page, or create your own sandbox page on your User page by going to your user page and entering "/sandbox" in your address bar at the end of the URL, but be sure you're on your user page before creating it.

[Back to top]

Creating a How-to Page

Todo: Insert guidelines for creating tutorial/how-to pages

[Back to top]

Creating a Mod Page

Please review the Mod page guidelines before creating a page for a Source/GoldSrc mod.

[Back to top]

Creating an Entity Page

Todo: Insert guidelines for creating entity pages here

[Back to top]

Creating Categories

Categories enable pages to be added to automatic listings. These help structure many pages by grouping them together around similar subjects. There may also be a section listing the subcategories of that category.

Category pages are usually created for the description of their existence. For example, Category:Blender is a category for all pages related to the free and open source 3D modeling package, Blender.

To add a page to a category, simply place at the bottom of the page. All pages that have the same category name will be listed automatically in the category.

For a list of all current categories, visit Special:Categories.

[Back to top]

Creating User Pages

Your user page is your own personal editing venture. You are free to edit it with anything you desire. It is frowned upon by the Valve Developer Community to make direct edits to user pages that do not belong to you, unless the page contains media or external links relating to pornographic material, illegal warez/torrent sites, etc. If that is the case, you will risk your IP for permanent ban from the VDC.

To edit your user space, you must first have an account on the VDC. Registering is free and easy to do. Once you're logged in, click on your username at the very top-right of this page, or just copy this link and paste it into your address bar: http://developer.valvesoftware.com/wiki/User:YOUR USERNAME HERE

[Back to top]

Creating Discussion Pages

Discussion (or talk) pages are for user discussions concerning the information contained in it's respective main page. It can also be used for requesting help.

To create a discussion page (if it is non-existent for a page), just click the "Discussion" tab above, next to the "Page" tab.

Tip.pngTip:You can also use the keystroke Alt+T to quickly switch to the discussion page, that is if your web browser/operating system allows it.

Discussion pages have a special flow. When you are commenting on posts in a discussion page, indents are used to reply to comments. See below for more information on this technique.

It is common courtesy to sign your comments with your username and the time/date of post. This is a simple process that only requires four characters. Four tildes (~~~~) will automatically be replaced with your public user information along with the time and date of the post. Signatures are explained further here.

[Back to top]

Editing Guidelines

Todo: Insert a few details about editing guidelines. Since there aren't really any rules, other than warez/porn/span(etc), there should be a couple tips of common courtesy among other editors.

[Back to top]

Editing Toolbar

http://developer.valvesoftware.com/w/images/1/1e/Mediawiki_editbuttons.png

Each button, when pressed, will paste a small example of the usage of a pace of special formatting. If you have text selected, pressing a button will format the text instead of pasting in sample code. For example, to make some text bold, simply select some text in the edit window and press the bold button (the first button on the editing bar).

Bold text http://developer.valvesoftware.com/w/skins/common/images/button_bold.png

Bold text is very simple. Put in three (3) single apostrophes before the section of text you wish to bold, and three (3) after.

 
   Syntax '''Bold text''' 
 Example Remember to '''always''' brush your teeth. 
   Results Remember to always brush your teeth.

[Back to top]

Italicized text http://developer.valvesoftware.com/w/skins/common/images/button_italic.png

Italics are just as easy as bold text. Put in two (2) single apostrophes before the section of text you wish to italicize, and two (2) after.

 
   Syntax ''Italic text'' 
 Example The ''Queen Mary'' sailed last night. 
   Results The Queen Mary sailed last night.

[Back to top]

Internal links http://developer.valvesoftware.com/w/skins/common/images/button_link.png

If you want to link to another page that is in this particular wiki, you simply need the title of the page. To link to the Main Page, you simply use "Main Page". Easy!

 
   Syntax [[Link title]] 
 Example Click here to go to the main page: [[Main Page]] 
   Results Click here to go to the main page: Main Page
Note.pngNote:Currently, spaces and underlines both work the same in internal links. You can use [[Main_Page]] as well.

You can also change the text of the link, without affecting what it links to. This is useful if you have to adjust for grammar.

 
   Syntax [[Link title|Text for link]] 
 Example [[Main Page|Click here]] to go to the main page. 
   Results Click here to go to the main page.

[Back to top]

External links http://developer.valvesoftware.com/w/skins/common/images/button_extlink.png

External links are used to link to web pages that are not in this wiki. Any blue link with the http://developer.valvesoftware.com/w/skins/vector/images/external-link-ltr-icon.png icon means it's external.

 
   Syntax [http://www.example.com link title] 
 Example [http://www.valvesoftware.com/jobs/ Click here] to learn more about applying to Valve. 
   Results Click here to learn more about applying to Valve.

[Back to top]

Adding a headline http://developer.valvesoftware.com/w/skins/common/images/button_headline.png

A headline is often used as an eye-catching title or brief summary of a wiki page. You can change headline sizes by varying the number of equals signs (=) to change the size of the headline. This makes it very easy to categorize a page, creating a clean, efficient way to find information. Additionally, with multiple headlines, the wiki engine will eventually add a Table of Contents box to the beginning of the page, allowing a viewer to instantly hop to the subject they want on the page.

http://developer.valvesoftware.com/w/images/f/fd/Iosyntax.png Syntax = Extra-Large Headline =
== Large Headline ==
=== Medium Headline ===
==== Small Headline ====

Extra-large

  • Example of an XL headline (use sparingly)

Large

  • Example of a L headline

Medium

  • Example of a M headline

Small

  • Example of a S headline

[Back to top]

Embedded pictures http://developer.valvesoftware.com/w/skins/common/images/button_image.png

Embedded pictures are pictures that have been uploaded to the wiki and are now directly hosted by it. To upload a picture, visit Special:Upload.

Warning.pngWarning:Please read the image use policy before uploading images.
 
   Syntax [[Image:Filename.png]] 
 Example [[Image:Steam_available.png]] 
   Results Steam available.png

The [[Image:Filename.png]] syntax has a few options that you can use. These can be placed as an option anywhere in the line:

Option Example Description
thumb [[Image:Filename.png|thumb]] Produces a framed thumbnail version of the image.
###px (size) [[Image:Filename.png|300px|thumb|This is an example image]] Changes the pixel size of the images.
left (right, center) [[Image:Filename.png|thumb|150px|right]] Controls the alignment of the image on the page

[Back to top]

Ignore Wiki formatting http://developer.valvesoftware.com/w/skins/common/images/button_nowiki.png

This button may rarely be pressed, as the only time this may be used are for making descriptions for maintenance edits or writing pages like this one here. It will ignore all wiki formatting between the nests and only returns plain and simple text.

 
   Syntax <nowiki>Insert non-formatted text here</nowiki> 
 Example <nowiki>This is '''bold''' text.</nowiki> 
   Results This is '''bold''' text.

[Back to top]

Signature http://developer.valvesoftware.com/w/skins/common/images/button_sig.png

Inserts your user name, which links back to your user page, and a time stamp, which marks the exact time you submitted your edit. This is mainly used to "sign" your posts when inserting comments on Talk (discussion) pages. It is common courtesy to sign your comments on Talk pages. You can change what appears in your signature by going to Special:Preferences.

Tip.pngTip:The syntax includes two hyphens (--), but you really only need four tildes (~~~~) to insert a signature.
 
   Syntax --~~~~ 
 Example This discussion page may need archived soon. --~~~~ 
   Results This discussion page may need archived soon. --FakeUser23 21:38, 17 October 2011 (PDT)

[Back to top]

Horizontal lines http://developer.valvesoftware.com/w/skins/common/images/button_hr.png

 
   Syntax ----

Horizontal lines are usually only used at the end of a large section of a single page. Use them sparingly, as too many make a page look ugly. Proper use of headlines can render these unnecessary.

[Back to top]

Formatting Pages

Bullet points

This function can create unordered lists. Bullet points are useful for listing multiple items that fall into a similar category.

 
   Syntax * Item 1

* Item 2
* etc...
 

 Example * Red

* Blue
* Green
 

   Results
  • Red
  • Blue
  • Green

[Back to top]

Numbered lists

You can create ordered lists using this syntax. Numbered lists automatically number items according to their placement in the page.

 
   Syntax # Item 1

# Item 2
# etc...
 

 Example # This is the first step.

# This is the second step.
 

   Results
  1. This is the first step.
  2. This is the second step.

[Back to top]

Indenting

Indenting is more commonly used when responding to discussion posts. A colon character (:) is placed at the beginning of the line. The more placed, the further the indent. This indents a line of text about the same length as if you pressed the Tab key.

 
 Example :This line will be indented once.

::This line will be indented twice.
:::This line will be indented thrice.
 

   Results  
This line will be indented once.
This line will be indented twice.
This line will be indented thrice.

This format is commonly used in discussion pages. When a user makes a post, it is common to indent your response. See the fake discussion below for an example of how to properly flow talk pages with indents. The colons only appear as an example.

Anybody else believe unicorns exist? --jd650

:Yes. Actually, I've bred a couple of them. --MarcusTwain
::Really? Do you have photos? --jd650
::I, too, am interested in these photos. --Halifax
:::I, err.. don't have a camera.. --MarcusTwain
:No, I don't believe in unicorns. --ChOcObO_23
::Why not? --jd650

[Back to top]

Adding tables

Tables are a diverse way to lay out information on a page. Because they can be very specific, the table below shows a quick how-to when creating Wiki tables as opposed to standard XHTML tables.

 XHTMLWiki
Table <table></table>
{|
|}
Styles <table class="standard-table"></table>
{| class=standard-table
Header cell <th>heading</th>
! heading
Row <tr></tr>
|-
Data cell

<td>cell1</td>
<td>cell2</td>

| cell1
| cell2
Data cell <td>cell1</td> <td>cell2</td> <td>cell3</td>
| cell1 || cell2 || cell3
Sample table
<table>
   <tr>
      <td>1</td>
      <td>2</td>
   </tr> 
   <tr>
      <td>3</td>
      <td>4</td>
   </tr>
   <tr>
      <td>5</td>
      <td>6</td>
   </tr>
</table>
{| 
| 1 || 2 
|- 
| 3 || 4 
|- 
| 5 || 6 
|}
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
|}

[Back to top]

Syntax highlighting

To enable syntax highlighting for blocks of code, the syntax is pretty simple.

Note.pngNote:This new syntax replaces the <source> tag, because XML uses that tag in some scripts. You can use it in place of the lengthy <syntaxhighlight> tag, though. The choice is yours.
 
   Syntax <syntaxhighlight lang="cpp">C++ source code</syntaxhighlight> 
 Example <syntaxhighlight lang="cpp">(Insert FireBullets() method here)</syntaxhighlight> 
   Results
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
        //...
}

For a list of supported languages, see Help:Syntax Highlighting for more information.

[Back to top]

Redirecting pages

Sometimes you'll come across pages that are named incorrectly, or improperly named. You can redirect pages to their intended destination by a couple different methods.

The easiest way to redirect a page that already contains data is to click the http://developer.valvesoftware.com/w/skins/vector/images/arrow-down-icon.png icon next to the search box above the page, then selecting Move Page. Follow instructions carefully before you decide to move a page.

The manual way to redirect a page is to use the following syntax:

 
   Syntax #REDIRECT [[new_page]]
Warning.pngWarning:This method can only be used if the page is empty. If you are manually moving a page, copy the edit source of the page and paste it into the new page. Then the original page can be replaced with the #REDIRECT tag.

You can go back to a Redirect and edit it by clicking the link underneath the new page's title.

[Back to top]

Message boxes

To make a portion of text standout from the rest, you can place them in preformatted boxes by simply placing a single space at the beginning of a line.

 
   Syntax  Insert text after the space. 
 Example  There is a space at the beginning of this line. 
   Results
There is a space at the beginning of this line.

You can also use the <pre> tag for a message box. Just use <pre>Message box.</pre>.

[Back to top]

Categorizing pages

If you'd like a page to show up in the automatically generated category tables (full category list found here) like on the category page Category:Level_Design, you will need to append the [[Category:name]] at the bottom of the page.

For an example of how pages can be categorized, the bottom of this page have the following [[Category]] tags:

[[Category:Tutorials]]
[[Cateogry:Wiki]]
[[Category:Help]]

Go ahead and scroll down to the bottom of the page. You'll notice the three categories that were just listed are available at the bottom.

[Back to top]

Page Templates

A template is a page created to be included in other pages. Templates usually contain repetitive material that might need to show up on any number of articles or pages. They are commonly used for boilerplate messages, standard warnings or notices, infoboxes, navigational boxes and similar purposes. [1]

Note.pngNote:Many of the templates below are translated into several other languages. Before using any of these, be sure to check for alternate translations. Please use them accordingly with the page language.

Templates are easy to add to pages. Just surround a template name with {{ }} and voila.

Markup Templates

Note

Adds an indented message to note information.

 
   Syntax {{note|<message>}} 
 Example {{note|You will never be [[VAC]] banned for using built-in cheat commands.}} 
   Results
Note.pngNote:You will never be VAC banned for using built-in cheat commands.

Tip

Adds a helpful tip.

 
   Syntax {{tip|<message>}} 
 Example {{tip|With the Face Edit Sheet window, you can right-click on any surface to apply the current texture to it.}} 
   Results
Tip.pngTip:With the Face Edit Sheet window, you can right-click on any surface to apply the current texture to it.

Warning

Adds a warning message.

 
   Syntax {{warning|<message>}} 
 Example {{warning|Do not release a mod without first checking for leaks.}} 
   Results
Warning.pngWarning:Do not release a mod without first checking for leaks.

Bug

Used for describing a bug.

 
   Syntax {{bug|<message>}} 
 Example {{bug|Hammer will sometimes hang during play-testing.}} 
   Results
Icon-Bug.pngBug:Hammer will sometimes hang during play-testing.  [todo tested in ?]

Todo

Describes what needs changed to a page.

 
   Syntax {{todo|<message>}} 
 Example {{todo|Add more information on textures}} 
   Results
Todo: Add more information on textures

Confirm

Marks information that needs confirmation.

 
   Syntax {{confirm|<message>}} 
 Example {{confirm|<code>multiplayer_break</code> determines where the gibs from a [[prop_physics_multiplayer]] are simulated.}} 
   Results
Confirm:multiplayer_break determines where the gibs from a prop_physics_multiplayer are simulated.
 
   Syntax {{confirm}} 
 Example * '''-exit''' - Exits the engine. {{confirm}} 
   Results * -exit - Exits the engine. [confirm]

Unsigned

For those who are slightly obsessive-compulsive, this template signs posts that were left unsigned in discussion pages.

 
   Syntax {{unsigned|<username>}} 
 Example Anybody else hate it when people don't sign their own comments? {{unsigned|FakeUser27}} 
   Results Anybody else hate it when people don't sign their own comments? Unsigned comment added by FakeUser27 (talkcontribs) Always sign your posts with four tildes (~~~~)

Clr

Clears vertical space after an image. In the example below, {{clr}} is omitted in the input, then added between the text and image in the output.

 
 Example This is not cleared. http://developer.valvesoftware.com/w/images/thumb/1/1a/Skull_and_crossbones.png/50px-Skull_and_crossbones.png 
   Results This is cleared.
http://developer.valvesoftware.com/w/images/thumb/1/1a/Skull_and_crossbones.png/50px-Skull_and_crossbones.png

Maintenance Templates

Note.pngNote:These templates should be placed at the beginning of each page.

Cleanup

Used to mark articles in need of a general cleanup to conform to a sufficient level of quality. Pages with this template are added to Category:Cleanup.

Stub

Used to mark stub articles. Stubs are small articles that may need expanded. Pages with this template are added to Category:Stubs.

Delete

Used to mark a page for deletion. Pages with this template are added to Category:Candidates for speedy deletion.

Orphan

Used to mark pages that have few or no links to it. Pages with this template are added to Category:Cleanup and Category:Orphans.

Screenshot

Used to mark pages that are in need of a screenshot to visually convey the subject. Pages with this template are added to Category:Cleanup and Category:Screenshot needed.

POV

Used to mark pages that are not formatted in third-person. For help, see Help:Cleanup#Point_of_View. Pages with this template are added to Category:Cleanup and Category:POV Cleanup.

WIP

Used to mark pages that are currently undergoing active construction. Pages with this template are added to Category:Articles actively undergoing construction.

Merge

Used to mark similar pages that should be considered for a merge. For more information, see Wikipedia icon Help:Merging. Pages with this template are added to Category:Articles to be merged.

http://developer.valvesoftware.com/w/images/f/fd/Iosyntax.png Syntax {{merge|<article>}}

Update

Used to mark outdated articles that need updated with current information. Pages with this template are added to Category:Cleanup.

Totranslate

Used to mark pages that aren't translated for the page's language. Pages with this template are added to Category:To be translated.

Finishtranslation

Used to mark pages that have a reasonable amount of translated information, but isn't completely translated. Pages with this template are added to Category:To be translated.

Updatetranslation

Used to mark pages that require an update to its current translation. Pages with this template are added to Category:To be translated.

Formatting Templates

Note.pngNote:These templates effect elements outside of the editing boundaries and should be placed at the beginning of the article.

Otherlang2

Successor of the outdated {{otherlang}} template, this template is used to add a navigational bar at the upper-right corner of the page that links to other available translations for the current article.

 
   Syntax {{otherlang2
title=Title of page (optional)
noborder=true/false (optional)
lang=Page name:lang
lang2=Page name:lang2
etc...

For more detailed information, please see the template's page. It includes a list of available languages and explanations.

{{DISPLAYTITLE}}

This is a MediaWiki feature that is similar to the now-deprecated {{wrongtitle}} template. It changes the title of the page. This is mostly used for grammatical changes, as used on the page Filter_activator_team to make the name lowercase, as is the actual entity filter_activator_team. Another popular use is for translated pages. Instead of "Make_a_model_with_3DS_and_Photoshop:fr" as the title for French page, it reads Faire un modèle avec 3DS et Photoshop.

 
   Syntax {{DISPLAYTITLE:Title of page}}
Note.pngNote:Do not use this template if the page uses the otherlang2 template. Instead, use the template's title=Title of page option.

Behavior switches

These templates can be placed anywhere in the page. A behavior switch controls the layout or behavior of the page and can often be used to specify desired omissions and inclusions in the content.

Syntax Description
__NOTOC__ Hides the table of contents (TOC). Useful for small pages with many headers.
{{toc-right}} Acts as a behavior switch. This aligns the Table of Contents box to the right side of the page instead of the default left side.
__NOEDITSECTION__ Hides the [edit] boxes beside the headers.
__NEWSECTIONLINK__ Enables the option to add a sections to non-discussion pages.

Entity-specific Templates

Valve Game Icons

These are generally placed on entity pages. They're used to help identify that an entity is only for certain Valve games.

Input Output Game
{{source}} Source Source icon
{{as}} Alien Swarm Alien Swarm
{{css}} Counter-Strike: Source Counter-Strike: Source
{{dm}} Dark Messiah of Might and Magic Dark Messiah of Might and Magic
{{dods}} Day of Defeat: Source Day of Defeat: Source
{{hl2}} Half-Life 2 Half-Life 2
{{l4d}} Left 4 Dead Left 4 Dead
{{l4d2}} Left 4 Dead 2 Left 4 Dead 2
{{portal}} Portal Portal
{{portal2}} Portal 2 Portal 2
{{tf2}} Team Fortress 2 Team Fortress 2
{{ship}} The Ship: Murder Party Half-Life
{{hl1}} Half-Life Half-Life
{{ricochet}} Ricochet Ricochet

SourceEP2 add

Lists a feature added with the Orange Box Source Engine update.

 
   Syntax {{EP2 add|feature}} 
 Example {{EP2 add|barrels}} 
   Results Template:EP2 add

Left 4 DeadL4D add

Lists a feature added with the Left 4 Dead Source Engine update.

 
   Syntax {{L4D add|feature}} 
 Example {{L4D add|crates and barrels}} 
   Results Template:L4D add

Left 4 Dead 2L4D2 add

Lists a feature added with the Left 4 Dead 2 Source Engine update.

 
   Syntax {{L4D2 add|feature}} 
 Example {{L4D2 add|vscripts and squirrels}} 
   Results Template:L4D2 add

Portal 2P2 add

Lists a feature added with the Portal 2 Source Engine update.

 
   Syntax {{P2 add|feature}} 
 Example {{P2 add|excursion funnel}} 
   Results Template:P2 add

OutputsTable

Easily creates an entity outputs table. See the template page for more information on it's syntax.

Keyvalues

Inputs

Outputs

Counter-Strike: Source Counter-Strike: Source Templates

Team Fortress 2 Team Fortress 2 Templates

Specific Formatting Guidelines

There are no hard rules for specific formatting, other than keeping HTML at a bare minimum. There are some generally accepted styles you can use, though.

Mod Page Guidelines

Todo: Condense Help:Mod_Profiles for quick list of tips.

Italics

  • Should in general follow standard English usage -- italics are meant for slight emphasis. Italics should not be used for full sentences, as that is not minor emphasis and actually makes the emphasis unintelligible.
  • Newly defined words in a sentence. For example: "Levels are created with a series of blocks, called brushes, which can be created in all manner of sizes. Brushes are the basic components of levels". After the first italicized instance, the word is no longer italicized. If the newly defined word has an article, make it a link as well.
  • Parameters in a command-line that are to be replaced by the user: hl2.exe +map mapname -dev
  • Can be combined with "<" and ">" for parameters with longer names: hl2.exe -game <game directory>
  • Other standard uses in English can be found at Wikipedia:Italic_type.

Bolding

  • Strong emphasis: "Note: Using this command can cause your hard drive to explode." Like italics, over-use of bolding renders the emphasis unintelligible.
  • Menu commands and other program UI: "First, go to the File menu and choose Map Properties to bring up the Object Properties dialog box. Click the Skybox Texture Name field."
  • If the word is a wiki link, you do not usually need to bold it.

Code tag

  • Are fine to use, as there is no other wiki markup equivalent.
  • Command-line statements: c:\program files\valve\steam\
  • Variables in code or text files: $staticprop or m_nCounter
  • In-game console commands: mat_wireframe 1
  • Filenames: bspzip.exe
  • Entity names: info_player_start
  • Other in-game or Hammer data, such as texture names, input and output names, etc.

See also

Wikipedia has excellent resources on text formatting available here. The information is referential of the Wikipedia site, but is applicable to all MediaWiki powered sites, including the Valve Developer Community.