Template:Infobox Item: Difference between revisions

From [N8]
Jump to navigation Jump to search
Created page with "{| class="gsw-infobox plainlinks {{parentitle|{{{name}}}}}" id="infobox-city" cellpadding="0" cellspacing="0" | class="infobox-image" colspan="2" | {{#if:{{{image|}}}|{{clean..."
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="gsw-infobox plainlinks {{parentitle|{{{name}}}}}" id="infobox-city" cellpadding="0" cellspacing="0"
{| class="gsw-infobox plainlinks {{parentitle|{{{name}}}}}" id="infobox-city" cellpadding="0" cellspacing="0"
| class="infobox-image" colspan="2" | {{#if:{{{image|}}}|{{clean image|file={{{image}}}|width=300px}}|{{Mainonly|[[Category:Needs image]]}}[[Special:Upload|Please upload an image!]]}}
| class="infobox-image" colspan="2" | {{#if:{{{image|}}}|{{clean image|file={{{image}}}|width=300|height=300}}|{{Mainonly|[[Category:Needs image]]}}[[Special:Upload|Please upload an image!]]}}
|-
|-
! class="infobox-header" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}'''
! class="infobox-header" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}'''
Line 8: Line 8:
{{!}}-}}
{{!}}-}}
! width="1%" nowrap="nowrap" | Release date
! width="1%" nowrap="nowrap" | Release date
| {{#if:{{{release|}}}|{{{release}}} {{#ifeq:{{{release}}}|RuneScape Classic||{{#if:{{{update|}}}|([[Update:{{{update}}}|Update]])|(Update unknown) <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small><includeonly>{{Mainonly|[[Category:Needs update added]]}}</includeonly>}}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}}
| {{#if:{{{release|}}}|{{{release}}} {{#ifeq:{{{release}}}|Gemini Station||{{#if:{{{update|}}}|([[Update:Game Update - {{{update}}}|Update]])|(Update unknown) <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small><includeonly>{{Mainonly|[[Category:Needs update added]]}}</includeonly>}}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}}
|-
|-
{{#if:{{{release2|}}}|
{{#if:{{{release2|}}}|
! width="1%" nowrap="nowrap" {{!}} Accessible since
! width="1%" nowrap="nowrap" {{!}} Accessible since
{{!}} {{#if:{{{release2|}}}|{{{release2}}} {{#ifeq:{{{release2}}}|RuneScape Classic||{{#if:{{{update2|}}}|([[Update:{{{update2}}}|Update]])|(Update unknown) <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small><includeonly>{{Mainonly|[[Category:Needs update added]]}}</includeonly>}}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}}}}
{{!}} {{#if:{{{release2|}}}|{{{release2}}} {{#ifeq:{{{release2}}}|Gemini Station||{{#if:{{{update2|}}}|([[Update:Game Update - {{{update2}}}|Update]])|(Update unknown) <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small><includeonly>{{Mainonly|[[Category:Needs update added]]}}</includeonly>}}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}}}}
! nowrap="nowrap" | Size
| {{#if:{{{size|}}}|{{{size}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}}
|-
|-
! nowrap="nowrap" | No. of buy locations
! nowrap="nowrap" | No. of buy locations
Line 31: Line 33:
|-
|-
| class="infobox-template-links" colspan="2" | [[Template:Infobox Items|Infobox]] {{*}} [[Template talk:Infobox Items|Talk page]]
| class="infobox-template-links" colspan="2" | [[Template:Infobox Items|Infobox]] {{*}} [[Template talk:Infobox Items|Talk page]]
|}{{PreloadPage}}{{mainonly|[[Category:Items]][[Category:Locations]]}}<noinclude>
|}{{PreloadPage}}{{mainonly|[[Category:Items]]}}<noinclude>
{{/doc}}</noinclude>
{{/doc}}<templatedata>
{
"params": {
"name": {
"label": "Name",
"description": "Item Name",
"required": true
},
"image": {
"label": "Image",
"description": "Image Name",
"example": "Black Ice Shards.png",
"required": true
},
"release": {
"label": "Release",
"description": "Date of Release, if none then leave blank",
"suggested": true
},
"update": {
"label": "Update",
"description": "Name of the Update Page, if none then leave blank",
"suggested": true
},
"buy": {
"label": "Buy",
"description": "# of Locations you can buy the item from",
"required": true
},
"sell": {
"label": "Sell",
"description": "# of Locations you can sell the item to",
"required": true
},
"imports": {
"label": "Imports",
"description": "List of Import Locations",
"required": true,
"example": "* {{plinksized|Jupiter|pic=Jupiter Icon|txt=Jupiter|size=30}}"
},
"exports": {
"label": "Exports",
"description": "List of Export Locations",
"required": true,
"example": "* {{plinksized|Jupiter|pic=Jupiter Icon|txt=Jupiter|size=30}}"
},
"Cargo": {
"label": "Cargo",
"description": "Using {{Cargo}} Template to Display Size of Item",
"example": "{{Cargo|M}}",
"required": true
}
},
"description": "An infobox used to display item information on the right side of the page.",
"format": "block",
"paramOrder": [
"name",
"image",
"release",
"update",
"Cargo",
"buy",
"sell",
"imports",
"exports"
]
}
</templatedata></noinclude>

Latest revision as of 10:22, 14 January 2021

Template documentation
This documentation is transcluded from Template:Infobox Item/doc. [edit] [purge]

Documentation

Usage

{{Infobox Item
|name = Item Name
|image = Image Name, e.g. Black Ice Shards.png
|release = Date of Release, If none then leave blank
|update = Name of the Update Page, If none then leave blank
|size = {{/Size}} This is solely for wiki hacks to get a 1 cell table to work in the infobox
|buy = # of locations you can buy the item from
|sell = # of locations you can sell the item to
|imports = List of import locations
|exports = List of export locations
}}

Example

{{Infobox Item
|name = Black Ice Shards
|image = Black Ice Shards.png
|release = 
|update = 
|size = {{/Size}}
|buy = 0
|sell = 1
|imports = 
* None
|exports = 
* {{plinksized|Eris|pic=Eris Icon|txt=Eris|size=30}}
}}

An infobox used to display item information on the right side of the page.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Item Name

Unknownrequired
Imageimage

Image Name

Example
Black Ice Shards.png
Unknownrequired
Releaserelease

Date of Release, if none then leave blank

Unknownsuggested
Updateupdate

Name of the Update Page, if none then leave blank

Unknownsuggested
CargoCargo

Using {{Cargo}} Template to Display Size of Item

Example
{{Cargo|M}}
Unknownrequired
Buybuy

# of Locations you can buy the item from

Unknownrequired
Sellsell

# of Locations you can sell the item to

Unknownrequired
Importsimports

List of Import Locations

Example
* {{plinksized|Jupiter|pic=Jupiter Icon|txt=Jupiter|size=30}}
Unknownrequired
Exportsexports

List of Export Locations

Example
* {{plinksized|Jupiter|pic=Jupiter Icon|txt=Jupiter|size=30}}
Unknownrequired