Jump to content

User:Mattamue: Difference between revisions

From Arelith Wiki
Mattamue (talk | contribs)
trying to transclude a category template
Mattamue (talk | contribs)
Resources: Category:Article_management_templates
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''''<span style="color:#ff0000">If you're looking for Earthkin Defender updates, see [[Earthkin Defender]] page.</span>'''''
__TOC__


__TOC__
Prefixindex one way
 
{{Special:PrefixIndex/Category:S}}
 
Prefixindex another way
 
{{Special:PrefixIndex|prefix=Spell|namespace=14}}
 
 
= API stuff =
 
* [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]
 
Concepts
 
* <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:
 
* <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


= Resources =
= Resources =
Line 44: Line 87:


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


=Pastebin=
=Pastebin=


<div class="toccolours mw-collapsible mw-collapsed"><!--
<div class="toccolours mw-collapsible mw-collapsed">
 
blank class pastebin
-->blank class pastebin<!--
<div class="mw-collapsible-content">
 
here's the content
--><div class="mw-collapsible-content">
 
{{CharacterNav|title=Classes}}
 
'''CLASS''' is a DEFAULT/CUSTOM BASE/PRESTIGE class with Arelith specific changes.
 
 
__TOC__
 
== Introduction ==
 
Arelith CLASS enjoy many changes that benefit their SOMETHING. The [[#Path: PATH]] expand those options. Mechanical changes are included in the [[#Class Mechanics]] on this page and explained in the [[#Arelith Changes]] section. Base mechanics can be found [http://nwn.wikia.com/wiki/CLASS on NWNWiki]. The [[#Roleplay Tips]] section provides suggestions for character development.
 
== Class Mechanics ==
 
=== Requirements ===
 
'''Alignment restrictions:''' NONE-ANY
 
'''Skills:''' hide 8, move silently 8
 
 
 
=== Class Features ===
 
'''Hit die:'''
 
'''Proficiencies:''' -------- armor (light, medium), shields, weapons (martial, simple)
 
'''Skill points:''' NNN + int modifier ((NNN + int modifier) * 4 at 1st level)
 
'''Class Skills:'''
 
'''Unavailable feats:''' scribe scroll, craft wand, weapon specialization
 
'''Bonus feats:'''
 
'''Primary saving throw(s):'''
 
'''Base attack bonus:''' +1/level ////// +3/4 level
 
'''Spellcasting:''' Divine (spell failure from armor is ignored), wisdom-based (a base wisdom score of 10 + the spell's level is required to cast a spell, bonus spells are based on modified wisdom, and the wisdom modifier affects spell DCs), and requires preparation
 
=== Level Progression ===
 
Hit points rolls on Arelith are always maximum.
 
LEVELS TABLE
 
=== Spells ===
 
SPELLS TABLE
 
=== Epic CLASS ===
 
'''Bonus feats:'''
 
'''Epic bonus feats:''' 
 
'''Unavailable epic feats:''' epic weapon specialization, outsider shape, construct shape, dragon shape, undead shape
 
EPIC LEVELS TABLE
 
== Arelith Changes ==
 
{| class="wikitable sortable"
|- style="background-color:#c0c0c0"
!Change
!Level
!Description
 
|-
|'''Changes'''
| -
| A table to list changes. Cleaner than bullet points.
 
|}
 
=== Path: PATH ===
----
 
Path if there is one.
 
==Roleplay Tips==
 
 
 
== External Links ==
 
: Information about default NWN class is [http://nwn.wikia.com/wiki/CLASS available on NWNWiki].
 
REMEMBER CATEGORY CLASSES
 
</div>
</div>
</div>
</div>


== Testing ==
<categorytree hideroot="true" namespaces="-">Spells</categorytree>
 
 
 
{| class="wikitable"
|-
! Header text
!rowspan=4 style="background:#FFFFFF"|&nbsp;
! Header text
! Header text
|-
| Example || Example || Example
|-
| Example || Example || Example
|-
| Example || Example || Example
|}
 
Potentially a way to format a table by columns rather than rows:
 
<table>
<tr>
<td>
    <table>
        <tr><td>1</td></tr>
        <tr><td>2</td></tr>
    <tr><td>3</td></tr>
    <tr><td>4</td></tr>
    <tr><td>5</td></tr>
    <tr><td>6</td></tr>
    <tr><td>7</td></tr>
    <tr><td>8</td></tr>
    <tr><td>9</td></tr>
    <tr><td>10</td></tr>
    </table>
</td>
<td>
    <table>
        <tr><td>Scribe Scroll</td></tr>
        <tr><td><!--alt+0160--> </td></tr>
        <tr><td>Weapon Spec</td></tr>
        <tr><td>.</td></tr>
        <tr><td><!--alt+0160--> </td></tr>
        <tr><td><!--alt+0160 doesn't work two in a row--> </td></tr>
        <tr><td>.</td></tr>
        <tr><td>.</td></tr>
        <tr><td>.</td></tr>
        <tr><td>Ki Critical</td></tr>
    </table>
</td>
</tr>
</table>
 
= Testing Category Template =
{{:Category:Bard_Spells}}

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>