Jump to content

User:Mattamue: Difference between revisions

From Arelith Wiki
Mattamue (talk | contribs)
No edit summary
Mattamue (talk | contribs)
Resources: Category:Article_management_templates
 
(76 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Resources ==
__TOC__


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


https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
{{Special:PrefixIndex/Category:S}}


https://www.mediawiki.org/wiki/Manual:Collapsible_elements
Prefixindex another way


https://meta.wikimedia.org/wiki/Help:Parser_function#LC
{{Special:PrefixIndex|prefix=Spell|namespace=14}}


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


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


https://www.mediawiki.org/wiki/Help:Page_status_indicators
* [https://en.wikipedia.org/wiki/Special:ApiSandbox good since its the sandbox, makes the sub-modules and parameters more obvious]
* [https://www.mediawiki.org/wiki/API:Tutorial maybe should have started here]
* [https://www.mediawiki.org/w/api.php?action=help help from the mediawiki api's help call]
* [https://www.mediawiki.org/wiki/API:Query a mediawiki api sub-page on just query that's good]
* [https://www.mediawiki.org/wiki/API:Main_page main page mediawiki api]
* [http://wiki.nwnarelith.com/w/api.php?action=help&modules=main help from arelith's own outdated version of the mediwiki]


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


https://www.mediawiki.org/wiki/Help:Magic_words#URL_encoded_page_names (for forcing page names)
* <code>&action=query</code> > <code>&list=categorymembers</code> > <code>&cmtitle=Category:Spells</code>
** 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 <code>&cmtitle=</code> parameter
** Doesn't update the details of those members based on query > <code>&prop=</code> parameters
** Has its own <code>&cmprop=</code> sub-property parameter to see more under each entry in the categorymembers section, more limited than <code>&prop=</code>
** <code>&cmprop=</code> is more focused on sorting the results: <code>&cmprop=ids|title|sortkey|sortkeyprefix|type|timestamp</code>
* <code>&action=query</code> > <code>&generator=categorymembers</code> > <code>&gcmtitle=Category:Spells</code>
** Doesn't create a seperate sub-heading under the query
** Replaces any <code>&titles=</code> pages that would normally show up as pages > 0, 1, 2, etc... under the query
** Essentially passes each page in the <code>&gcmtitle=</code> 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 > <code>&prop=transcludedin|templates|revisions|redirects|etc...</code> parameters across the whole generated list of pages
** Does also have its own <code>&cmprop=</code> 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:


= Sandbox =
* <code>http://wiki.nwnarelith.com/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Spells&gcmlimit=max&gcmtype=page&format=json&formatversion=2</code>
** <code>/w/api.php?action=query</code> is a query action, can only have one action at a time
** <code>&generator=categorymembers</code> 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 [https://www.mediawiki.org/wiki/API:Query#Generators see more on query & generators.] But, not positive on how this is different from list yet.
** <code>&gcmtitle=Category:Spells</code> 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 [https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bcategorymembers categorymembers]
** <code>&gcmlimit=max</code> so it shows all results on one page, APIs look like limited to 500, is part of [https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bcategorymembers categorymembers]
** <code>&gcmtype=page</code> 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 [https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bcategorymembers categorymembers]
** <code>&format=json</code> outputs in json so its easily scrapeable
** <code>&formatversion=2</code> fancier json with tabs for viewing raw with pretty waterfall version


<div class="toccolours mw-collapsible mw-collapsed"><!--
= Resources =


-->Class Template, Ranger Example<!--
https://paletton.com/ -- picking colors


--><div class="mw-collapsible-content">
http://wang.wustl.edu/mediawiki/extensions/index.php -- excel paste tables
{{Infobox
|bodystyle = width: 220px; background:#{{#ifeq:{{{faulty|}}} | true |ff3333|4DA9C8}}; color:#000000; border-color: #0084B0;
|titlestyle = text-align:center;
|labelstyle = color:#000000; background:#{{#ifeq:{{{faulty|}}} | true |990000|0084B0}}; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space: nowrap;
|datastyle = background-color:#DCE3E5; width: 70%;
|headerstyle = color:#000000;


|title=Ranger<br/>
https://www.tablesgenerator.com/mediawiki_tables -- excel paste tables graphical editor


|header1=Header
https://en.wikipedia.org/wiki/Template:Infobox#Hiding_headers_when_all_data_fields_are_hidden


|label1=Hit die
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
|data1=d10


|label3=Skill points
https://www.mediawiki.org/wiki/Manual:Collapsible_elements
|data3=6


|header4=Header 2
https://meta.wikimedia.org/wiki/Help:Parser_function#LC


|label8=Primary saving throw(s)
https://www.mediawiki.org/wiki/Help:Magic_words#Namespaces
|data8=fortitude


|label9=Base attack bonus
http://stackoverflow.com/questions/224602/how-do-you-make-div-elements-display-inline
|data9=1


|label10=Spellcasting
https://www.mediawiki.org/wiki/Help:Page_status_indicators
|data10=Divine


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


{{CharacterNav|title=Classes}}
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:


== Arelith Changes ==
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/*


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


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


Proficiencies: armor (light, heavy, medium), shields, weapons (martial, simple)
[[:Category:Article_management_templates]]


Skill points: 2 + int modifier ( (2 + int modifer) * 4 at 1st level)
=Pastebin=
 
Class Skills: concentration, craft armor, craft trap, craft weapon, discipline, heal, lore, parry, ride
 
Unavailable feats: brew potion, craft wand, curse song, divine might, divine shield, extra music, extra turning, lingering song
 
CLASS bonus feats:
 
Primary saving throw(s): fortitude
 
Base attack bonus: +1/level
 
Spellcasting:
 
== Level Progression ==
 
== Requirements ==
 
Alignment restrictions: None
 
Skills: hide 8 ranks, move silently 8 ranks
 
Base attack bonus: +4
 
Feats: mounted combat (requires ride 1)
 
Arcane spellcasting: level 3 or higher
 
Class: bard or sorcerer
 
== Tips ==
 
== Epic CLASS ==
 
Hit die: d12
 
Skill points: 2 + int modifier
 
Bonus feats: The epic dragon disciple gains a bonus feat every four levels. In other words, at levels 14, 18, 22, 26, and 30.
 
Epic bonus feats: armor skin, automatic quicken spell, automatic silent spell, automatic still spell
 
Epic breath weapon: The save DC against your breath weapon increases by +1 every 4 levels after 10th.
 
Unavailable epic feats: bane of enemies, construct shape, dragon shape, epic spell: dragon knight


<div class="toccolours mw-collapsible mw-collapsed">
blank class pastebin
<div class="mw-collapsible-content">
here's the content
</div>
</div>
</div>
</div>
<categorytree hideroot="true" namespaces="-">Spells</categorytree>

Latest revision as of 02:02, 23 March 2023

Prefixindex one way

Prefixindex another way


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>