Template:Institutions Recipes csv: Difference between revisions
(Created to store services recipes data as provided by the devs) |
(Updated to 1.4.15 (no changes to data tho)) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Version| | {{Version|1.4.15}} | ||
==Overview== | ==Overview== |
Latest revision as of 15:02, 4 October 2024
Overview
This template stores the CSV data for services as provided by the game developers.
Examples
You can use this wiki's data templates to retrieve the game data for use in any Lua module on this wiki. A utility module, CsvUtils
processes the document for you, giving you just the CSV data, if you need to parse it yourself. Or, the utility module can split it for you into a Lua table.
To do this, you need these two lines in your Lua code:
local CsvUtils = require("Module:CsvUtils")
local luaTable, headerLookup = CsvUtils.extractTables(Template:Institutions Recipes csv)
If you need the raw CSV code for some reason, to process it differently, the method extractTables is a shortcut method that calls two methods you can instead call directly: extractCSV and luaTableFromCSV. However, this is not advised.
Data
What follows on the rest of this wiki page is the only content that gets transcluded, the raw data enclosed in a <pre>
block:
id,gradeId,servedNeed,Good1,Good2,Good3,Good4,Good5,Good6, Bloodthirst,Grade1,Brawling,1 [Needs] Training Gear,,,,,, Education,Grade1,Education,1 [Needs] Scrolls,,,,,, Leasiure,Grade1,Leisure,1 [Needs] Ale,,,,,, Luxury,Grade1,Luxury,1 [Needs] Wine,,,,,, Religion,Grade1,Religion,1 [Needs] Incense,,,,,, Treatment,Grade1,Treatment,1 [Needs] Tea,,,,,,