Difference between revisions of "Template:Spellbook2"

From CrawlWiki
Jump to: navigation, search
(Created page with "<includeonly>{{#invoke:spellbook|short_spell_list|{{{1}}}}}</includeonly><noinclude> Example: <nowiki>{{spellbook2|Book of Maledictions}}</nowiki> generates: {{spellbook2|Boo...")
 
m (Fix.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:spellbook|short_spell_list|{{{1}}}}}</includeonly><noinclude>
+
<includeonly>{{#invoke:spellbook|short_spell_list|{{{1}}}|{{{2|}}}}}</includeonly><noinclude>
 +
Generates a compact list of spells for a book. Optionally a spell school can be added as a second parameter, to only lists spells belonging to that school.
 +
 
 
Example:
 
Example:
 
  <nowiki>{{spellbook2|Book of Maledictions}}</nowiki>
 
  <nowiki>{{spellbook2|Book of Maledictions}}</nowiki>
 
generates:
 
generates:
 +
 
{{spellbook2|Book of Maledictions}}
 
{{spellbook2|Book of Maledictions}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:16, 1 February 2016

Generates a compact list of spells for a book. Optionally a spell school can be added as a second parameter, to only lists spells belonging to that school.

Example:

{{spellbook2|Book of Maledictions}}

generates:

Script error