Template:Equipment: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
{{Equipment
{{Equipment
| Name = {{subst:FULLPAGENAME}}
| Name = {{subst:FULLPAGENAME}}
| URL-Name = {{subst:PAGENAMEE}}
 
| Cost =  
| Cost=<onlyinclude>{{#ifeq:{{{transcludesection|Cost}}}
| Weight =
| Cost|
}}</onlyinclude>
 
| Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}}
| Weight|
}}</onlyinclude>
 
| Description =  
| Description =  
| ShortDesc =  
 
| Craft-Skill =  
| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| Craft-DC =  
| ShortDesc|
| Craft-Notes =  
}}</onlyinclude>
 
| Craft-Skill=<onlyinclude>{{#ifeq:{{{transcludesection|Craft-Skill}}}
| Craft-Skill|
}}</onlyinclude>
 
| Craft-DC=<onlyinclude>{{#ifeq:{{{transcludesection|Craft-DC}}}
| Craft-DC|
}}</onlyinclude>
 
| Craft-Notes=<onlyinclude>{{#ifeq:{{{transcludesection|Craft-Notes}}}
| Craft-Notes|
}}</onlyinclude>
 
}}
}}
</pre>
</pre>
Note that "Craft-Skill", "Craft-DC", and "Craft-Notes" are optional fields.  
Note that "Craft-Skill", "Craft-DC", and "Craft-Notes" are optional fields.  
{{#cargo_declare:
 
_table = Equipment
| Name = string
| URL-Name = page
| Cost = string
| Weight = integer
| ShortDesc = string
| Craft-Skill = string
| Craft-DC = integer
| Craft-Notes = string
}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:
[[Category:Equipment]]
_table = Equipment
==={{{Name}}}===
| Name = {{{Name|}}}
| URL-Name = {{{URL-Name}}}
| Cost = {{{Cost|}}}
| Weight = {{{Weight|0.1}}}
| ShortDesc = {{{ShortDesc|}}}
| Craft-Skill = CONCAT( '[[Profession|Profession (', {{{Craft-Skill}}}, ')]]' )
| Craft-DC = {{{Craft-DC|}}}
| Craft-Notes = {{{Craft-Notes|}}}
}}[[Category:Equipment]]
<h3>{{{Name|Name}}}<span class=plainlinks style="font-size:80%; font-weight:normal; padding-right:5;">&nbsp;&nbsp;&#91;[https://www.epicpath.org/index.php?title={{{URL-Name|Name}}}&action=edit edit]&#93;</span></h3>
:* '''Cost:''' {{{Cost|0 gp}}}
:* '''Cost:''' {{{Cost|0 gp}}}
:* '''Weight:''' {{{Weight|0.1}}} lbs.
:* '''Weight:''' {{{Weight|0.1}}} lbs.
Line 43: Line 42:
{{{Description|This item has no description.}}}
{{{Description|This item has no description.}}}


:* '''Crafting:''' {{#if: {{{Craft-Skill|}}}|[[Profession|Profession ({{{Craft-Skill}}})]] (DC {{{Craft-DC|10}}}){{#if:{{{Craft-Notes|}}}|&#59; requires {{{Craft-Notes|}}}|}}|Not craftable.}}
:* '''Crafting:''' {{#if: {{{Craft-Skill|}}}|[[Profession|Profession ({{{Craft-Skill}}})]] (DC {{{Craft-DC|15}}}){{#if:{{{Craft-Notes|}}}|&#59; requires {{{Craft-Notes|}}}|}}|Not craftable.}}
</includeonly>
</includeonly>

Revision as of 21:19, 12 January 2018

This template holds information on equipment, goods and services.

{{Equipment
| Name = {{subst:FULLPAGENAME}}

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

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

| Description = 

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

| Craft-Skill=<onlyinclude>{{#ifeq:{{{transcludesection|Craft-Skill}}}
| Craft-Skill| 
}}</onlyinclude>

| Craft-DC=<onlyinclude>{{#ifeq:{{{transcludesection|Craft-DC}}}
| Craft-DC| 
}}</onlyinclude>

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

}}

Note that "Craft-Skill", "Craft-DC", and "Craft-Notes" are optional fields.