User talk:FeralKitty/Broadswipes

From Wildermyth Wiki
Revision as of 13:15, 17 September 2021 by FeralKitty (talk | contribs) (How might we keep pages up-to-date? Suggestions welcome!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)