User:Donni Iris/Sandbox/DPL Equipment: Difference between revisions
Donni Iris (talk | contribs) No edit summary |
Donni Iris (talk | contribs) added totals |
||
| Line 1: | Line 1: | ||
{| | {| | ||
|'''Equipment''' | |'''Equipment''' | ||
| Line 11: | Line 10: | ||
<hr> | <hr> | ||
<dpl> | |||
uses =Template:ITEM infobox | |||
category =Items/Armor | |||
titlematch =Yeti % | |||
include ={ITEM infobox}:basemods | |||
format ={| {{STDT}}¶!Equipment¶!Stats,¶|-¶|{{Item|%PAGE%}}¶|,,¶|-¶|TOTAL¶|¶{|¶|-¶|{{User:Donni Iris/Equipment/Yeti Armor/Stats total A}}«br»{{User:Donni Iris/Equipment/Yeti Armor/Stats total B}}¶|}¶|} | |||
</dpl> | |||
<!-- The commas are the most important part of the recipe here! (see below) | |||
{| {{STDT}} | |||
¶!Equipment | |||
¶!Stats | |||
, | |||
¶|- | |||
¶|{{Item|%PAGE%}} | |||
¶| | |||
,, | |||
¶|- | |||
¶|total | |||
¶| | |||
¶{| | |||
¶|- | |||
¶|stats total column A (here's where you could nest the dpl for the %PAGE% of the original...but from what pages? the stats are plugged into each template so horribly) | |||
¶|stats total column B | |||
¶|} | |||
¶|} | |||
--> | |||
<!-- | |||
{| {{STDT}} | |||
!Equipment | |||
!Stats | |||
|- | |||
|{{Item|Yeti Mask}} | |||
|stats 1 | |||
|- | |||
|{{Item|Yeti Stockings}} | |||
|stats 2 | |||
|- | |||
|total | |||
| | |||
{| | |||
|A | |||
|B | |||
|} | |||
|} | |||
--> | |||
<hr> | |||
<dpl> | <dpl> | ||
| Line 72: | Line 127: | ||
<hr> | <hr> | ||
Comma syntax (as used in dpl param <code>format</code>): <code>''Startall'',''Start'',''End'',''Endall''</code> | |||
''Startall'', ''Start'', ''End'' and ''Endall'' are wiki tags used to separate the list items. | |||
* ''Startall'' and ''Endall'' define an outer frame for the whole list. | |||
* ''Start'' and ''End'' build an inner frame for each article item. | |||
<hr> | |||
{| class="wikitable" | |||
|- | |||
! DPL escape character !! Mediawiki character!! Typical use | |||
|- | |||
| align=center | <code>'''»'''</code> || align=center | > || rowspan=2 | Call another MediaWiki extension into a parameter of a DPL call | |||
|- | |||
| align=center | <code>'''«'''</code> || align=center | < | |||
|- | |||
| align=center | <code>'''²{'''</code> || align=center | <nowiki>{{</nowiki> || rowspan=3 | Call a template within the 'article loop' of DPL. This is especially useful for nesting DPL calls (''DPL recursion'') | |||
|- | |||
| align=center | <code>'''}²'''</code> || align=center | <nowiki>}}</nowiki> | |||
|- | |||
| align=center | <code>'''¦'''</code> || align=center | <nowiki>|</nowiki> | |||
|- | |||
| align=center | <code>'''¶'''</code> || align=center | newline || rowspan=2 | Inserts a line break into DPL's wikitext output, to allow proper parsing of first-character syntax (such as <code>* # : ;</code>) | |||
|- | |||
| align=center | <code>'''\n'''</code> || align=center | newline | |||
|} | |||
Revision as of 16:58, 7 May 2026
| Equipment | Total Bonus | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} [[Expression error: Unrecognized punctuation character "{".]] |
http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} [[Expression error: Unrecognized punctuation character "{".]] |
http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} [[Expression error: Unrecognized punctuation character "{".]] |
http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} [[Expression error: Unrecognized punctuation character "{".]] |
http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} [[Expression error: Unrecognized punctuation character "{".]] |
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_101.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Max Armor| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+198 {{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_105.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Health from Combat Refresh Abilities| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+128 {{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_105.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Armor from Combat Refresh Abilities| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+16 {{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_105.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Power from Combat Refresh Abilities| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+114 |
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_103.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Max Power| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+5 {{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_106.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Cold Damage Reduction| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+5 {{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_108.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Max Body Heat Points (In Cold Environments)| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+20 {{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_106.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Indirect Damage Reduction| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}+2 | |
<dpl>
uses =Template:ITEM infobox
category =Items/Armor
titlematch =Yeti %
include ={ITEM infobox}:basemods
format ={| class=" table"¶!Equipment¶!Stats,¶|-¶|
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }}¶|,,¶|-¶|TOTAL¶|¶{|¶|-¶|
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_101.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Max Armor| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_105.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Health from Combat Refresh Abilities| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_105.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Armor from Combat Refresh Abilities| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_105.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Power from Combat Refresh Abilities| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}«br»
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_103.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Max Power| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_106.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Cold Damage Reduction| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_108.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Max Body Heat Points (In Cold Environments)| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}
{{ #replace: http://cdn.projectgorgon.com/v461/icons/icon_106.png | http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png | Error: Attribute not found }} {{ #replace:Indirect Damage Reduction| http://cdn.projectgorgon.com/v461/icons/icon_Error: Attribute not found.png |
Error: Attribute not found }}¶|}¶|}
</dpl>
<dpl>
uses =Template:ITEM infobox
category =Items/Armor
titlematch =Yeti %
include ={ITEM infobox}:basemods
format ={| class=" table"¶!Equipment¶!Stats,¶|-¶|
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }}¶|,,¶|}
</dpl>
<dpl>
uses =Template:ITEM infobox
category =Items/Armor
titlematch =Yeti %
include ={ITEM infobox}:name:basemods
table =,Name,Icon,Stats
</dpl>
<dpl>
category =Items/Armor
titlematch =Yeti %
include =
format =,
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }},
</dpl>
Comma syntax (as used in dpl param format): Startall,Start,End,Endall
Startall, Start, End and Endall are wiki tags used to separate the list items.
- Startall and Endall define an outer frame for the whole list.
- Start and End build an inner frame for each article item.
| DPL escape character | Mediawiki character | Typical use |
|---|---|---|
» |
> | Call another MediaWiki extension into a parameter of a DPL call |
« |
< | |
²{ |
{{ | Call a template within the 'article loop' of DPL. This is especially useful for nesting DPL calls (DPL recursion) |
}² |
}} | |
¦ |
| | |
¶ |
newline | Inserts a line break into DPL's wikitext output, to allow proper parsing of first-character syntax (such as * # : ;)
|
\n |
newline |