Template:TitleReq: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added flag for updated reqs)
Line 1: Line 1:
<includeonly>{{#if:{{#arraymaptemplate:{{{1}}}|SkillCode/Test|,|}}|
<includeonly>{{#switch:{{{n|}}}|y=|''}}{{#if:{{#arraymaptemplate:{{{1}}}|SkillCode/Test|,|}}|
: {{#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;|}}.[[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:{{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|Bardic Lore=[[guild association is::Bard| ]]}}{{ucfirst:{{{3|At least}}}}} {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{#arraymaptemplate:{{#arraymaptemplate:{{{1}}}|SkillCode|,|,}}|skill|,|&#32;or&#32;|}}.[[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=
: 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}}}| ]]|}}.
: 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}}}| ]]|}}.
Line 27: Line 27:
|other=
|other=
: {{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}[[title requirement::{{{2}}} | ]]|?|
: {{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}[[title requirement::{{{2}}} | ]]|?|
:{{#if:{{{2|}}}|[[title requirement::Unknown requirement involving {{{2}}}{{#if:{{{3|}}}|&#32;and {{{3}}}|}}]][[missing::title requirement| ]]|[[title requirement::Additional unknown requirements]][[missing::title requirement| ]]}}.}}}}</includeonly><noinclude>
:{{#if:{{{2|}}}|[[title requirement::Unknown requirement involving {{{2}}}{{#if:{{{3|}}}|&#32;and {{{3}}}|}}]][[missing::title requirement| ]]|[[title requirement::Additional unknown requirements]][[missing::title requirement| ]]}}.}}}}{{#switch:{{{n|}}}|y=|''}}</includeonly><noinclude>


A plug in for [[Template:Title]].
A plug in for [[Template:Title]].
Line 57: Line 57:
OR
OR
{{TitleReq|?}}
{{TitleReq|?}}

If n= is not set to "y", the requirement will be considered out of date for 3.0/3.1
</pre>{{cat|Templates}}</noinclude>
</pre>{{cat|Templates}}</noinclude>

Revision as of 20:39, 9 August 2014


A plug in for Template:Title.

Usage Docmentation

NOTE: Do not attempt to imbed links in ANY of the text, except for the 3 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|?}}

If n= is not set to "y", the requirement will be considered out of date for 3.0/3.1