More actions
Created page with "{| class="infobox" style="float:right; width:250px; border: 1px solid #aaaaaa; padding: 0.2em; margin-left: 1em; margin-bottom: 0.5em; background-color: #f9f9f9;" |+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}} {{#if: {{{image|}}} | ! colspan="2" style="text-align:center;" | [[File:{{{image|}}}|{{{imagesize|200px}}}]] }} {{#if: {{{introduced|}}} | |- ! scope="row" style="text-align:left; padding-left:0.5em; background-colo..." |
No edit summary |
||
Line 1: | Line 1: | ||
{| class="infobox" style="float:right; width:250px; border: 1px solid #aaaaaa; padding: 0.2em; margin-left: 1em; margin-bottom: 0.5em; background-color: #f9f9f9;" | {| class="infobox" style="float:right; width:250px; border: 1px solid #aaaaaa; padding: 0.2em; margin-left: 1em; margin-bottom: 0.5em; background-color: #f9f9f9;" | ||
|+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}} | |+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}} | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | <!-- Check if image parameter is provided --> | ||
! colspan="2" style="text-align:center;" | [[File:{{{image | |- <!-- Start a new row specifically for the image --> | ||
}} | | colspan="2" style="text-align:center;" | [[File:{{{image}}}|{{{imagesize|200px}}}]] <!-- Image cell using '|', spanning 2 columns --> | ||
{{#if: {{{introduced|}}} | | }} <!-- End image conditional --> | ||
|- | {{#if: {{{introduced|}}} | <!-- Check if introduced parameter is provided --> | ||
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Introduced | |- <!-- Start a new row --> | ||
| style="padding-left:0.5em;" | {{{introduced}}} | ! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Introduced <!-- Label cell (using '!') --> | ||
}} | | style="padding-left:0.5em;" | {{{introduced}}} <!-- Value cell (using '|') --> | ||
}} <!-- End introduced conditional --> | |||
{{#if: {{{type|}}} | | {{#if: {{{type|}}} | | ||
|- | |- | ||
Line 39: | Line 40: | ||
| style="padding-left:0.5em;" | {{{use_location}}} | | style="padding-left:0.5em;" | {{{use_location}}} | ||
}} | }} | ||
<!-- Add more parameters as needed using the same | <!-- Add more parameters as needed using the same structure --> | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
[[Category:Infobox Templates]] | [[Category:Infobox Templates]] | ||
<!-- Add documentation here --> | <!-- Add documentation here --> | ||
This template creates a standard item infobox. | |||
'''Parameters:''' | |||
* name: Item name (defaults to page name) | |||
* image: Filename of the item image | |||
* imagesize: Size for the image (defaults to 200px) | |||
* introduced: Patch or date introduced | |||
* type: Item type (e.g., Container, Weapon) | |||
* category: Vendor category (e.g., Misc, Reagents) | |||
* vendor: NPC or source selling the item | |||
* dyeable: Is the item dyeable? (e.g., Yes, No, specific dye type) | |||
* access: Who can use/access it? (e.g., Owner Only, Public) | |||
* use_location: Where must it be to function? (e.g., Secured in House) | |||
* Add custom parameters as needed... | |||
</noinclude> | </noinclude> |
Revision as of 05:58, 4 April 2025
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;"
- |
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;"
- |
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;"
- |
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;"
- |
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;"
- |
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;"
- |
scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" |
---|
This template creates a standard item infobox.
Parameters:
- name: Item name (defaults to page name)
- image: Filename of the item image
- imagesize: Size for the image (defaults to 200px)
- introduced: Patch or date introduced
- type: Item type (e.g., Container, Weapon)
- category: Vendor category (e.g., Misc, Reagents)
- vendor: NPC or source selling the item
- dyeable: Is the item dyeable? (e.g., Yes, No, specific dye type)
- access: Who can use/access it? (e.g., Owner Only, Public)
- use_location: Where must it be to function? (e.g., Secured in House)
- Add custom parameters as needed...