Template:Artifact: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
m (giveup with empty parameters as default values)
(Returned to previous version with colors.)
Line 1: Line 1:
{| class="wikitable" align=right
{| align=right border=1 cellpadding=3 cellspacing=0 style="background-color: #D2B48C; border: 1px solid"
! colspan=3 width=260px | {{PAGENAME}}
| colspan=4 bgcolor=9B7350 | '''{{PAGENAME}}'''
|-
|-
| rowspan=4 width=80px align=center | [[Image:Artifact {{{1|{{{name|{{PAGENAME}}}}}}}}.gif|44px|{{PAGENAME}}]]
| rowspan=3 | [[Image:Artifact {{{name|{{PAGENAME}}}}}.gif|44px]]
| width=80px| '''Class:'''     || [[List_of_artifacts_sorted_by_class|{{{2|{{{class|classes}}}}}}]]
            | '''Class:''' {{{class|}}}
|-
|-
             | '''Slot:'''     || [[Artifact|{{{3|{{{slot|slots}}}}}}]]
             | '''Equipped in:''' {{{equip|}}}
|-
|-
             | '''Base cost:''' || [[Gold|{{{4|{{{cost|}}}}}}]] {{Gold}}
             | '''Basic cost:''' {{{cost|}}} {{Gold}}
|-
            | '''Effect:'''    || [[List_of_artifacts_sorted_by_equip_slot|{{{5|{{{effect|effects}}}}}}]]
|}<noinclude>
|}<noinclude>


Line 15: Line 13:
Copy the code below at the beginning of the artifact article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "A" is not the same as "a".  
Copy the code below at the beginning of the artifact article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "A" is not the same as "a".  


{|
{| style="background: transparent;"
|<pre>{{Artifact
| <pre>{{Artifact
  | name  = {{PAGENAME}}
  | name  = {{PAGENAME}}
  | class  =  
  | class  =  
  | slot  =  
  | equip  =  
  | cost  =  
  | cost  =  
  | effect =  
  | effect =  
Line 25: Line 23:
|}
|}


'''or'''
Change names with appropriate values:
{|
|<pre>{{Artifact|name|class|slot|cost|effect}}</pre>
|}
Not sure how to make empty name param for default <nowiki>{{PAGENAME}}</nowiki>. Probably it's the old wikimedia version, bcoz #if parameter does not work.
[[Category:Help templates|Artifact]]</noinclude>
[[Category:Help templates|Artifact]]</noinclude>

Revision as of 08:26, 5 March 2014

Artifact
File:Artifact Artifact.gif Class:
Equipped in:
Basic cost: Gold

How to use

Copy the code below at the beginning of the artifact article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "A" is not the same as "a".

{{Artifact
 | name   = {{PAGENAME}}
 | class  = 
 | equip  = 
 | cost   = 
 | effect = 
}}