Difference between revisions of "Diablo Wiki:Sandbox"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
(new skill templates)
Line 390: Line 390:
  
  
==MrFrye's Skill Proposal==
+
==Skill Templates (for editors)==
As we all know, this is what the rune effects table looks like right now:
+
Thanks to Dorjan, skill templates that pull data directly from the DB are now available.
  
<skill class="Wizard">Ray of Frost</skill>
+
===Active skills===
 +
A typical Active Skill:
 +
<skill class="Barbarian">Bash</skill>
 +
The code for this is pretty simple:
 +
<nowiki><skill class="Barbarian">Bash</skill></nowiki>
  
As I see it, there are some issues with this:
 
  
# It takes up too much real estate. Even at 1960x1080, it barely all fits on the screen. At any lower resolution, you have to scroll to see all the data. This may not be an issue for everyone.
+
Some skills have a "sub-category", such as [[Mantra]] or [[Shout]]. An example:
# The rune effects are listed in the order that they're listed in the DB table (by rune icon). This is a problem that is not easily solved when pulling all the rune effects from the table at once.
+
<skill subcat="Bow skill" class="DemonHunter">Hungering Arrow</skill>
# As several people have mentioned, the rune icons are too big. I address this in the first [[Diablo Wiki:Sandbox#Update, part the 1st|update]] below.
+
This needs just a little more code:
 +
<nowiki><skill subcat="Bow skill" class="DemonHunter">Hungering Arrow</skill></nowiki>
  
  
===The Proposal===
+
A typical skill rune effect:
'''The heart of the system I'm proposing is having a method for extracting just the "advanced tooltip" field from the skill descriptions in the database''' (which Rushster assures me is possible). I came up with idea when I realized that once the game starts, skill names and levels are never going to change - just the descriptions. Now for... less talk, more examples!
+
<skill class="Barbarian" rune="Clobber">Bash</skill>
 +
This is just another variation of the basic code:
 +
<nowiki><skill class="Barbarian" rune="Clobber">Bash</skill></nowiki>
  
Here's what a typical Active Skill would look like:
 
{{Wizard Skill Ray of Frost}}
 
  
And a Skill Rune:
+
So an active skill with rune effects looks like this:
{{Wizard Skillrune Sleet Storm}}
+
{{skill description header}}
 +
<skill class="Barbarian">Bash</skill>
 +
<skill class="Barbarian" rune="Clobber">Bash</skill>
 +
<skill class="Barbarian" rune="Onslaught">Bash</skill>
 +
<skill class="Barbarian" rune="Punish">Bash</skill>
 +
<skill class="Barbarian" rune="Instigation">Bash</skill>
 +
<skill class="Barbarian" rune="Pulverize">Bash</skill>
  
And a Passive Skill:
+
<nowiki>{{skill description header}}
{{Barbarian Passive Pound of Flesh}}
+
<skill class="Barbarian">Bash</skill>
 +
<skill class="Barbarian" rune="Clobber">Bash</skill>
 +
<skill class="Barbarian" rune="Onslaught">Bash</skill>
 +
<skill class="Barbarian" rune="Punish">Bash</skill>
 +
<skill class="Barbarian" rune="Instigation">Bash</skill>
 +
<skill class="Barbarian" rune="Pulverize">Bash</skill></nowiki>
  
Notice they all look pretty much the same, except for the "Secondary" in the active skill. One of the features of this system is the ability to add the category for active skills.
 
  
 +
===Passive skills===
 +
A typical passive skill:
 +
<skill class="DemonHunter">Tactical Advantage</skill>
 +
The code for this is exactly the same as for active skills:
 +
<nowiki><skill class="DemonHunter">Tactical Advantage</skill></nowiki>
  
===Variations===
 
Now, here's where things get interesting. For our first example, let's take the passive skill [[Pound of Flesh]]. At the moment, the skill description looks like this:
 
{{Skill description header}}
 
{{Barbarian Passive Pound of Flesh}}
 
  
Another possibility would be this:
+
This method can also be used to show the passive skill flavor text:
{{Barbarian Passive Pound of Flesh|showlvl=yes}}
 
Which might be better for tables with a single entry. The optional "Level" label is another feature.
 
  
 +
<skill flavor="yes" class="DemonHunter">Tactical Advantage</skill>
  
Our second example involves background color. This one's called "darkmaroon":
+
<nowiki><skill flavor="yes" class="DemonHunter">Tactical Advantage</skill></nowiki>
{{Wizard Skill Arcane Torrent|color=darkmaroon}}
 
Actually, that's the only color listed. But more can be easily added if anyone really wants to.
 
  
  
The third example doesn't show anything new, however eventually the [[Wizard skills]] page will need to list the skills by category. No problem:
+
Making the standard description on a passive skill page:
{{Skill description header}}
+
{{skill description header}}
{{Wizard Skill Ray of Frost}}
+
<skill class="Wizard">Power Hungry</skill>
{{Wizard Skill Arcane Orb}}
+
<skill flavor="yes" class="Wizard">Power Hungry</skill>
{{Wizard Skill Arcane Torrent}}
+
<nowiki>{{skill description header}}
{{Wizard Skill Disintegrate}}
+
<skill class="Wizard">Power Hungry</skill>
 
+
<skill flavor="yes" class="Wizard">Power Hungry</skill></nowiki>
 
 
Our last example is a demonstration of what the rune effects table would look like with this system:
 
{{Skill description header}}
 
{{Wizard Skill Ray of Frost|color=darkmaroon}}
 
{{Wizard Skillrune Sleet Storm}}
 
{{Wizard Skillrune Cold Blood}}
 
{{Wizard Skillrune Snow Blast}}
 
{{Wizard Skillrune Numb}}
 
{{Wizard Skillrune Black Ice}}
 
If that looks familiar, that's because it is indeed pretty much the same as the old version, just with different rune icons.
 
 
 
 
 
===Bonus Feature===
 
There's one additional benefit. I already have an example on the [[Arcane Torrent rune effects]] page, but I'll repeat it here. Instead of having these spread out all over:
 
{{Wizard Skillrune Black Ice|showlvl=yes}}
 
We could have this in the rune effect pages:
 
 
 
[[Black Ice]] is unlocked at level 53.
 
* Enemies killed with Ray of Frost leave behind a patch of ice that deals {{c_lime|193%}} weapon damage as Cold to enemies moving through it over {{c_lime|3}} seconds.
 
 
 
The biggest benefit, of course, is that this method doesn't get in the way of plastering images all over the page.
 
 
 
 
 
===Final Notes===
 
It was very important to me to make sure that all active skills, passive skills, and rune effects call the same template: [[Template:Skill description]]. So if anyone wants to make changes to the look or style of these tables, only one page needs to be edited. Also, I tried to make the system as flexible as possible.
 
 
 
 
 
===Update, part the 1st===
 
In the past day, I've developed a couple of additions. The first is an idea of Risingred's - using smaller icons for the runes:
 
{{Skill description header}}
 
{{Wizard Skill Arcane Torrent|color=darkmaroon}}
 
{{Wizard Skillrune Disruption}}
 
{{Wizard Skillrune Death Blossom}}
 
{{Wizard Skillrune Arcane Mines}}
 
{{Wizard Skillrune Power Stone}}
 
{{Wizard Skillrune Cascade}}
 
I like it. In fact, I like it so much that I want the smaller icons to be the default for rune effects.
 
 
 
 
 
The second addition came from the realization that I could add a feature that was in the old system: the sub-category. For example:
 
{{Wizard Skill Magic Missile|showlvl=yes}}
 
 
 
 
 
Also, I realized that I could use a variation of that for passive skills:
 
{{Wizard Passive Prodigy|showlvl=yes|subcat=See:<br>[[Signature spell]]s}}
 
That's cool. Like bow-ties.
 
 
 
Anyway, here endeth the first update.
 
 
 
 
 
===Update, part the 2nd===
 
This is a small update; an update to the previous update, as it were.
 
 
 
First, people seem to like the smaller rune icons, so I created a template that always displays the rune icons in the smaller size. Arcane Torrent up there uses the new system, while Ray of Frost used the old one. The size of the rune icons is defined as 40 pixels in [[Template:Rune description]], so if anyone thinks they're still too big, you can change the size there.
 
  
  
  
 
{{Help navbox}}
 
{{Help navbox}}

Revision as of 21:14, 13 May 2012

Feel free to do whatever you want with this page =) --Leord 16:24, 27 August 2008 (CEST)


Pasting to preserve -- Elly 04:40, 6 May 2012 (CEST)



Legend: Just use ONE of these variables:

{{Location navbox
|main                Primary locations, most important ones.
|west                Western Kingdoms all locations.
|east                Eastern Kingdoms all locations.
|ocean               Oceans and Islands. Amazon etc.
|sov                 Areas with their own sovereignty (Kingdoms/Empires).
|set                 Settlements/Cities/Towns/etc.
|struc               Structures. Man-made (or entity-made) large objects.
|geo                 Geographical features such as rivers, mountains etc.
|plane               Planes of existence. High Heavens etc.
|fan_loc             Fan-made locations.
}}


Templates used



====

Testare.jpg


Headline Top of Page (H1)

Headline 1 (H2)

Headline 2 (H3)

Headline 3 (H4)

Headline 4 (H5)
Headline 5 (H6)

Skill Templates (for editors)

Thanks to Dorjan, skill templates that pull data directly from the DB are now available.

Active skills

A typical Active Skill: <skill class="Barbarian">Bash</skill> The code for this is pretty simple:

<skill class="Barbarian">Bash</skill>


Some skills have a "sub-category", such as Mantra or Shout. An example: <skill subcat="Bow skill" class="DemonHunter">Hungering Arrow</skill> This needs just a little more code:

<skill subcat="Bow skill" class="DemonHunter">Hungering Arrow</skill>


A typical skill rune effect: <skill class="Barbarian" rune="Clobber">Bash</skill> This is just another variation of the basic code:

<skill class="Barbarian" rune="Clobber">Bash</skill>


So an active skill with rune effects looks like this:

Name Level Description

<skill class="Barbarian">Bash</skill> <skill class="Barbarian" rune="Clobber">Bash</skill> <skill class="Barbarian" rune="Onslaught">Bash</skill> <skill class="Barbarian" rune="Punish">Bash</skill> <skill class="Barbarian" rune="Instigation">Bash</skill> <skill class="Barbarian" rune="Pulverize">Bash</skill>

{{skill description header}}
<skill class="Barbarian">Bash</skill>
<skill class="Barbarian" rune="Clobber">Bash</skill>
<skill class="Barbarian" rune="Onslaught">Bash</skill>
<skill class="Barbarian" rune="Punish">Bash</skill>
<skill class="Barbarian" rune="Instigation">Bash</skill>
<skill class="Barbarian" rune="Pulverize">Bash</skill>


Passive skills

A typical passive skill: <skill class="DemonHunter">Tactical Advantage</skill> The code for this is exactly the same as for active skills:

<skill class="DemonHunter">Tactical Advantage</skill>


This method can also be used to show the passive skill flavor text:

<skill flavor="yes" class="DemonHunter">Tactical Advantage</skill>

<skill flavor="yes" class="DemonHunter">Tactical Advantage</skill>


Making the standard description on a passive skill page:

Name Level Description

<skill class="Wizard">Power Hungry</skill> <skill flavor="yes" class="Wizard">Power Hungry</skill>

{{skill description header}}
<skill class="Wizard">Power Hungry</skill>
<skill flavor="yes" class="Wizard">Power Hungry</skill>


Wiki Help Index [e]
Help Contents

Community Portal
Markup - Create article - Sandbox
Help FAQ
Wiki Support
Category Structure
DiabloWiki Policies
Help Category
Link us

Wiki Tools

Article History
Boilerplates
Deleting pages
Disambiguations
Moving Articles
Redirects
Stubs
Templates

Glossary

Articles
Categories
Images
Linking
Tables
Talk Pages
Vandalism