How to Create a Module Page

= Overview =

Each VASSAL module has its own page in the Modules namespace here on the VASSAL Wiki. There are four steps to creating a module page:


 * 1) Start a new page for the module.
 * 2) Copy the module page template to your new module page.
 * 3) Fill in the details for your module.
 * 4) Upload your module.

This tutorial will walk you through each step.

= Start a new page =

There are several ways to start a new page; the most straightforward one is to type "Module:", followed by the name of the game for which you are creating a module, in the wiki's search box on the left. Then click the "Go" button. (Note: The "Module:" preceding the name of the game is a namespace. Namespaces help separate types of content in our wiki.)

This will take you to a "Search results" page. If there really is no page for your module, you'll see the link "create this page", circled in green in the screenshot below.

After clicking the link, you will be taken to a page where you can begin editing.

Proceed to the next section, where we will begin to fill in the module page.

= Copy the module page template =

All VASSAL module pages follow a set style in order to make it easy for users to locate the information they need and to give our module pages a uniform appearance. Creating a module page from scratch is a fair amount of typing, so we provide a template for you to copy:

Files

 * }

Players

 * someguy@example.com@Some Guy

Select the template text and paste it into the text area on the editing page. Then, click the "Show Preview" button below the editing area.

You should now see a skeletal version of your module page previewed above the editing area. Proceed to the next section, where we will describe what each element in the template does and how to fill in the details for your module.

= Fill in Your Module Details =

In this section, we will walk you through adding the information for your module to the module page template. We will make frequent use of wiki markup. For more details on wiki markup see Help:Formatting.

Module pages are divided into sections marked by level-2 headings:. (Level-2 headings correspond to the  element in HTML.) If you look at the module page template, you'll see headings for "Files", "Module Information", "Screen Shots", and "Players":

 

== Files ==




 * }

== Module Information == 

== Screen Shots == 

== Players == 
 * someguy@example.com@Some Guy

These headings divide the module page into sections. Above the "Files" section is the markup which produces an information box for your module.

The Module Information Box
Here we will look at the module information box one piece at a time. The module information box is produced by a MediaWiki template. Templates define text which will be included into a page when it is rendered. The syntax for templates is, where Name is the name of the template, arg1 to argn are named arguments, and val1 to valn are the values of those arguments. Argument-value pairs are separated from the template name and from each other by the pipe character (" ").

The template which produces the module information box is called, and takes the following arguments:


 * the name of the image to display
 * the name of the image to display


 * the publisher of the game
 * the publisher of the game


 * the year the game was published
 * the year the game was published


 * the historical era the game covers, if applicable
 * the historical era the game covers, if applicable


 * the topic the game covers, if applicable
 * the topic the game covers, if applicable


 * the series the game is part of, if applicable
 * the series the game is part of, if applicable


 * the scale of the game, if applicable
 * the scale of the game, if applicable


 * the number of players the game accomodates
 * the number of players the game accomodates


 * the length of the game
 * the length of the game

Now, an example: The module for The Longest Day uses this code

which produces this info box:

Notice that the series isn't specified here;  is an optional argument, since not every game is part of a series. The  template automatically adds your module page to the Modules category, as well as the categories for the game's publisher, era, and topic.

The Players Section
= Upload Your Module =