Template:TitleReq: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(altering new field to be "newreq" not "n")
(fix capitalization of Guild association properties)
 
Line 1: Line 1:
<includeonly>{{#if:{{#arraymaptemplate:{{{1}}}|SkillCodeTest|,|}}|
<includeonly>{{#if:{{#arraymaptemplate:{{{1}}}|SkillCodeTest|,|}}|
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}{{#switch:{{SkillCode|{{{1}}}}}|Backstab=[[guild association is::thief| ]]|Scouting=[[guild association is::ranger| ]]|Trading=[[guild association is::Trader| ]]|Astrology=[[guild association is::moon mage| ]]|Musical Theory=[[guild association is::Bard| ]]}}{{ucfirst:{{{3|At least}}}}} {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{#arraymaptemplate:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}|skill|,|&#32;or&#32;|}}.{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}[[title requirement::{{ucfirst:{{{3|At least}}}}} {{#if:{{{2|}}}|{{{2}}}|?}} in {{#arraymap:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}|,|x|x|&#32;or&#32;|}} skill| ]]{{#if:{{{2|}}}|{{#arraymap:{{lc:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}}}|,|x|[[requires x skill::{{{2}}}| ]]|}}|}}|{{#switch:{{lc:{{{1}}}}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}{{#switch:{{SkillCode|{{{1}}}}}|Backstab=[[guild association is::Thief| ]]|Scouting=[[guild association is::Ranger| ]]|Trading=[[guild association is::Trader| ]]|Astrology=[[guild association is::Moon Mage| ]]|Musical Theory=[[guild association is::Bard| ]]}}{{ucfirst:{{{3|At least}}}}} {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{#arraymaptemplate:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}|skill|,|&#32;or&#32;|}}.{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}[[title requirement::{{ucfirst:{{{3|At least}}}}} {{#if:{{{2|}}}|{{{2}}}|?}} in {{#arraymap:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}|,|x|x|&#32;or&#32;|}} skill| ]]{{#if:{{{2|}}}|{{#arraymap:{{lc:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}}}|,|x|[[requires x skill::{{{2}}}| ]]|}}|}}|{{#switch:{{lc:{{{1}}}}}
|wisdom|charisma|strength|reflex|agility|intelligence|discipline|stamina=
|wisdom|charisma|strength|reflex|agility|intelligence|discipline|stamina=
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in [[{{{1}}} (stat)|{{ucfirst:{{{1}}}}}]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{ucfirst:{{{1}}}}}| ]]{{#if:{{{2}}}||[[requires {{lc:{{{1}}}}}::{{{2}}}| ]]|}}.{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in [[{{{1}}} (stat)|{{ucfirst:{{{1}}}}}]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{ucfirst:{{{1}}}}}| ]]{{#if:{{{2}}}||[[requires {{lc:{{{1}}}}}::{{{2}}}| ]]|}}.{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
Line 18: Line 18:
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must know {{{3|[[missing::title requirement|?]]}}} spells from the [[:Category:{{{2}}} spellbook|{{{2}}} spellbook]][[title subcategory is::spell| ]][[title subcategory is::{{lc:{{{2}}}}}| ]][[title requirement::Must know {{#if:{{{3|}}}|{{{3}}}|?}} spells from the {{{2}}} spellbook| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must know {{{3|[[missing::title requirement|?]]}}} spells from the [[:Category:{{{2}}} spellbook|{{{2}}} spellbook]][[title subcategory is::spell| ]][[title subcategory is::{{lc:{{{2}}}}}| ]][[title requirement::Must know {{#if:{{{3|}}}|{{{3}}}|?}} spells from the {{{2}}} spellbook| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|guild=
|guild=
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must be a [[guild association is::{{lc:{{{2}}}}}|{{{2}}}]]{{#if:{{{3|}}}|&#32;or a [[guild association is::{{lc:{{{3}}}}}|{{{3}}}]]}}[[title requirement::Must be a {{{2}}}{{#if:{{{3|}}}|&#32;or a {{{3}}}}}| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must be a [[guild association is::{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}|&#32;or a [[guild association is::{{{3}}}|{{{3}}}]]}}[[title requirement::Must be a {{{2}}}{{#if:{{{3|}}}|&#32;or a {{{3}}}}}| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|circle=
|circle=
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}{{#if:{{{2|}}}|[[title requirement::Must be {{#if:{{{3|}}}|{{{3}}}|at least}} circle {{{2}}}]]|Must be [[missing::title requirement|?]] circle}}[[title subcategory is::circle| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}{{#if:{{{2|}}}|[[title requirement::Must be {{#if:{{{3|}}}|{{{3}}}|at least}} circle {{{2}}}]]|Must be [[missing::title requirement|?]] circle}}[[title subcategory is::circle| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}

Latest revision as of 14:29, 19 January 2017


A plug in for Template:Title.

Usage Docmentation

NOTE: Do not attempt to imbed links in ANY of the text, except for the 3rd variable of OTHER.

{{TitleReq|<skill>|<amount>| / less than}}
OR
{{TitleReq|<skill1>,<skill2>,<skill3>,...|<amount>}}
OR
{{TitleReq|<skill category>|<ranks>|highest/lowest/total}}
OR
{{TitleReq|male/female}}
OR
{{TitleReq|ability|<ability name>}}
OR
{{TitleReq|ability|<ability name>|<ability page>}}
OR
{{TitleReq|spell|<spell name>}}
OR
{{TitleReq|spellbook|<spellbook name>|<# of spells>}}
OR
{{TitleReq|<guild>}}
OR
{{TitleReq|circle|<circle>}}
OR
{{TitleReq|other|<requirement without links>|<requirement with links>}}
OR
{{TitleReq|?}}