User:ShushMaster/Test: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{{no_text|'''{{{name|{{PAGENAME}}}}}''' is a {{{level|}}} level [[spell]]{{{custom_text| in the [[School of {{{school|}}}]]}}}.}}}
<includeonly>|-
{| cellpadding=0 cellspacing=0 style="background-color:#{{teal 3}}; border: 1px solid black; float:{{{float|right}}}; width:225px; margin: 0 0 0 1em"
|{{-}}{{An|image={{{image|{{{1}}}}}}|link={{{link|{{{1}}}}}}|source={{{source|}}}|{{{1}}}}}||style="text-align:center;"|{{{2}}}||style="text-align:center;"|{{{3}}}||style="text-align:right;"|{{{4}}}{{-}}{{G}}{{-}}{{-}}
| colspan=3 align=center bgcolor={{teal 1}} style="height: 25px;" | '''{{{name|{{PAGENAME}}}}}'''
| style="font-size: 90%;" |{{{5}}}||{{{7|Part of [[{{{6}}}]]}}}</includeonly>
|-
<noinclude>'''ATR''' is an acronym of '''A'''rtifact '''T'''able' ''R'''ow. It is used together with [[:Template:Artifact table]].
| rowspan=5 align=center valign=center style="margin-left: 5px;; margin-right: 5px;" | [[File:{{{image|{{PAGENAME}}.png}}}|100px]]
|-
| '''School:'''
| {{-}}{{{exception|[[School of {{{school}}}|{{{school|}}}]]}}}
|-
| '''Level:'''
| {{-}}{{{level|}}}
|-
| '''Cost:'''
| {{-}}{{{cost|}}}
|-
| '''Duration:'''
| {{-}}{{{duration|}}}
|-
| colspan=3 bgcolor={{teal_2}} | {{-}}'''Basic effect'''
|-
| colspan=3 |
{| cellpadding=0 cellspacing=0 style="border-left: 5px solid #{{teal_3}}; background-color:#B8E6E6; width: 300px; font-size: 90%;"
| {{{b_effect|}}}
|}
|-
| colspan=3 bgcolor={{teal_2}} | {{-}}'''Advanced effect'''
|-
| colspan=3 |
{|cellpadding=0 cellspacing=0 style="border-left: 5px solid #{{teal_3}}; background-color:#{{teal_3}}; width: 300px; font-size: 90%;"
| {{{a_effect|}}}
|}
|-
| colspan=3 bgcolor={{teal_2}} | {{-}}'''Expert effect'''
|-
| colspan=3 |


{|cellpadding=0 cellspacing=0 style="border-left: 5px solid #{{teal_3}}; background-color:#{{teal_3}}; width: 300px; font-size: 90%;"
==Use==
| {{{e_effect|}}}
It's for [[List_of_artifacts_sorted_by_class|lists]] table use '''only''' to use with [[template:At]] template, to show artifact image, name and all other info in table.
|}


|-
=====Variables=====
| bgcolor={{teal 2}} colspan=3 | {{-}}'''Probability of occurrence (%):'''
1=name, 2=slot, 3=class, 4=cost, 5=effect, 6=Combo Artifact name, 7=Used if Combo left empty.
|-
| colspan=3 |


{| cellpadding=0 cellspacing=0 style="background-color:#{{teal_3}};"
=====Code=====
| {{Town|Castle}} || {{-}}{{-}}{{{1|}}}
<pre>{{Ar|'Artifact name'|'slot'|'class'|'cost'|'effect'|'Combo Artifact name'|'use if empty Combo'}}</pre>
|-
| {{Town|Rampart}} || {{-}}{{-}}{{{2|}}}
|-
| {{Town|Tower}} || {{-}}{{-}}{{{3|}}} (''{{{4|}}}*'')
|-
| {{Town|Inferno}} || {{-}}{{-}}{{{5|}}}
|-
| {{Town|Necropolis}} || {{-}}{{-}}{{{6|}}}
|-
| {{Town|Dungeon}} || {{-}}{{-}}{{{7|}}}
|-
| {{Town|Stronghold}} || {{-}}{{-}}{{{8|}}}
|-
| {{Town|Fortress}} || {{-}}{{-}}{{{9|}}}
|-
| {{Town|Conflux}} || {{-}}{{-}}{{{10|}}}
|-
| {{Town|Cove}}{{-}}{{withhota}} || {{-}}{{-}}{{{11|}}}
|-
| style="font-size: 90%;" | * Without [[Library]]
|}
|}<noinclude>


== How to use ==
==Example==
Copy the code at the beginning of the spell article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "school" is not the same as "School". Additionally, note that the school should be written with small first letters (e.g. earth magic).  
<pre>{{At|Miscellaneous}}
{{Ar|Spyglass|Misc.|Treasure|5000|[[Scouting Range]] +1}}</pre>
gives:


{| style="background: transparent;"  
{|class="wikitable sortable"
| <pre>{{Spell
|+ Miscellaneous
| school      =  
!width=180px|Artifact!!width=60px|[[Artifact|Slot]]!!width=60px|[[List_of_artifacts_sorted_by_class|Class]]!!width=60px|Price!!width=180px|Effect!!width=180px|Combination
| level      =  
|-
| cost        =  
|[[Image:Artifact_Spyglass.gif‎|Spyglass]][[Spyglass]]||Misc.||Treasure||align=right|5000 {{gold}}||[[Scouting Range]] +1||
| duration    =  
| b_effect    =  
| a_effect    =
| e_effect    =  
}}</pre>
|}
|}


You can also replace the "in the school of X magic" text with a custom text by adding a custom_text variable row:
{{Artifact table|}}
{| style="background: transparent;"
{{Ar|Horn of the Abyss|image=Horn of the Abyss (artifact)|link=Horn of the Abyss (artifact)|source={{-}}{{withhota}}|Misc|Relic|50000|Raises [[Fangarm]]s from slain stacks of living creatures||}}
| <pre>
| custom_text = </pre>
|}
|}


You can also use another image by including image variable row:
[[Category: Table templates|Artifact row]]</noinclude>
{| style="background: transparent;"
| <pre>
| image      = </pre>
|}
[[Category: Misc templates|{{PAGENAME}}]]</noinclude>

Revision as of 06:39, 7 June 2018

'ATR is an acronym of Artifact Table' Row. It is used together with Template:Artifact table.

Use

It's for lists table use only to use with template:At template, to show artifact image, name and all other info in table.

Variables

1=name, 2=slot, 3=class, 4=cost, 5=effect, 6=Combo Artifact name, 7=Used if Combo left empty.

Code
{{Ar|'Artifact name'|'slot'|'class'|'cost'|'effect'|'Combo Artifact name'|'use if empty Combo'}}

Example

{{At|Miscellaneous}}
{{Ar|Spyglass|Misc.|Treasure|5000|[[Scouting Range]] +1}}

gives:

Miscellaneous
Artifact Slot Class Price Effect Combination
SpyglassSpyglass Misc. Treasure 5000 Gold Scouting Range +1
'
Artifact Slot Class Cost Effect Combination
 Horn of the Abyss (artifact) Horn of the Abyss Horn of the Abyss Misc Relic 50000 Gold   Raises Fangarms from slain stacks of living creatures