Difference between revisions of "Template:VendorTableRow"

From Space Station 13 Wiki
Jump to navigation Jump to search
(More formatting fixes: adds missing {} for quantity and item name parameters, adjust capitalization of parameters since it's case sensitive, remove extra word)
(Formatting Hidden parameter correctly. No piping though)
Line 16: Line 16:
*'''Item Name''' - Self-explanatory. Try to use the capitalization and name used on the UI.   
*'''Item Name''' - Self-explanatory. Try to use the capitalization and name used on the UI.   
*'''Price''' - What's its price? If you don't specify it, there is no price, and if you do, it auto-magically adds formatting, including right-align.
*'''Price''' - What's its price? If you don't specify it, there is no price, and if you do, it auto-magically adds formatting, including right-align.
*'''Hidden''' - Do you need to [[Hacking#Vending Machines and Fabricators|hack]] the vendor first? If so, put Yes. This pipes it through the  [[:Template:Yes|Yes]] and [[:Template:No|No templates]], which handle color, so you don't need to add in {{ }} or color formatting.
*'''Hidden''' - Do you need to [[Hacking#Vending Machines and Fabricators|hack]] the vendor first? If so, put <code>{{Yes}}</code>.  
<onlyinclude>
<onlyinclude>
|-
|-
Line 23: Line 23:
| [[{{{Item Link}}}|{{{Item Name}}}]]  
| [[{{{Item Link}}}|{{{Item Name}}}]]  
{{{Price||style="text-align:right"||}}}
{{{Price||style="text-align:right"||}}}
| {{{{{}}}}}
| {{{Hidden}}}
</onlyinclude>
</onlyinclude>

Revision as of 07:42, 14 July 2023

Usage

{{VendorTableListing
|Image=
|Quantity=
|Item Link=
|Item Name=
|Price=
|Hidden=
}}

Parameters

  • Image - An image of the item being sold in the vending machine, naturally. You don't have to add File:/Image:, but you do need to give the extension. This only accepts one image, so if the item , you should probably use a .gif or some such.
  • Quantity - How many appear in the vending machine by default? This accepts ranges.
  • Item Link - Provide a link to information on said item. You do not need link formatting or a full URL, but don't forget the # (i.e. if you want to link to info on scalpels for this template, you do Medical Objects#Scalpel instead of [[Medical Objects#Scalpel]]. It also accepts links to something within the page, so you can do, say, #Scalpel instead of Medical Objects#Scalpel if you're working on the Medical Objects page.
  • Item Name - Self-explanatory. Try to use the capitalization and name used on the UI.
  • Price - What's its price? If you don't specify it, there is no price, and if you do, it auto-magically adds formatting, including right-align.
  • Hidden - Do you need to hack the vendor first? If so, put style="background:#9F9;vertical-align:middle;text-align:center;" class="table-yes"|Yes.

|- | [[File:{{{Image}}}|center]] | {{{Quantity}}} | [[{{{Item Link}}}|{{{Item Name}}}]]

| {{{Hidden}}}