Template:Infobox item: Difference between revisions

From nkrs200 Wiki
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px;"
{| class="infobox" style="font-size:89%; width:300px;"
|-
|-
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em; text-align:center;" | {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
|- style="text-align:center;"
| colspan="2" style="padding:0.5em;" | [[{{{image|File:Placeholder item.png}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
| colspan="2" style="padding:0.5em;" | [[{{{image|File:Placeholder item.png}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
|-
|-
! colspan="2" style="background-color:#3366CC; color:#ffffff;" | Vital statistics
! colspan="2" style="background-color:#3366CC; color:#ffffff; text-align:center;" | Vital statistics
|-
|-
| style="width:30%;" | '''Type'''
| style="width:30%;" | '''Type'''

Latest revision as of 01:44, 19 February 2024

Infobox item
File:Placeholder item.png
Vital statistics
Type {{{type}}}
Effects {{{effects}}}
Source {{{source}}}
Cost to buy {{{buy}}}
Cost to sell {{{sell}}}


Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create an item infobox.
Syntax
Type {{infobox item|<...>}} somewhere, with parameters as shown below.
Sample output
{{infobox item
| name       = Bob's Petal [defaults to pagename]
| image      = File:Example.jpg
| imagewidth = [defaults to 250]
| caption    = Bob the Flower
| type       = Petal
| effects    = Adds +1 prettiness
| source     = Earth
| buy        = 1 Seed
| sell       = 5 Pollen
}}

Results in...

Bob's Petal
Example.jpg
Bob the Flower
Vital statistics
Type Petal
Effects Adds +1 prettiness
Source Earth
Cost to buy 1 Seed
Cost to sell 5 Pollen

Visit Template:Infobox item/doc to edit this text! (How does this work?)