Module:Experience/data/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation}} Load with <syntaxhighlight language="lua" inline>data = mw.loadData('Module:Experience/data')</syntaxhighlight>. <syntaxhighlight language="lua" inline>data.level[i]</syntaxhighlight> is the total experience needed to reach level <syntaxhighlight language="lua" inline>i</syntaxhighlight> in a profession. <syntaxhighlight language="lua" inline>data.knowledge[i]</syntaxhighlight> is the the experience gained at level <syntaxhighlight language="lua" inl...")
 
mNo edit summary
Line 1: Line 1:
{{Documentation}}
{{Documentation}}


Load with <syntaxhighlight language="lua" inline>data = mw.loadData('Module:Experience/data')</syntaxhighlight>.
Load with <syntaxhighlight lang="lua" inline>data = mw.loadData('Module:Experience/data')</syntaxhighlight>.


<syntaxhighlight language="lua" inline>data.level[i]</syntaxhighlight> is the total experience needed to reach level <syntaxhighlight language="lua" inline>i</syntaxhighlight> in a profession.
<syntaxhighlight lang="lua" inline>data.level[i]</syntaxhighlight> is the total experience needed to reach level <syntaxhighlight lang="lua" inline>i</syntaxhighlight> in a profession.


<syntaxhighlight language="lua" inline>data.knowledge[i]</syntaxhighlight> is the the experience gained at level <syntaxhighlight language="lua" inline>i</syntaxhighlight> when using knowledge to gain experience in a profession. Knowledge can only be used for <syntaxhighlight language="lua" inline>i >= 20</syntaxhighlight>.
<syntaxhighlight lang="lua" inline>data.knowledge[i]</syntaxhighlight> is the the experience gained at level <syntaxhighlight lang="lua" inline>i</syntaxhighlight> when using knowledge to gain experience in a profession. Knowledge can only be used for <syntaxhighlight lang="lua" inline>i >= 20</syntaxhighlight>.