You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:SetupHistory: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
< | {{Template | ||
|Name=Setup History | |||
|Type=Utility | |||
|Sub=No | |||
|Designer=wgeurts | |||
}} | |||
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 [[Setups|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: | |||
*[[Template:SetupHistory/Converter]] | |||
*[[Template:SetupHistory/Parser]] | |||
*[[Template:SetupHistory/Database]] | |||
Each of these templates has it's own purpose however the only one needed is the Database one. You need to place <pre>{{SetupHistory/Database}}</pre> 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 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: | |||
*Add <pre>{{SetupHistory/Parser| Name=| Thread_ID=| GameType_&_ID=| Result=| Setup=|</pre> | |||
*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. |
Revision as of 21:30, 17 January 2015
|
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 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:
- 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.