Difference between revisions of "Template:Book/Layout"

From FreewarWiki
Jump to: navigation, search
(mal sehn)
(fixed & optimized)
Line 1: Line 1:
{{TemplateWarning}}
+
{{TemplateWarning}}{{GermanLinking|Name:DE={{{Name:DE|none}}}}}<!--
{{GermanLinking|Name:DE={{{Name:DE|none}}}}}
+
Initialisiation of {{#var:Skill}}
 +
-->{{#vardefine:Skill|{{{Skill|{{#regex:{{FULLPAGENAME}}|/Book of(.+?)/| }}}}}}}
 
{| width="500px" style="{{Book/Colours}} solid 2px;" |
 
{| width="500px" style="{{Book/Colours}} solid 2px;" |
 
  | width="60px" align="center" valign="middle" rowspan="3" style="{{Book/Colours}} outset 2px; margin-right:15px;" | http://world1.freewar.com/freewar/images/items/buch.gif
 
  | width="60px" align="center" valign="middle" rowspan="3" style="{{Book/Colours}} outset 2px; margin-right:15px;" | http://world1.freewar.com/freewar/images/items/buch.gif
Line 6: Line 7:
 
  | '''{{PAGENAME}}'''  
 
  | '''{{PAGENAME}}'''  
 
  |-
 
  |-
  | By using this book you will gain the skill {{{Skill}}}. {{{Description}}}  {{#ifeq:{{{Description2|none}}}|none||{{{Descriptiong2}}}}}
+
  | By using this book you will gain the skill {{#var:Skill}}. {{{Description}}}
 
  |-
 
  |-
 
  | ''(Spell, Level: 0)''
 
  | ''(Spell, Level: 0)''
Line 12: Line 13:
 
{| width="500px" |
 
{| width="500px" |
 
  | width="49%" rowspan="2" | '''Requirements:'''
 
  | width="49%" rowspan="2" | '''Requirements:'''
* The [[Skill|skill]] [[{{{Skill}}}]] was not learned before.
+
* The [[Skill|skill]] [[{{#var:Skill}}]] was not learned before.
{{#ifeq:{{{Requirements|none}}}|none||{{{Requirements}}}
+
{{{Requirements|}}}
}}
 
 
  | &nbsp;
 
  | &nbsp;
 
  | width="49%" | '''Origin:'''
 
  | width="49%" | '''Origin:'''
Line 27: Line 27:
 
  | &nbsp;
 
  | &nbsp;
 
  | '''Function:'''
 
  | '''Function:'''
* You will learn the [[Skill|skill]] [[{{{Skill}}}]] on level 1.
+
* You will learn the [[Skill|skill]] [[{{#var:Skill}}]] on level 1.
 
  |-
 
  |-
 
  | colspan="3" | '''Price:'''
 
  | colspan="3" | '''Price:'''
Line 33: Line 33:
 
* Default [[Purchase Price]]:<br />{{{BuyPrice}}} [[Gold]]
 
* Default [[Purchase Price]]:<br />{{{BuyPrice}}} [[Gold]]
 
}}
 
}}
* Default [[Price of Sale]]:<br />{{{SellPrice}}} [[Gold]]
+
* Default [[Price of Sale]]:<br />{{{SellPrice|{{#ifeq:{{{BuyPrice|none}}}|none|{{{SellPrice}}}|{{#expr:{{{BuyPrice}}} / 2}}}}}}} [[Gold]]
 
{{#ifeq:{{{MarketPrice|none}}}|none||*[[MarketPrice]]:<br />{{{MarketPrice}}} [[Gold]]}}
 
{{#ifeq:{{{MarketPrice|none}}}|none||*[[MarketPrice]]:<br />{{{MarketPrice}}} [[Gold]]}}
 
<sup>'''Attention:''' {{#ifeq:{{{MarketPricePage|none}}}|none|This are the default prices at the [[shop]]s. The [[MarketPrice|market price]]s when trading with other players can vary!|{{#ifeq:{{{MarketPrice|none}}}|none|This is a item, which price when trading with other players will vary noticeably. Details can be found [[MarketPrice:{{PAGENAME}}|here.]]|This is the normal default price for this item, but its price can still vary in the different worlds. Details can be found on the[[MarketPrice:{{PAGENAME}}|Market Price Page]].}}}}</sup>
 
<sup>'''Attention:''' {{#ifeq:{{{MarketPricePage|none}}}|none|This are the default prices at the [[shop]]s. The [[MarketPrice|market price]]s when trading with other players can vary!|{{#ifeq:{{{MarketPrice|none}}}|none|This is a item, which price when trading with other players will vary noticeably. Details can be found [[MarketPrice:{{PAGENAME}}|here.]]|This is the normal default price for this item, but its price can still vary in the different worlds. Details can be found on the[[MarketPrice:{{PAGENAME}}|Market Price Page]].}}}}</sup>
Line 47: Line 47:
 
{{#ifeq:{{NAMESPACE}}||
 
{{#ifeq:{{NAMESPACE}}||
 
[[Category:All Items]]
 
[[Category:All Items]]
[[Category:Books|{{{Skill}}}]]
+
[[Category:Books|{{#var:Skill}}]]
 
{{{AdditionalCategories|}}}
 
{{{AdditionalCategories|}}}
 
}}
 
}}

Revision as of 13:18, 25 June 2010

Error creating thumbnail: Unable to save thumbnail to destination
   This template is designed to be used in other articles. You will not need to change it when creating another article. If you need help when using it, have a look at our help page. Parameters and optional parameters can be found here. Please take the template convention into account.

Your FreewarWiki-Team

buch.gif Book/Layout
By using this book you will gain the skill Template:Book/Layout. {{{Description}}}
(Spell, Level: 0)
Requirements:
  • The skill Template:Book/Layout was not learned before.
  Origin:

{{{Origin}}}

  MaximumLevel:

{{{Max}}}

Miscellaneous:
  • This book dissolves when using it.
  Function:
  • You will learn the skill Template:Book/Layout on level 1.
Price:

Attention: This are the default prices at the shops. The market prices when trading with other players can vary!



Documentation

Usage
This template contains the source code for general item articles.

Integration
This template can be incorporated by using {{Book/Layout}}. Parameters are given inTemplate:Book. It will be incorporated automatically.