Template talk:Spell: Difference between revisions

From RoDpedia
Jump to navigation Jump to search
Skace (talk | contribs)
No edit summary
 
Skace (talk | contribs)
No edit summary
Line 1: Line 1:
Hey Poro, You'll probably see this before I get a chance to talk to you. I've been trying to develop a template for spells, if it works templates could be expanded to items, areas, mobs, etc. This would alleviate manual enforcement of format and allow you to update all spell/mobs/items/etc on the fly. However, your wiki needs the expanded [http://www.mediawiki.org/wiki/Extension:ParserFunctions Parser functions code] for if statements to function at all (as far as I can tell).
* Cleaning up the garbage. [[User:Skace|Skace]] 17:04, 3 July 2008 (UTC)


Also, this may be a good time to bring up [http://en.wikipedia.org/wiki/Common.css common.css] which would allow for some better tables across the board. I don't know what is involved with grabbing this. Whether anyone can just create a .css page and copy the text word for word or what. But if you could take a peek I'd appreciate it.
== Blank Template ==


By the way, yea I still have that account security thing going, where it makes me type in various words before I can post.
Copy this into a new article, fill out the fields you know and delete the leftovers (or leave blank).


If we got templates working your spell pages would look something like this:
<pre>{{Spell
 
|description =  
<pre><nowiki>
|syntax =  
{{Spell
|type =  
|description=This spell hurts people
|mana =  
|syntax=cast 'chill touch' victim
|damage =  
|type=Attack
|heal =  
|mana=3
|effect =  
|mindamage=5
|stance =
|maxdamage=10
|restrictions =  
|effect=Does cold damage to target
|yoursuccess =  
|restrictions=Evil only
|yourfailure =  
|yoursuccess=Your chilling touch hurts someone.
|yourexpire =
|yourfailure=You failed to chill someone.
|othersuccess =  
|othersuccess=Someones chilling touch freezes you to the bones.
|otherfailure =  
|otherfailure=Someone tried to freeze you but missed.
|otherexpire =
|categories=Spell, Mage
|notes  =  
}} </nowiki></pre>
}}</pre>
 
That's just an example with made up data and not necessarily the end fields, but gives you an idea. Then all the formatting and design of the page would be handled solely by the template.
 
I try to find you online in RoD, but we never see each other I guess. I go by Skaje - [[User:Skace|Skace]] 20:17, 28 May 2008 (CDT)

Revision as of 17:04, 3 July 2008

  • Cleaning up the garbage. Skace 17:04, 3 July 2008 (UTC)

Blank Template

Copy this into a new article, fill out the fields you know and delete the leftovers (or leave blank).

{{Spell
|description = 
|syntax = 
|type = 
|mana = 
|damage = 
|heal = 
|effect = 
|stance = 
|restrictions = 
|yoursuccess = 
|yourfailure = 
|yourexpire = 
|othersuccess = 
|otherfailure = 
|otherexpire = 
|notes  = 
}}