Valve Developer Community:Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Replaced content with '<!-- Do not edit this line! -->{{sandbox}}<!-- Don't you dare! --> {{subst:Mod Page}}')
Line 1: Line 1:
<!-- Do not edit this line! -->{{sandbox}}<!-- Don't you dare! -->
<!-- Do not edit this line! -->{{sandbox}}<!-- Don't you dare! -->
__FORCETOC__
{{ModStatus|status=Alpha|engine=Source|download=}}
==Parser extension tags==
 
newsblurbs:<newsblurbs>dfgdfg dfgdfg dfgdfg</newsblurbs>
== Overview ==
nframe:<nframe>dfgdfg dfgdfg dfg</nframe>
 
pre:<pre>dfgdfg dfgdf
Start with a mod description. This should be a general overview of what the mod is and maybe what
dfgdfg dfgfgdf
sets it apart from other mods in its genre. This is broad information and can include what the mod
dfgdf fdggd</pre>
is now as well as what is intended for the future.
source:<source lang="php"><?php
 
== Features ==
# Define a setup function
 
$wgExtensionFunctions[] = 'efExampleParserFunction_Setup';
* a quick list of features
# Add a hook to initialise the magic word
* bulleted lists are always nice
$wgHooks['LanguageGetMagic'][]      = 'efExampleParserFunction_Magic';
* they give the viewer a quick overview of what is in the mod
* you don't need to list every minute feature here
function efExampleParserFunction_Setup() {
 
        global $wgParser;
== Media ==
        # Set a function hook associating the "example" magic word with our function
 
        $wgParser->setFunctionHook( 'example', 'efExampleParserFunction_Render' );
Screenshots, movies, whatever. We are almost requiring media for a mod to be listed- it's not a
}
steadfast rule, but it's a good idea of when to decide to make your mod's page.
 
function efExampleParserFunction_Magic( &$magicWords, $langCode ) {
== History ==
        # Add the magic word
 
        # The first array element is case sensitive, in this case it is not case sensitive
A brief history of the mod.  How long has it been around, what kind of changes has it gone through,
        # All remaining elements are synonyms for our parser function
what problems had to be overcome.  You know.  Whatever. If you want it.
        $magicWords['example'] = array( 0, 'example' );
 
        # unless we return true, other parser functions extensions won't get loaded.
== Team ==
        return true;
 
}
Some information about the mod team.
 
function efExampleParserFunction_Render( &$parser, $param1 = '', $param2 = '' ) {
== Localized versions ==
        # The parser function itself
 
        # The input parameters are wikitext with templates expanded
Information about the localized versions of the mod.
        # The output should be wikitext too
 
        $output = "param1 is $param1 and param2 is $param2";
== See also ==
        return $output;
 
}
* Links to other related articles within the wiki (optional).
?></source>
 
==Parser function hooks==
== External links ==
* fullurl:{{fullurl:MDL|hi}}
 
* urlencode:{{urlencode:123!"§}}
* links to the official site
* uc:{{uc:x}}
* links to mod specific tutorials on the wiki and externally
* ucfirst:{{ucfirst:xyz}}
* mod specific forums
anchorencode, defaultsort, displaytitle, filepath, formatnum, fullurl, fullurle, grammar, int, language, lc, lcfirst, localurl, localurle, ns, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pagesincategory, pagesize, plural, special, tag, uc, ucfirst and urlencode
* etc
* {{moddb|Insert-ModDB-ID-number-here}}
 
[[Category:Help Wanted]]
[[Category:Multiplayer Mods]]
[[Category:Open Source Mods]]
[[Category:Released Mods]]
[[Category:Single Player Mods]]

Revision as of 06:38, 31 August 2010

The Sandbox (Valve Developer Community:Sandbox) is a VDC namespace page designed for testing and experimenting with Wiki syntax. Feel free to try your skills at formatting here: click on edit, make your changes, and click 'Save page' when you are finished. Content added here will not stay permanently.

Please do not edit the "markup" text, at the top of the editing window, that reads "{{sandbox}}".

Development.png

This mod for Source is currently in alpha development.

Overview

Start with a mod description. This should be a general overview of what the mod is and maybe what sets it apart from other mods in its genre. This is broad information and can include what the mod is now as well as what is intended for the future.

Features

  • a quick list of features
  • bulleted lists are always nice
  • they give the viewer a quick overview of what is in the mod
  • you don't need to list every minute feature here

Media

Screenshots, movies, whatever. We are almost requiring media for a mod to be listed- it's not a steadfast rule, but it's a good idea of when to decide to make your mod's page.

History

A brief history of the mod. How long has it been around, what kind of changes has it gone through, what problems had to be overcome. You know. Whatever. If you want it.

Team

Some information about the mod team.

Localized versions

Information about the localized versions of the mod.

See also

  • Links to other related articles within the wiki (optional).

External links

  • links to the official site
  • links to mod specific tutorials on the wiki and externally
  • mod specific forums
  • etc
  • Insert-ModDB-ID-number-here ModDB page