Template:TitleReq: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(let's try this again)
(fix capitalization of Guild association properties)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#arraymaptemplate:{{{1}}}|SkillCode/Test|,|}}|
<includeonly>{{#if:{{#arraymaptemplate:{{{1}}}|SkillCodeTest|,|}}|
: {{#switch:{{{n}}}|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:{{{n}}}|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:{{{n}}}|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:{{{n}}}|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=|''}}
|male=
|male=
: {{#switch:{{{n}}}|y=|''}}[[title requirement::Must be male]][[title subcategory is::male| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}[[title requirement::Must be male]][[title subcategory is::male| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|female=
|female=
: {{#switch:{{{n}}}|y=|''}}[[title requirement::Must be female]][[title subcategory is::female| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}[[title requirement::Must be female]][[title subcategory is::female| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|weapon|armor|lore|survival|magic=
|weapon|armor|lore|survival|magic=
: {{#switch:{{{n}}}|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{{3|highest}}} [[:Category:{{{1}}} Skillset|{{ucfirst:{{{1}}}}}]] skill[[title subcategory is::{{lc:{{{1}}}}}| ]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{{3|highest}}} {{{1}}} skill| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{{3|highest}}} [[:Category:{{{1}}} skillset|{{ucfirst:{{{1}}}}}]] skill[[title subcategory is::{{lc:{{{1}}}}}| ]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{{3|highest}}} {{{1}}} skill| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|edged|blunt|bow=
|edged|blunt|bow=
: {{#switch:{{{n}}}|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{{3|highest}}} [[:Category:Weapon Skillset|{{ucfirst:{{{1}}}}} Weapons]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{{3|highest}}} {{ucfirst:{{{1}}}}} weapons| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} in {{{3|highest}}} [[:Category:Weapon skillset|{{ucfirst:{{{1}}}}} Weapons]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{{3|highest}}} {{ucfirst:{{{1}}}}} weapons| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|ability=
|ability=
: {{#switch:{{{n}}}|y=|''}}Must know {{#if:{{{2|}}}|[[{{#if:{{{3|}}}|{{{3}}}{{!}}}}{{{2}}}]][[requires ability::{{{2}}}| ]][[title subcategory is::{{lc:{{{2}}}}}| ]]|[[missing::title requirement|an unknown ability]]}}[[title subcategory is::ability| ]][[title requirement::Must know {{#if:{{{2|}}}|{{{2}}}|an unknown ability}}| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must know {{#if:{{{2|}}}|[[{{#if:{{{3|}}}|{{{3}}}{{!}}}}{{{2}}}]][[requires ability::{{{2}}}| ]][[title subcategory is::{{lc:{{{2}}}}}| ]]|[[missing::title requirement|an unknown ability]]}}[[title subcategory is::ability| ]][[title requirement::Must know {{#if:{{{2|}}}|{{{2}}}|an unknown ability}}| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|spell=
|spell=
: {{#switch:{{{n}}}|y=|''}}Must know the {{#if:{{{2|}}}|[[{{{2}}}]][[requires spell::{{{2}}}| ]][[title subcategory is::{{lc:{{{2}}}}}| ]]|[[missing::title requirement|an unknown]]}} spell[[title subcategory is::spell| ]][[title requirement::Must know the {{#if:{{{2|}}}|{{{2}}}|an unknown}} spell| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must know the {{#if:{{{2|}}}|[[{{{2}}}]][[requires spell::{{{2}}}| ]][[title subcategory is::{{lc:{{{2}}}}}| ]]|[[missing::title requirement|an unknown]]}} spell[[title subcategory is::spell| ]][[title requirement::Must know the {{#if:{{{2|}}}|{{{2}}}|an unknown}} spell| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|spellbook=
|spellbook=
: {{#switch:{{{n}}}|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:{{{n}}}|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:{{{n}}}|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:{{{n}}}|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:{{{n}}}|y=|''}}{{#if:{{{2|}}}|[[title requirement::Must be {{{3|at least}}} {{#switch:{{{2}}}|1|21|31|41|51|61|71|81|91|101|121|131|141={{{2}}}st|2|22|32|42|52|62|72|82|92|102|122|132|142={{{2}}}nd|3|23|33|43|53|63|73|83|93|103|123|133|143={{{2}}}rd|{{{2}}}th}} circle]]|Must be [[missing::title requirement|?]] circle}}[[title subcategory is::circle| ]].{{#switch:{{{n}}}|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=|''}}
|music=
|music=
: {{#switch:{{{n}}}|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} ranks in {{{3|total}}} [[:Category:Lore Skillset|music skills]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{{3|total}}} musical skills| ]][[title subcategory is::percussions| ]][[title subcategory is::strings| ]][[title subcategory is::vocals| ]][[title subcategory is::winds| ]].{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}At least {{#if:{{{2|}}}|{{{2}}}|[[missing::title requirement|?]]}} ranks in {{{3|total}}} [[:Category:Lore skillset|music skills]][[title requirement::At least {{#if:{{{2|}}}|{{{2}}}|?}} in {{{3|total}}} musical skills| ]][[title subcategory is::percussions| ]][[title subcategory is::strings| ]][[title subcategory is::vocals| ]][[title subcategory is::winds| ]].{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|race=
|race=
: {{#switch:{{{n}}}|y=|''}}Must be a {{#if:{{{2}}}|[[race association is::{{{2}}}]][[title requirement::Must be a {{{2}}}| ]]|?[[missing::title requirement| ]]}}.{{#switch:{{{n}}}|y=|''}}
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}Must be a {{#if:{{{2}}}|[[race association is::{{{2}}}]][[title requirement::Must be a {{{2}}}| ]]|?[[missing::title requirement| ]]}}.{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}
|other=
|other=
: {{#switch:{{{n}}}|y=|''}}{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}[[title requirement::{{{2}}} | ]]{{#switch:{{{n}}}|y=|''}}|?|
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}[[title requirement::{{{2}}} | ]]{{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}|?|
: {{#switch:{{{n}}}|y=|''}}{{#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>
: {{#switch:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}{{#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:{{lc:{{{newreq}}}}}|true|t|yes|y=|''}}}}}}</includeonly><noinclude>


A plug in for [[Template:Title]].
A plug in for [[Template:Title]].


==Usage Docmentation==
==Usage Docmentation==
'''NOTE:''' Do not attempt to imbed links in ANY of the text, except for the 3 variable of OTHER.
'''NOTE:''' Do not attempt to imbed links in ANY of the text, except for the 3rd variable of OTHER.
<pre>
<pre>
{{TitleReq|<skill>|<amount>| / less than}}
{{TitleReq|<skill>|<amount>| / less than}}

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|?}}