You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:SetupHistory: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
===How to add history data===
===How to add history data===


Go to [[Template:SetupHistory/Database]], you should see an empty page. This is intentional, don't think there's nothing there (unless no data has actually been added to it yet.). Open the edit section and then do the following:
Go to [[Template:SetupHistory/Database]], you should see a list of categories, go to the one for your game type. Open the edit section of the page you are directed to and then do the following:


*Add <pre>{{SetupHistory/Parser| Name=| Thread_ID=| GameType_&_ID=| Result=| Setup=}}</pre>
*Add <pre>{{SetupHistory/Parser| Name=| Thread_ID=| GameType_&_ID=| Result=| Setup=}}</pre>

Revision as of 20:35, 27 January 2015

Name:
  • Setup History
Type:
Sub-Template:
  • No
Designer:

This page isn't actually a template, it's just a page to explain how another group of templates work together to semi-automise adding played games to the history sections of setup pages.


What it does

As briefly explained in the introduction this template is used to automate adding history information to setup pages. Instead of having to search through each setup page manually to update the history sections this allows you to put all the data here and let it do the sorting. This will only work if the template is set up to work with that setup page as explained after this.


How to use it

This template consists of three sub-templates:

Each of these templates has it's own purpose however the only one needed is the Database one. You need to place

{{SetupHistory/Database}}

in the history section of your setup page first. After that any history information in the database page that uses that setup will automatically be added.


How to add history data

Go to Template:SetupHistory/Database, you should see a list of categories, go to the one for your game type. Open the edit section of the page you are directed to and then do the following:

  • Add
    {{SetupHistory/Parser| Name=| Thread_ID=| GameType_&_ID=| Result=| Setup=}}
  • Fill in the following data after the "="s.
    • Name: The name of the game. This often something like "Fish Mafia" or whatever the mod names the game.
    • Thread_ID: This is the number you see at the end of the url of the first page of a thread. Copy and paste that here.
    • GameType_&_ID: Say wether the game is an "Open" game, "Mini Normal" or whatever here. If the game has a unique ID (Example "Open 575") then add that as well.
    • Result: Say how the game ended here. An example is "Mafia Win".
    • Setup: Add the name of the setup page of the setup used here. This is case sensitive, beware.