Toggle menu
1.3K
1.7K
695
23.9K
Veloren Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template talk:Infobox npc

Discussion page of Template:Infobox npc

Changelog of revision 18253

  • Parameters without an assigned value are now hidden from the infobox.
  • Removed the parameters related to item and drop chances. The current approach in NPC pages is to call the Lua module "loot tables", where all of this information is unified. It also prevents having an unnecessary large infobox.
  • The "damage" parameter has been marked as deprecated. In my opinion, it makes more sense to collect and display damage values for each of the NPC's attacks separately. People usually create an "Attacks" section within the page, where this data is more suitable and fine-grained.
  • Added the "healthPoints" parameter.
  • Modified the data used by the TemplateData extension.
    • All parameters are now marked as optional.
    • Some parameters now have suggested values.
    • Modified the labels and descriptions of the parameters to improve readibility.
    • Added example values to many parameters.
    • The "aggressive" parameter is now of type boolean. The visual editor now displays it as a checkbox (true/false) -- It is false by default. It is backwards compatible with previous string values (yes/no).
    • Changed the parameter order.

An improvement in my to-do list is to use a Lua module to implement the logic required for the "Statistics" and the "Technical Information" table row headers to be hidden when none of their parameters are defined. Walpo (talk) 21:59, 10 February 2023 (UTC)

Thank a lot for your help

  • i will try to learn the parameters you used. :)
  • Does the infobox create this error ? "Pages with non-numeric formatnum arguments"

--Ajima (talk) 20:59, 21 July 2023 (UTC)

Tamability?

Maybe it would be useful to add a boolean parameter "Tamable", so every npc would have info whether it can be tamed or not.

Let's do that

Good idea ! Done, you can check the box. Here is the result. (I will add a link to tamable creature later) : https://wiki.veloren.net/wiki/Antelope --Ajima (talk) 12:38, 24 July 2023 (UTC)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.