Using Templates: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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. | 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. | ||
Revision as of 17:50, 11 September 2018
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.
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
{{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> | Pariah=<onlyinclude>{{#ifeq:{{{transcludesection|Pariah}}} | Pariah| }}</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, 1Round, Combat, Encounter, Day, 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=<onlyinclude>{{#ifeq:{{{transcludesection|Description}}} | Description| }}</onlyinclude> | 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.
{{Template: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).
This is pretty advanced stuff, so feel free to just defer such situations to Reese. Send him an email or something.
Here's an example of the template in use (inside the "Description" parameter):
{{Template:Spell|Links=[[Bard Spells]] \ [[Cleric Spells]] \ [[Druid Spells]] \ [[Sorcerer/Wizard Spells]] |School=divination |Level=bard 0, cleric 0, druid 0, sorcerer/wizard 0 |CastTime=1 standard action |Components=V, S |Range=60 ft. |Target=cone-shaped emanation |Duration=concentration, up to 1 min/lvl (D) |Save=none |SR=no |Description=You detect magical auras. The amount of information revealed depends on how long you study a particular area or subject. : ''1st Round:'' Presence or absence of magical auras. : ''2nd Round:'' Number of different magical auras and the power of the most potent aura. : ''3rd Round:'' The strength and location of each aura. If the items or creatures bearing the auras are in line of sight, you can make [[Knowledge (Arcana)]] skill checks to determine the school of magic involved in each. (Make one check per aura: DC 10 + 4x spell level, or 10 + 2x caster level for a non-spell effect.) If the aura emanates from a magic item, you can attempt to identify its properties (see [[Spellcraft]]). Magical areas, multiple types of magic, or strong local magical emanations may distort or conceal weaker auras. : ''Aura Strength:'' An aura's power depends on a spell's functioning spell level or an item's caster level; see the accompanying table. If an aura falls into more than one category, detect magic indicates the stronger of the two. {{#!: :{| border="1" cellpadding="5" style="text-align:center" |- style="Background:LightBlue" ! rowspan="2" align="left" | Spell or Object || colspan="4" | Aura Power |- style="Background:LightBlue" ! Faint || Moderate || Strong || Overwhelming |- | align="left" | Functioning spell (spell level) || 3rd or lower || 4th-6th || 7th-9th || 10th+ (epic) |- style="Background:WhiteSmoke" | align="left" | Magic item (caster level) || 5th or lower || 6th-11th || 12th-20th || 21st+ (epic or artifact) |} }} : ''Lingering Aura:'' A magical aura lingers after its original source dissipates (in the case of a spell) or is destroyed (in the case of a magic item). If detect magic is cast and directed at such a location, the spell indicates an aura strength of dim (even weaker than a faint aura). How long the aura lingers at this dim level depends on its original power: {{#!: :{| border="1" cellpadding="5" style="text-align:center" |- style="Background:LightBlue" ! align="left" | Original Strength || Duration of Lingering Aura |- | align="left" | Faint || 1d6 rounds |- style="Background:WhiteSmoke" | align="left" | Moderate || 1d6 minutes |- | align="left" | Strong || 1d6x10 minutes |- style="Background:WhiteSmoke" | align="left" | Overwhelming || 1d6 days |} }} Outsiders and elementals are not magical in themselves, but if they are summoned, the conjuration spell registers. Each round, you can turn to detect magic in a new area. The spell can penetrate barriers, but 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt blocks it. }}
You can see the resulting page here: Detect Magic (Spell). Note the two tables in the description section were surrounded with the {{#!: and }} markups, to exclude the table code from being parsed as part of the Spell template's schema.