Category
You're no bot and a page you've created got automatically deleted? Add your name to FreewarWiki:NoSpamUser |
Difference between revisions of "Template:Book/Layout"
From FreewarWiki
(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 {{ | + | | 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]] [[{{ | + | * The [[Skill|skill]] [[{{#var:Skill}}]] was not learned before. |
− | + | {{{Requirements|}}} | |
− | }} | ||
| | | | ||
| width="49%" | '''Origin:''' | | width="49%" | '''Origin:''' | ||
Line 27: | Line 27: | ||
| | | | ||
| '''Function:''' | | '''Function:''' | ||
− | * You will learn the [[Skill|skill]] [[{{ | + | * 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|{{ | + | [[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 |
Book/Layout | ||
By using this book you will gain the skill Template:Book/Layout. {{{Description}}} | ||
(Spell, Level: 0) |
Requirements:
|
Origin:
{{{Origin}}} | |
MaximumLevel:
{{{Max}}} | ||
Miscellaneous:
|
Function:
| |
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.