User talk:FeralKitty/Broadswipes

From Wildermyth Wiki
Revision as of 17:35, 21 September 2021 by FeralKitty (talk | contribs) (Self-maintaining pages will limit what we might arbitrarily explain within the tooltip.)

What I hope is for different types of pages to be (more) self-maintained by using (pre-processed*) information from the json/properties files.

For example, descriptions, tooltips, damage formulas, etc. could be up-to-date, as updates get released, by using templates instead of hardcoding the description or tooltip:

{{Description|Broadswipes}}
{{Tooltips|Broadswipes}}
{{Formulas|Broadswipes}}
== Upgrade ==
{{Description|Broadswipes+}}
{{Tooltips|Broadswipes+}}
{{Formulas|Broadswipes+}}

* How this could be done (pre-processing)

  • All-in-one approach: some key/value hash or switch statement or 'grep' that pulls the corresponding info from a single description file.
    • Update one file with all the descriptions, each time an update is released.
  • Subpages: [[Broadswipes/description]] with description for Broadswipes, and the page (or template) simply transcludes the description.
    • Pre-processing updates hundreds of files via bot.
    • Needs Main space sub-pages enabled.

Where might these files reside?

  • Outside the wiki, and we use a widget?
    • More overhead
    • Less familiar to wiki contributors
  • Within the wiki, and we use templates and/or subpages.

Do we even pre-process files?

  • Yes. Less overhead each time page is viewed.
  • No. Extract data from the json and reformat, each time.
  • Cache. Extract data from the json and reformat, once, then cache result.

All these approaches require different amounts of time, and if something breaks, who fixes it?

Off the top of my head, I'd say that pre-processing once, then keeping data inside the wiki, is the more reliable approach, and would let any contributor fix an issue by editing the template or subpage.

A related categorization goal

Make it easier or possible to see which abilities use potency, bonus damage, etc.

What other approaches or improvements would you suggest, to help keep pages up-to-date, consistent, and/or useful? FeralKitty (talk) 13:15, 17 September 2021 (PDT)

Avoid adding ", minimum 1"

In order for the pages to be self-maintaining as damage/formulas change, we would need to avoid arbitrarily adding comments to the damage line. E.g., x damage, minimum 1. This is probably fine, since (A) it mirrors the game tooltip (which doesn't mention that the ability does minimum damage), and (B) the collapsed formula contains that detail. --FeralKitty (talk) 18:34, 21 September 2021 (PDT)