Template:Khri: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(added sturdier logic, a teach field)
Line 5: Line 5:
|-
|-
! width=30% style="background: #B9B59C;border-right: hidden;height: 35px"|
! width=30% style="background: #B9B59C;border-right: hidden;height: 35px"|
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden"|'''{{{name|Khri Infobox}}}'''
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden"|'''{{#if:{{{name|}}}|{{{name}}} Infobox|{{PAGENAME}} Infobox}}'''
! width=30% style="background:#B9B59C"| {{#ifeq: {{{special|}}} | yes | '''[S]''' }}
! width=30% style="background:#B9B59C"|{{#switch:{{lc:{{{special}}}|y|yes='''[S]'''}}
|-
|-
! style="text-align:left"|'''{{#ifeq: {{{combo|}}} | yes | Pillars: | Requirements:}}'''
! style="text-align:left"|'''{{#switch:{{lc:{{{combo}}}}}|y|yes=Pillars:|Requirements:}}'''
| colspan=2|{{{prereqs|}}}
| colspan=2|{{#if:{{{prereqs|}}}|{{{prereqs}}}|''Unknown''}}
|-
! style="text-align:left"|'''Teacher:'''
| colspan=2|{{#if:{{{teacher|}}}|{{{teacher}}}|''Unknown''}}
|-
|-
! style="text-align:left"|'''[[Concentration]] Cost:'''
! style="text-align:left"|'''[[Concentration]] Cost:'''
| colspan=2|{{{cost|}}}
| colspan=2|{{#if:{{{cost|}}}|{{{cost}}}|''Unknown''}}
|-
|-
! style="text-align:left"|'''Description:'''
! style="text-align:left"|'''Description:'''
| colspan=2|{{{desc|}}}
| colspan=2|{{#if:{{{desc|}}}|{{{desc}}}|''Unknown''}}
|-
|-
! style="text-align:left"|'''Effect:'''
! style="text-align:left"|'''Effect:'''
| colspan=2|{{{effect|}}}
| colspan=2|{{#if:{{{effect|}}}|{{{effect}}}|''Unknown''}}
|-
|-
! style="text-align:left"|'''Messaging:'''
! style="text-align:left"|'''Messaging:'''
| colspan=2|{{{messaging|}}}
| colspan=2|{{#if:{{{messaging|}}}|{{{messaging}}}|''Unknown''}}
|}<includeonly>[[Category:Khri]]{{#switch:{{lc:{{{combo}}}}}|y|yes=[[Category:Combination Khri]]|{{#if:{{{tree|}}}|[[Category:{{{tree}}} Tree]]}}{{#switch:{{lc:{{{special|}}}}}|y|yes=[[Category:Special Khri]]}}</includeonly><noinclude>
|}
<includeonly>
[[Category:Khri]]
{{#ifeq: {{{combo|}}} | yes | [[Category:Combination Khri]] | [[Category:{{{tree|}}} Tree]]}}
{{#ifeq: {{{special|}}} | yes | [[Category:Special Khri]]}}
</includeonly>
<noinclude>
This template provides an infobox for khri articles. Notes and commentary should be added on the individual spell articles via normal article editing.
This template provides an infobox for khri articles. Notes and commentary should be added on the individual spell articles via normal article editing.


==Usagage Documentation:==
==Usage==
{| border="1" cellpadding="3"
|-
!Variable!!Supported Values!!Usage
|-
|name|| ||Khri name if different from page name
|-
|prereqs|| ||Any prequisits to learn. Manually add links to other khris if needed
|-
|teacher|| ||What NPC(s) teach it. Manually add links.
|-
|cost|| ||The concentration cost to activate
|-
|desc|| ||The teaching NPC's description
|-
|effect|| ||What is the power's effects?
|-
|messaging|| ||The messaging shown when activated
|-
|tree|| ||What tree is the khri part of?
|-
|combo||y/yes/n/no||Is it a combination khri?
|-
|special||y/yes/n/no||Is it a special type of khri?
|}

When making a new khri article, copy the text below into the edit window and fill in the parameter values as appropriate.
When making a new khri article, copy the text below into the edit window and fill in the parameter values as appropriate.
<pre>
<pre>
{{khri
{{khri
|name=
|name=
|prereqs=
|prereqs= <!--links to other khris if needed-->
|teacher=
|cost=
|cost=
|desc=
|desc=
Line 42: Line 65:
|messaging=
|messaging=
|tree=
|tree=
|combo=yes/no
|combo=
|special=yes/no
|special=
}}
}}
</pre>[[Category:Templates|{{PAGENAME}}]]
</pre>[[Category:Templates|{{PAGENAME}}]]

Revision as of 16:31, 5 June 2008

Thief thumb.jpgThief Guild
Khri Infobox {{#switch:{{{special}}}
Requirements: Unknown
Teacher: Unknown
Concentration Cost: Unknown
Description: Unknown
Effect: Unknown
Messaging: Unknown

This template provides an infobox for khri articles. Notes and commentary should be added on the individual spell articles via normal article editing.

Usagage Documentation:

Variable Supported Values Usage
name Khri name if different from page name
prereqs Any prequisits to learn. Manually add links to other khris if needed
teacher What NPC(s) teach it. Manually add links.
cost The concentration cost to activate
desc The teaching NPC's description
effect What is the power's effects?
messaging The messaging shown when activated
tree What tree is the khri part of?
combo y/yes/n/no Is it a combination khri?
special y/yes/n/no Is it a special type of khri?

When making a new khri article, copy the text below into the edit window and fill in the parameter values as appropriate.

{{khri
|name=
|prereqs=
|teacher=
|cost=
|desc=
|effect=
|messaging=
|tree=
|combo=
|special=
}}