User:Gorgon/Sandbox/Sandbox Alpha: Difference between revisions

From Avlis Wiki
Jump to navigation Jump to search
(Test spell for spell template revisions)
 
(Reorganizing, revamping, updating...)
Line 1: Line 1:
{{User:Gorgon/Sandbox/Spell_Test|Name= Foo
<noinclude>
|Status= Complete
Anything up to/including the '''Template start''' heading will not be included in transclusion of this template (or any part of the trailing documentation section either, though that will eventually be formalized template documentation, with transcluded categories at the end).
|Writers= [[User:Gorgon|Gorgon]]
 
|Scripters= [[User:Gorgon|Gorgon]]
I love to over-comment my code, so why change things here...
|Testers= [[User:Gorgon|Gorgon]]
 
|School= Conjuration
 
|Subschool= Creation
<div style="float:left; max-width:50%">__TOC__</div>
|Descriptors= [[Magic:Descriptors#Acid|Acid]], [[Magic:Descriptors#Cold|Cold]]
<br clear=all />
|Level= Sor/Wiz 4
 
|Innate Level= 4
 
|Components= V, S
== Test version of [[Template:Spell]] ==
|Casting Time= 1 action
<!-- Add any revision notes or other ideas here. -->
|Range= Medium
 
|Target= Single
=== Extensions that would make this work better [My wish list] ===
|Duration= Instantaneous
* [//www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion] - Allows '''selective''' transclusion of marked-off sections of text.
||Counters= None
* [//www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) Extension:DynamicPageList (third-party)] - Enhanced version of [//www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia) Extension:DynamicPageList (Wikimedia)]
|Saving Throw= Reflex half
** [//semeb.com/dpldemo/index.php?title=DPL:Overview DPL:Overview] - Generate dynamic reports based on category members and selective included info from each (Extension:Labeled Section Transclusion above would really help there).
|Spell Resistance= Yes
** [//semeb.com/dpldemo/index.php?title=Template:Catlist DPL:Template:Catlist] - Picture this totally reformatted as filter/sort options up top of the [[Magic:Spell_List | Spell List]] page, as a dynamic table. It starts showing all spells, but sortable with one click by level, school, class, or any other useful [[Template:Spell]] parameter/category used by them. Then add in the ability to filter results to only certain kinds/combinations (e.g, Show only cleric evocation spells, sorted by level, with the option of showing specific domain ones as well).
|Metamagic= Empower, Maximize, Quicken, Silent, Still
** I doubt anyone else besides me would use this (except maybe the occasional dabbler), but it would really be useful for spells, and maybe a few other things eventually. Revamping all spells via this template is a huge undertaking (and my main goal for wiki updating, now that I can verify/test spells again), so adding this extension for that work alone would make a huge difference.
|Energy Substitution= Yes
 
|Description= Magic stuff happens.
=== Revision notes ===
}}
* Still in pre-work thought mode here, and wanting extensions to make life easier. Made a few changes to automate very basic parameter stuff, but more can be done. [[NWN:Template:Spell | Template:Spell on the NWN Wiki]] has some ideas, but not quite what I had in mind either.
* I think [[User:Buddha|Buddha]] had the right idea with his discussion on the [[Avlis_Wiki_talk:Categories#Categorizing_Spells | Categories page]] about reformatting how we categorize spells. The current [[Magic:Spell_List | Spell List]] page (and its various subversions) all rely on manual updating when any new changes happen to it, like a new spell being added. Revisions to this template will improve how each spell is displayed, and categorized (even without new extensions), so moving to category listings that update dynamically makes a lot of sense.
** If the suggested [//www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Labeled Section Transclusion] extension is added, then short spell descriptions and other info can be dynamically added/updated to manually updated lists, like [[Magic:Cleric_Spells:Level-1 | Cleric Spells:Level-1]], even without moving to categories.
** The [//www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) Dynamic Page List (third-party)] extension would allow one page to display all variations in any sort of table, sortable and filterable by any useful criteria. Spells would be automatically categorized by this template, but one page would use those categories and/or the template parameters, to display whatever output is requested by the user. Combine this with Labeled Section Transclusion, and any results are updated as each spell gets edited.
 
More to come...
 
== Template start ==
<!-- End of notes. -->
</noinclude><div class="notice metadata" id="spell updates" style="background-color: #FFFFE0; margin: 0 1em; padding: 0 10px; border: 1px solid #CDCDB4;"><br /> ''<font style="font-size: 16px;">Spell articles are presently undergoing an overhaul to improve ease of updating. Please excuse any mess that this may cause for the duration.</font><br /><br /></div>
<b>[[Magic:School|School]]</b>: [[Magic:{{{School}}}|{{{School}}}]] {{#if:{{{Subschool|}}}|( {{{Subschool}}} )|}} {{#if:{{{Descriptors|}}}|[ {{{Descriptors}}} ]|}}<br />
<b>[[Magic:Level|Level]]:</b> {{{Level}}}<br />
<b>[[Magic:Innate Level|Innate Level]]:</b> {{{Innate Level}}}<br />
<b>[[Magic:Components|Component(s)]]:</b> {{{Components}}} <br />
<b>[[Magic:Casting Time|Casting Time]]:</b> {{{Casting Time}}} <br />
<b>[[Magic:Range|Range]]:</b> {{{Range}}} <br />
<b>[[Magic:Target|Target]]:</b> {{{Target}}} <br />
<b>[[Magic:Duration|Duration]]:</b> {{{Duration}}} <br />
<b>[[Magic:Counter|Counter(s)]]:</b> {{{Counters}}}<br />
<b>[[Magic:Saving Throw|Saving Throw]]:</b> {{{Saving Throw}}} <br />
<b>[[Magic:Spell Resistance|Spell Resistance]]:</b> {{{Spell Resistance}}} <br />
<b>[[Magic:Metamagic|Metamagic]]:</b> {{{Metamagic}}}<br />
<b>[[Magic:Energy Substitution|Energy Substitution]]:</b> {{{Energy Substitution}}}<br />
 
{{{Description}}}
<!-- Commented section below pending removal
----
[[Magic:Spell List|Spell List]] <small> ([[Magic:Spell Format|Spell Format]]) </small>
 
<small>
- [[Magic:Bard Spells|Bard]] (
[[Magic:Bard Spells:Level-0|0]]
[[Magic:Bard Spells:Level-1|1]]
[[Magic:Bard Spells:Level-2|2]]
[[Magic:Bard Spells:Level-3|3]]
[[Magic:Bard Spells:Level-4|4]]
[[Magic:Bard Spells:Level-5|5]]
[[Magic:Bard Spells:Level-6|6]]
)
 
- [[Magic:Cleric Spells|Cleric]] (
[[Magic:Cleric Spells:Level-0|0]]
[[Magic:Cleric Spells:Level-1|1]]
[[Magic:Cleric Spells:Level-2|2]]
[[Magic:Cleric Spells:Level-3|3]]
[[Magic:Cleric Spells:Level-4|4]]
[[Magic:Cleric Spells:Level-5|5]]
[[Magic:Cleric Spells:Level-6|6]]
[[Magic:Cleric Spells:Level-7|7]]
[[Magic:Cleric Spells:Level-8|8]]
[[Magic:Cleric Spells:Level-9|9]]
)
 
- [[Magic:Druid Spells|Druid]] (
[[Magic:Druid Spells:Level-0|0]]
[[Magic:Druid Spells:Level-1|1]]
[[Magic:Druid Spells:Level-2|2]]
[[Magic:Druid Spells:Level-3|3]]
[[Magic:Druid Spells:Level-4|4]]
[[Magic:Druid Spells:Level-5|5]]
[[Magic:Druid Spells:Level-6|6]]
[[Magic:Druid Spells:Level-7|7]]
[[Magic:Druid Spells:Level-8|8]]
[[Magic:Druid Spells:Level-9|9]]
)
 
- [[Magic:Paladin Spells|Paladin]] (
[[Magic:Paladin Spells:Level-1|1]]
[[Magic:Paladin Spells:Level-2|2]]
[[Magic:Paladin Spells:Level-3|3]]
[[Magic:Paladin Spells:Level-4|4]]
)
 
- [[Magic:Ranger Spells|Ranger]] (
[[Magic:Ranger Spells:Level-1|1]]
[[Magic:Ranger Spells:Level-2|2]]
[[Magic:Ranger Spells:Level-3|3]]
[[Magic:Ranger Spells:Level-4|4]]
)
 
- [[Magic:Sorcerer Wizard Spells|Sorcerer]] (
[[Magic:Sorcerer Wizard Spells:Level-0|0]]
[[Magic:Sorcerer Wizard Spells:Level-1|1]]
[[Magic:Sorcerer Wizard Spells:Level-2|2]]
[[Magic:Sorcerer Wizard Spells:Level-3|3]]
[[Magic:Sorcerer Wizard Spells:Level-4|4]]
[[Magic:Sorcerer Wizard Spells:Level-5|5]]
[[Magic:Sorcerer Wizard Spells:Level-6|6]]
[[Magic:Sorcerer Wizard Spells:Level-7|7]]
[[Magic:Sorcerer Wizard Spells:Level-8|8]]
[[Magic:Sorcerer Wizard Spells:Level-9|9]] )
 
- [[Magic:Sorcerer Wizard Spells|Wizard]] (
[[Magic:Sorcerer Wizard Spells:Level-0|0]]
[[Magic:Sorcerer Wizard Spells:Level-1|1]]
[[Magic:Sorcerer Wizard Spells:Level-2|2]]
[[Magic:Sorcerer Wizard Spells:Level-3|3]]
[[Magic:Sorcerer Wizard Spells:Level-4|4]]
[[Magic:Sorcerer Wizard Spells:Level-5|5]]
[[Magic:Sorcerer Wizard Spells:Level-6|6]]
[[Magic:Sorcerer Wizard Spells:Level-7|7]]
[[Magic:Sorcerer Wizard Spells:Level-8|8]]
[[Magic:Sorcerer Wizard Spells:Level-9|9]] )
</small> -->
<!--
[[Category:Magic|{{{Name}}}]]
<includeonly>[[Category:{{{School}}} Spells|{{{Name}}}]]</includeonly>
--><noinclude>
<!-- Add template documentation here, or include a doc subpage (see: https://en.wikipedia.org/wiki/Wikipedia:Template_documentation#How_to_create_a_documentation_subpage). -->
== Non-transcluded template documentation [eventually an included doc subpage with transcluded categories] ==
 
Add template documentation here, or include a doc subpage (see: [//en.wikipedia.org/wiki/Wikipedia:Template_documentation#How_to_create_a_documentation_subpage How to create a documentation subpage]).
* A document sub-template would be useful for all templates on this wiki, since they need usage documentation.
 
<!-- End of documentation. -->
</noinclude>

Revision as of 09:55, 22 January 2017

Anything up to/including the Template start heading will not be included in transclusion of this template (or any part of the trailing documentation section either, though that will eventually be formalized template documentation, with transcluded categories at the end).

I love to over-comment my code, so why change things here...




Test version of Template:Spell

Extensions that would make this work better [My wish list]

  • Extension:Labeled Section Transclusion - Allows selective transclusion of marked-off sections of text.
  • Extension:DynamicPageList (third-party) - Enhanced version of Extension:DynamicPageList (Wikimedia)
    • DPL:Overview - Generate dynamic reports based on category members and selective included info from each (Extension:Labeled Section Transclusion above would really help there).
    • DPL:Template:Catlist - Picture this totally reformatted as filter/sort options up top of the Spell List page, as a dynamic table. It starts showing all spells, but sortable with one click by level, school, class, or any other useful Template:Spell parameter/category used by them. Then add in the ability to filter results to only certain kinds/combinations (e.g, Show only cleric evocation spells, sorted by level, with the option of showing specific domain ones as well).
    • I doubt anyone else besides me would use this (except maybe the occasional dabbler), but it would really be useful for spells, and maybe a few other things eventually. Revamping all spells via this template is a huge undertaking (and my main goal for wiki updating, now that I can verify/test spells again), so adding this extension for that work alone would make a huge difference.

Revision notes

  • Still in pre-work thought mode here, and wanting extensions to make life easier. Made a few changes to automate very basic parameter stuff, but more can be done. Template:Spell on the NWN Wiki has some ideas, but not quite what I had in mind either.
  • I think Buddha had the right idea with his discussion on the Categories page about reformatting how we categorize spells. The current Spell List page (and its various subversions) all rely on manual updating when any new changes happen to it, like a new spell being added. Revisions to this template will improve how each spell is displayed, and categorized (even without new extensions), so moving to category listings that update dynamically makes a lot of sense.
    • If the suggested Labeled Section Transclusion extension is added, then short spell descriptions and other info can be dynamically added/updated to manually updated lists, like Cleric Spells:Level-1, even without moving to categories.
    • The Dynamic Page List (third-party) extension would allow one page to display all variations in any sort of table, sortable and filterable by any useful criteria. Spells would be automatically categorized by this template, but one page would use those categories and/or the template parameters, to display whatever output is requested by the user. Combine this with Labeled Section Transclusion, and any results are updated as each spell gets edited.

More to come...

Template start

School: [[Magic:{{{School}}}|{{{School}}}]]
Level: {{{Level}}}
Innate Level: {{{Innate Level}}}
Component(s): {{{Components}}}
Casting Time: {{{Casting Time}}}
Range: {{{Range}}}
Target: {{{Target}}}
Duration: {{{Duration}}}
Counter(s): {{{Counters}}}
Saving Throw: {{{Saving Throw}}}
Spell Resistance: {{{Spell Resistance}}}
Metamagic: {{{Metamagic}}}
Energy Substitution: {{{Energy Substitution}}}

{{{Description}}}

Non-transcluded template documentation [eventually an included doc subpage with transcluded categories]

Add template documentation here, or include a doc subpage (see: How to create a documentation subpage).

  • A document sub-template would be useful for all templates on this wiki, since they need usage documentation.