Template:Artifact: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(another try with old version coding)
(test3)
Line 5: Line 5:
| width=80px| '''Class:'''    || [[List_of_artifacts_sorted_by_class|{{{2|{{{class|classes}}}}}}]]
| width=80px| '''Class:'''    || [[List_of_artifacts_sorted_by_class|{{{2|{{{class|classes}}}}}}]]
|-
|-
             | '''Slot:'''      || [[Artifact|{{{slo {{{b|t}}} |slots}}}]]
             | '''Slot:'''      || [[Artifact|{{{3|{{P|ac=slots}}}}}]]
|-
|-
             | '''Base cost:''' || [[Gold|{{{4|{{{cost|–}}}}}}]] {{Gold}}
             | '''Base cost:''' || [[Gold|{{{4|{{{cost|–}}}}}}]] {{Gold}}
Line 11: Line 11:
             | '''Effect:'''    || [[List_of_artifacts_sorted_by_equip_slot|{{{5|{{{effect|effects}}}}}}]]
             | '''Effect:'''    || [[List_of_artifacts_sorted_by_equip_slot|{{{5|{{{effect|effects}}}}}}]]
|}<noinclude>
|}<noinclude>
                                                {{{slot {{{b|}}} |f({{{b}}})}}}
 
== How to use ==
== 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".  
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".  
Line 29: Line 29:
Change names with appropriate values:
Change names with appropriate values:
{|
{|
|<pre>{{Artifact||class|slot|cost|effect}}</pre>
|<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 21:51, 4 March 2014

Artifact
Artifact Class: classes
Slot: [[Artifact|Template:P]]
Base cost: Gold
Effect: effects

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  = 
 | slot   = 
 | cost   = 
 | effect = 
}}

or

Change names with appropriate values:

{{Artifact|name|class|slot|cost|effect}}

Not sure how to make empty name param for default {{PAGENAME}}. Probably it's the old wikimedia version, bcoz #if parameter does not work.