User:Mattamue

From Arelith Wiki
Jump to: navigation, search

Prefixindex one way

SettingSetting-specific deitiesShadow Weave
Shadowdancer Class FeatsShaman Class Feats
Shaman SpellsSlashing WeaponsSmithing
Sorcerer SpellsSpell SchoolsSpells
Spells by ClassSpellsword Class Feats
Spellsword SpellsStorm Domain SpellsStrength Domain Spells
Suffering Domain SpellsSummoningSun Domain Spells
Swashbuckler Class FeatsSwashbuckler Epic Bonus Feats

Prefixindex another way

Spell SchoolsSpells
Spells by ClassSpellsword Class FeatsSpellsword Spells


API stuff

Concepts

  • &action=query > &list=categorymembers > &cmtitle=Category:Spells
    • Seems to have better sorting than generator
    • Creates a "cateogrymembers" sub-heading under the query
    • Creates a list of the category members identified in the &cmtitle= parameter
    • Doesn't update the details of those members based on query > &prop= parameters
    • Has its own &cmprop= sub-property parameter to see more under each entry in the categorymembers section, more limited than &prop=
    • &cmprop= is more focused on sorting the results: &cmprop=ids|title|sortkey|sortkeyprefix|type|timestamp
  • &action=query > &generator=categorymembers > &gcmtitle=Category:Spells
    • Doesn't create a seperate sub-heading under the query
    • Replaces any &titles= pages that would normally show up as pages > 0, 1, 2, etc... under the query
    • Essentially passes each page in the &gcmtitle= category page into the pages > 0, 1, 2, etc..., creating unique entries for each page under the query as if all the pages had been passed
    • Since it just "populates" all the pages under the query, it does capture query > &prop=transcludedin|templates|revisions|redirects|etc... parameters across the whole generated list of pages
    • Does also have its own &cmprop= which is smaller and also seems to be focused on sorting, but I've tested and this parameter doesn't work in this version of the Arelith wiki software

Example API call on Arelith's mediawiki api:

  • http://wiki.nwnarelith.com/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Spells&gcmlimit=max&gcmtype=page&format=json&formatversion=2
    • /w/api.php?action=query is a query action, can only have one action at a time
    • &generator=categorymembers is a generator, rather than using list and then querying the specific page for its contents, get the details at the same time with a generator see more on query & generators. But, not positive on how this is different from list yet.
    • &gcmtitle=Category:Spells title of the page that's being queried, other ways to do this like id -- not sure yet how this is different from things like parse action and text vs title vs page, is part of categorymembers
    • &gcmlimit=max so it shows all results on one page, APIs look like limited to 500, is part of categorymembers
    • &gcmtype=page so it just shows the pages in the generator category and not the sub-categories, can also filter with file, page, subcat -- or using cmnamespace specifically use the namespace like 14 is subcat, is part of categorymembers
    • &format=json outputs in json so its easily scrapeable
    • &formatversion=2 fancier json with tabs for viewing raw with pretty waterfall version

Resources

https://paletton.com/ -- picking colors

http://wang.wustl.edu/mediawiki/extensions/index.php -- excel paste tables

https://www.tablesgenerator.com/mediawiki_tables -- excel paste tables graphical editor

https://en.wikipedia.org/wiki/Template:Infobox#Hiding_headers_when_all_data_fields_are_hidden

https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if

https://www.mediawiki.org/wiki/Manual:Collapsible_elements

https://meta.wikimedia.org/wiki/Help:Parser_function#LC

https://www.mediawiki.org/wiki/Help:Magic_words#Namespaces

http://stackoverflow.com/questions/224602/how-do-you-make-div-elements-display-inline

https://www.mediawiki.org/wiki/Help:Page_status_indicators

https://meta.wikimedia.org/wiki/Help:Parser_function (formatnum)

https://www.mediawiki.org/wiki/Help:Magic_words#URL_encoded_page_names (for forcing page names)

https://nwn.fandom.com/wiki/Enhancement_bonus https://nwn.fandom.com/wiki/Piercing-slashing_damage https://nwn.fandom.com/wiki/Damage_bonus -- complicated damage type interactions

Useful when tracking down changes/historical stuff related to updates:

Old update thread, doesn't have divine focus update or deck of stars -- https://web.archive.org/web/*/http://arelith.com/node/1120*

Last medium-old forums -- https://web.archive.org/web/20150330201418/http://arelith.com/forum

All of the even older forums... not much in there -- https://web.archive.org/web/*/http://www.arelith.com/phpBB3/*

All of the old forum posts... not all of them, but those that are archived -- https://web.archive.org/web/*/http://arelith.com/node/*

Note for later, see about using the wayback downloader to download this? https://github.com/hartator/wayback-machine-downloader

Category:Article_management_templates

Pastebin

blank class pastebin

here's the content

<categorytree hideroot="true" namespaces="-">Spells</categorytree>