Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
User:Faltout/SandBox/Add
Usage[edit]
Pass parameters with a prefix given in the parameter {{{prefix|x}}}
(needs to not be a prefix of "prefix"), and the template will add them. If no prefix is given, all parameters will be added.
Example: {{User:Faltout/SandBox/Add |prefix=x |x1=1 |xqwerty=2 |x2=3 |x3= |other=100}}
6
Empty parameters count as 0, parameters not starting with x are not added. If a parameter starting with x contains characters not recognised as numbers by {{#expr}}, then {{#expr}} will throw an error.
You can also provide a template that will take the values of the parameters and translate them into numbers. The template specified in {{{template}}}
will be given one parameter and will be expected to produce a number.
Example: {{User:Faltout/SandBox/Add |prefix=hello |template=IO |hello1=yes |hello2=no |hello3=false |hello4=true}}
2