Module:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
dlw>Alex4401 No edit summary |
Verdite cat (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | For general help, see [https://support.wiki.gg/wiki/DRUID_infoboxes DRUID infoboxes] | ||
== Usage == | |||
=== At Template:Infobox item === | |||
<pre> | |||
<includeonly>{{#invoke:Infobox|main | |||
|kind=example-1 | |||
|sep=, | |||
|image={{#if:{{{image|}}}|[[File:{{{image}}}{{!}}300px]]}} | |||
|sections=General Info, Stats | |||
|General Info=Region,Element | |||
|Stats=Attack, HP, Armor, Attack Speed | |||
|Attack Speed={{#if:{{{Attack Speed|}}}|{{{Attack Speed}}}%}} | |||
}}</includeonly><noinclude>{{documentation}}</noinclude> | |||
</pre> | |||
=== On an item page === | |||
<pre> | |||
{{Infobox item | |||
|title= <!-- the title of the infobox --> | |||
|Region= <!-- the value in Label1 field --> | |||
|Element= <!-- the value in Label2 field --> | |||
|Attack= <!-- the value in Label3 field --> | |||
}} | |||
</pre> |
Latest revision as of 02:27, 17 September 2024
For general help, see DRUID infoboxes
Usage
At Template:Infobox item
<includeonly>{{#invoke:Infobox|main |kind=example-1 |sep=, |image={{#if:{{{image|}}}|[[File:{{{image}}}{{!}}300px]]}} |sections=General Info, Stats |General Info=Region,Element |Stats=Attack, HP, Armor, Attack Speed |Attack Speed={{#if:{{{Attack Speed|}}}|{{{Attack Speed}}}%}} }}</includeonly><noinclude>{{documentation}}</noinclude>
On an item page
{{Infobox item |title= <!-- the title of the infobox --> |Region= <!-- the value in Label1 field --> |Element= <!-- the value in Label2 field --> |Attack= <!-- the value in Label3 field --> }}