Using Templates: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:


Please do not make changes to the Template pages without consulting me. If you have any questions about this, please ask me.
Please do not make changes to the Template pages without consulting me. If you have any questions about this, please ask me.
== Magic Items ==
<pre>
{{MagicItem
| Name=<onlyinclude>{{#ifeq:{{{transcludesection|Name}}}
| Name|
}}</onlyinclude>
| URL=<onlyinclude>{{#ifeq:{{{transcludesection|URL}}}
| URL| {{Subst:PAGENAMEE}}
}}</onlyinclude>
| Family-Name=<onlyinclude>{{#ifeq:{{{transcludesection|Family-Name}}}
| Family-Name|
}}</onlyinclude>
| Slot=<onlyinclude>{{#ifeq:{{{transcludesection|Slot}}}
| Slot|
  <!--  Armor, Belt, Body, Chest, Eyes, Feet, Hands, Head, Headband, Neck, Rings, Shoulders, Wrists
        Weapon, Rod, Staff, Wand, Shield, Slotless, Consumable                                                -->
}}</onlyinclude>
| Image=<onlyinclude>{{#ifeq:{{{transcludesection|Image}}}
| Image|
}}</onlyinclude>
| Caption=<onlyinclude>{{#ifeq:{{{transcludesection|Caption}}}
| Caption|
}}</onlyinclude>
| Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}}
| Aura|
  <!--  Abjuration, Conjuration, Enchantment, Evocation, Illusion, Necromancy, Transmutation, Divination
        Strength of aura (weak, moderate, strong, overwhelming) auto-calculated from Creator Level (CL)        -->
}}</onlyinclude>
| CL=<onlyinclude>{{#ifeq:{{{transcludesection|CL}}}
| CL|
  <!--  'Creator Level' value: 1 to 40                                                                        -->
}}</onlyinclude>
| Nudge-Price=<onlyinclude>{{#ifeq:{{{transcludesection|Nudge-Price}}}
| Nudge-Price|
  <!--  Multiplies base price by this value.  1 does nothing, but 1.25 increases base price by 25%.            -->
}}</onlyinclude>
| Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}}
| Weight|
  <!-- Just a number or decimal; "lbs" added automatically.  Minimum weight is 0.1.                          -->
}}</onlyinclude>
| Family-Desc=<onlyinclude>{{#ifeq:{{{transcludesection|Family-Desc}}}
| Family-Desc|
  <!--  This text describes all items in the same family, and should be cut and pasted across all such items  -->
}}</onlyinclude>
| Item-Desc=<onlyinclude>{{#ifeq:{{{transcludesection|Item-Desc}}}
| Item-Desc|
  <!--  This text describes what this specific item does, and any color text specific only to this item        -->
}}</onlyinclude>
| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>
}}
</pre>


==Transmog Lists==
==Transmog Lists==

Revision as of 17:42, 23 March 2019

Templates offer a means of ensuring the formatting and spacing of each page is uniform, when those pages share a common set of characteristics. Several templates have been developed for the Epic Path wiki to make inputting these data easier for everyone. This page provides the appropriate schemas to use when using these templates.

Please do not make changes to the Template pages without consulting me. If you have any questions about this, please ask me.


Magic Items

{{MagicItem

| Name=<onlyinclude>{{#ifeq:{{{transcludesection|Name}}}
| Name| 
}}</onlyinclude>

| URL=<onlyinclude>{{#ifeq:{{{transcludesection|URL}}}
| URL| {{Subst:PAGENAMEE}}
}}</onlyinclude>

| Family-Name=<onlyinclude>{{#ifeq:{{{transcludesection|Family-Name}}}
| Family-Name| 
}}</onlyinclude>

| Slot=<onlyinclude>{{#ifeq:{{{transcludesection|Slot}}}
| Slot| 
  <!--  Armor, Belt, Body, Chest, Eyes, Feet, Hands, Head, Headband, Neck, Rings, Shoulders, Wrists
        Weapon, Rod, Staff, Wand, Shield, Slotless, Consumable                                                 -->
}}</onlyinclude>

| Image=<onlyinclude>{{#ifeq:{{{transcludesection|Image}}}
| Image| 
}}</onlyinclude>

| Caption=<onlyinclude>{{#ifeq:{{{transcludesection|Caption}}}
| Caption| 
}}</onlyinclude>

| Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}}
| Aura| 
  <!--  Abjuration, Conjuration, Enchantment, Evocation, Illusion, Necromancy, Transmutation, Divination
        Strength of aura (weak, moderate, strong, overwhelming) auto-calculated from Creator Level (CL)        -->
}}</onlyinclude>

| CL=<onlyinclude>{{#ifeq:{{{transcludesection|CL}}}
| CL| 
  <!--  'Creator Level' value: 1 to 40                                                                         -->
}}</onlyinclude>

| Nudge-Price=<onlyinclude>{{#ifeq:{{{transcludesection|Nudge-Price}}}
| Nudge-Price| 
  <!--  Multiplies base price by this value.  1 does nothing, but 1.25 increases base price by 25%.            -->
}}</onlyinclude>

| Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}}
| Weight| 
  <!-- Just a number or decimal; "lbs" added automatically.   Minimum weight is 0.1.                           -->
}}</onlyinclude>

| Family-Desc=<onlyinclude>{{#ifeq:{{{transcludesection|Family-Desc}}}
| Family-Desc| 
  <!--  This text describes all items in the same family, and should be cut and pasted across all such items   -->
}}</onlyinclude>

| Item-Desc=<onlyinclude>{{#ifeq:{{{transcludesection|Item-Desc}}}
| Item-Desc| 
  <!--  This text describes what this specific item does, and any color text specific only to this item        -->
}}</onlyinclude>

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc| 
}}</onlyinclude>

}}


Transmog Lists

Displays one or more lists of CR templates for the 6 various kinds of transmogged foundational blueprints:

{{Transmog-Lists
| Natural-Only = 
| Melee-Only = 
| Natural-With-Weak-Ranged = 
| Melee-With-Weak-Ranged = 
| Natural-With-Strong-Ranged = 
| Melee-With-Strong-Ranged = 
}}


Targets

{{targets|x}}

Where "x" is one of the following options:

  • 0 = One target creature per 10 caster levels (drop fractions; max 3 at level 30)
  • 1 = One target creature
  • 2 = One target creature, plus one per 20 caster levels (drop fractions; max 2 at level 20)
  • 3 = One target creature, plus one per 15 caster levels (drop fractions; max 3 at level 30)
  • 4 = One target creature, plus one per 10 caster levels (drop fractions; max 4 at level 30)
  • 5 = Two target creatures, plus one per 10 caster levels (drop fractions; max 5 at level 30)
  • aoe = All creatures in target area (friend or foe)

For example, {{targets|2}} yields "one target creature, plus one per 20 character levels (drop fractions; max 2 at level 20)".

Circle Damage

{{circle|8}} as {{dmg|cold}}
produces "(Circle 8 damage): 1d6+3 points of damage per character level (max 21d6+63 at character level 21) as cold (energy, common)".

Dmg-Type

To define a new damage type, use:

{{Dmg-Type

| Type=<onlyinclude>{{#ifeq:{{{transcludesection|Type}}}
| Type|
  <!-- Values: energy, physical -->
}}</onlyinclude>

| Abundance=<onlyinclude>{{#ifeq:{{{transcludesection|Abundance}}}
| Abundance|
  <!-- Values: common, uncommon, rare -->
}}</onlyinclude>

| Description=<onlyinclude>{{#ifeq:{{{transcludesection|Description}}}
| Description|
}}</onlyinclude>

}}

Spell Template

{{Spell

<!-- Spell Level -->
<!-- Values: Integer (spell level if castable) or leave blank (if not available to listed class) -->
| Alchemist=<onlyinclude>{{#ifeq:{{{transcludesection|Alchemist}}}
| Alchemist|
}}</onlyinclude>

| Bard=<onlyinclude>{{#ifeq:{{{transcludesection|Bard}}}
| Bard|
}}</onlyinclude>

| Cleric=<onlyinclude>{{#ifeq:{{{transcludesection|Cleric}}}
| Cleric|
}}</onlyinclude>

| Druid=<onlyinclude>{{#ifeq:{{{transcludesection|Druid}}}
| Druid|
}}</onlyinclude>

| Paladin=<onlyinclude>{{#ifeq:{{{transcludesection|Paladin}}}
| Paladin|
}}</onlyinclude>

| Ranger=<onlyinclude>{{#ifeq:{{{transcludesection|Ranger}}}
| Ranger|
}}</onlyinclude>

| Sorcerer/Wizard=<onlyinclude>{{#ifeq:{{{transcludesection|Sorcerer/Wizard}}}
| Sorcerer/Wizard|
}}</onlyinclude>

| School=<onlyinclude>{{#ifeq:{{{transcludesection|School}}}
| School|
}}</onlyinclude>

| CastTime=<onlyinclude>{{#ifeq:{{{transcludesection|CastTime}}}
| CastTime|
  <!-- Values: Immediate, Standard, FullRound (full round), Ritual, or anything else. -->
}}</onlyinclude>

| Components=<onlyinclude>{{#ifeq:{{{transcludesection|Components}}}
| Components|
}}</onlyinclude>

| Range=<onlyinclude>{{#ifeq:{{{transcludesection|Range}}}
| Range|
  <!-- Values: Self, Touch, Close, Medium, Long, or anything else -->
}}</onlyinclude>

| Target=<onlyinclude>{{#ifeq:{{{transcludesection|Target}}}
| Target|
}}</onlyinclude>

| Duration=<onlyinclude>{{#ifeq:{{{transcludesection|Duration}}}
| Duration|
  <!-- Values: Instant, Concentration, 1Round, Combat, Encounter, Day, Moon, Year, or anything else -->
}}</onlyinclude>

| Save=<onlyinclude>{{#ifeq:{{{transcludesection|Save}}}
| Save|
  <!-- Values: None, 
       FortHalf, FortNegates, HFortHalf (for "Harmless (Fort for half damage)"), HFortNegates, 
       ReflHalf, ReflNegates, HReflHalf, HReflNegates, 
       WillHalf, WillNegates, HWillHalf, HWillNegates, or anything else 
   -->
}}</onlyinclude>

| Save-DC=<onlyinclude>{{#ifeq:{{{transcludesection|Save-DC}}}
| Save-DC|
  <!-- Values: None, Weak, Strong, Hybrid, or anything else -->
}}</onlyinclude>

| Lays-Charge=<onlyinclude>{{#ifeq:{{{transcludesection|Lays-Charge}}}
| Lays-Charge|
  <!-- Values: Y, or leave blank -->
}}</onlyinclude>

| Lays-Dual-Charge=<onlyinclude>{{#ifeq:{{{transcludesection|Lays-Dual-Charge}}}
| Lays-Dual-Charge|
  <!-- Values: Y, or leave blank -->
}}</onlyinclude>

| Charge-Notes=<onlyinclude>{{#ifeq:{{{transcludesection|Charge-Notes}}}
| Charge-Notes|
}}</onlyinclude>

| SR=<onlyinclude>{{#ifeq:{{{transcludesection|SR}}}
| SR|
  <!-- Values: Y, or leave blank -->
}}</onlyinclude>

| Description = 

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

| Reviewed=<onlyinclude>{{#ifeq:{{{transcludesection|Reviewed}}}
| Reviewed|
<!-- Values: N (not reviewed) or Y (reviewed); blank defaults to "N" -->
}}</onlyinclude>

}}

Skill Use Template

This template is used multiple times on each skill page, to detail each way the skill may be used.

{{SkillUse

| Skill-Use = 

| Core-Skill = 

| Benefit = 

| Action = 

| DC = 

| Modifiers = 

| Take10-Take20 = 

| Assist = 

| Success = 

| Failure = 

| Retry = 

| Provokes = 

}}

Magic Property Template

{{Magic Property

<!-- Enchantable On:-->
| Melee Weapons = 
| Ranged Weapons = 
| Implements = 
| Armor = 
| Shields = 

| Limitations = 
<!-- e.g. "bludgeoning only"-->

| PlusCost=<onlyinclude>{{#ifeq:{{{transcludesection|PlusCost}}}
| PlusCost|
}}</onlyinclude>

| Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}}
| Aura|
}}</onlyinclude>

| CL=<onlyinclude>{{#ifeq:{{{transcludesection|CL}}}
| CL|
}}</onlyinclude>

| Weight = -

| IsEpic = 

| Description = 

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

| Components = 

}}

Rage Power Template

{{Template:Rage Power

| Name = 

| Type = 

| Mien=<onlyinclude>{{#ifeq:{{{transcludesection|Mien}}}
| Mien|
}}</onlyinclude>

| MinLvl=<onlyinclude>{{#ifeq:{{{transcludesection|MinLvl}}}
| MinLvl|
}}</onlyinclude>

| Prereqs=<onlyinclude>{{#ifeq:{{{transcludesection|Prereqs}}}
| Prereqs|
}}</onlyinclude>

| Fury=<onlyinclude>{{#ifeq:{{{transcludesection|Fury}}}
| Fury|
}}</onlyinclude>

| Benefit = 

| Addtl-Fury = 

| Prog1 = 

| Prog2 = 

| Prog3 = 

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

}}

Fighter Tactic Template

{{Template:Tactic

| Prerequisites=<onlyinclude>{{#ifeq:{{{transcludesection|Prerequisites}}}
| Prerequisites|
}}</onlyinclude>

| Benefit=

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

}}

Rogue Talent Template

{{Template:Talent

| Category=[[Category:Ruthless Rogue Talents]] [[Category:Cunning Rogue Talents]] [[Category:Sneak Attack Talents]]

| Type=<onlyinclude>{{#ifeq:{{{transcludesection|Type}}}
| Type|
}}</onlyinclude>

| Prerequisites=<onlyinclude>{{#ifeq:{{{transcludesection|Prerequisites}}}
| Prerequisites|
}}</onlyinclude>

| Benefit=

| Cunning=<onlyinclude>{{#ifeq:{{{transcludesection|Cunning}}}
| Cunning|
}}</onlyinclude>

| Ruthless=<onlyinclude>{{#ifeq:{{{transcludesection|Ruthless}}}
| Ruthless|
}}</onlyinclude>

| SneakAtk=<onlyinclude>{{#ifeq:{{{transcludesection|SneakAtk}}}
| SneakAtk|
}}</onlyinclude>

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

}}
  • Category: delete any which aren't applicable. Use Cunning and Ruthless only if the talent grants a special benefit to that path. Use sneak attack only if the talent cannot be combined with other sneak attack-modifying talents.
  • Type: values are "Ex," "Su" and "Sp" (Extraordinary, Supernatural and Spell-Like).
  • Ruthless: value is "Y" or blank; use if the talent offers a special benefit to ruthless rogues.
  • Cunning: value is "Y" or blank; use if the talent offers a special benefit to cunning rogues.
  • SneakAtk: value is "Y" or blank; use if the talent modifies sneak attack and cannot be combined with other sneak attack-modifying talents.

For an example, see Acrobatic Charge.

Simple Weapon Template

{{Template:SimpleWeapon

| Name = 

| Image = 

| FlavorText = 

| Type = 

| Cost = 

| TinyDmg = 

| SmallDmg = 

| MedDmg = 

| LgDmg = 

| Crit = 

| Range = 

| Weight = 

| DamageType = 

| Quality1 = 
| Quality2 = 
| Quality3 = 
| Quality4 = 
| Quality5 = 
| Quality6 = 
| Quality7 = 
| Quality8 = 
| Quality9 = 

| Description = 

}}


Feats Template

To input new feats, or update the page contents of existing feats, please use the following schema:

{{Template:Feats
| Category=

| Flavor=

| Prerequisites=<onlyinclude>{{#ifeq:{{{transcludesection|Prerequisites}}}
| Prerequisites|
}}</onlyinclude>

| Benefit=

| LevelInc=<onlyinclude>{{#ifeq:{{{transcludesection|LevelInc}}}
| LevelInc|
}}</onlyinclude>


| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

}}
  • Category: The template will put every feat into the [[Category:Epic Path]] and [[Category:Feats]] category, but if you want to add additional categories (in particular, categories for character classes which pertain directly to the feats, please do so. Note that you do not need to include spaces between the categories, nor should you add line breaks. Here's a list of commonly used categories, in case you need them:
[[Category:Metamagic Feats]][[Category:Bard]][[Category:Cleric]][[Category:Druid]][[Category:Paladin]][[Category:Sorcerer]][[Category:Wizard]]

[[Category:Teamwork Feats]]
[[Category:Epic Feats]]

[[Category:Alchemist]]
[[Category:Barbarian]]
[[Category:Brawler]]
[[Category:Fighter]]
[[Category:Monk]]
[[Category:Prowler]]
[[Category:Ranger]]
[[Category:Rogue]]
[[Category:Warlord]]
  • Flavor: Use this section to put any flavor text the feat may have. The template will automatically change the text to italics.
  • Prerequisites: Use this section to input any prerequisites (duh!). Ideally, any specific level requirement, or the requirement with the highest implied level should come first in the list. If a feat has no prerequisites, make sure to put "None" in this section.
  • Benefit: In addition to pasting the feat's effects into this section, additional information like Special, Normal and Level Increase (metamagic feats only) should be pasted into this section, when present. Note that, while the Benefit: text is supplied to the page from the template, additional sections like Special: will have to be made bold manually after pasting it into the section.

Here's an example of a filled out schema:

{{Template:Feats
| Category=

| Flavor=You are skilled at attacking opponents that you cannot clearly perceive.

| Prerequisites=<onlyinclude>{{#ifeq:{{{transcludesection|Prerequisites}}}
| Prerequisites|[[Perception]] 10 ranks
}}</onlyinclude>

| Benefit=In melee, you ignore all miss chances from any source.

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|Ignore miss chances in combat
}}</onlyinclude>
}}

You can see the resulting page here: Blind-Fight. Note that no additional categories were added (since the feat could be taken by anyone), so the section was left blank. Also note the Normal: and Special: sections were manually added as part of the contents of the "Benefit=" section of the schema.

Advanced: Exclusion Template

If you are comfortable using the templates, and also comfortable creating tables and other complex(-ish) wiki techniques, the Exclusion template can be very helpful to avoid having special wiki text interpreted as part of the template's own schema. In particular, trying to put a table inside of a schema parameter will cause the template to behave oddly.

To avoid this, whenever you are using wiki markup that includes the "|" character (such as tables), you will need to surround the entire table's code with the following template: "{{#!:" in front of the code, and "}}" after the code (do not include the quotes). Example (assume all of this is inside a template, within the value of a particular parameter of that template):

{{#!:
{| class="ep-default"
|-
! Level || Benefit 
|-
| 1 || candy
|-
| 2 || 1d4 insects (live)
|}
}}

Another use of this template is when you want to include special formatting inside of a template parameter:

{{#!:
::* Example: Your Text Here
}}