Template:VendorTableRow: Difference between revisions
Jump to navigation
Jump to search
Studenterhue (talk | contribs) Another attempt |
Studenterhue (talk | contribs) Worked, but let's see if this is equivalent |
||
| Line 1: | Line 1: | ||
<noinclude>==Usage== | |||
<noinclude> | |||
==Usage== | |||
<pre> | <pre> | ||
{{VendorTableListing | {{VendorTableListing | ||
| Line 24: | Line 17: | ||
*'''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. | ||
*'''Is Hidden?''' - Do you need to [[Hacking#Vending Machines and Fabricators|hack]] the vendor to see this item? If so, put <code>Yes</code>; if not, put <code>No</code> (it's case sensitive, so <code>yes</code> and <code>no</code> will ''not'' work.) This automatically pipes it into the [[:Template:Yes|Yes]] and [[:Template:No|No templates]], so you don't have to add color formatting or the curly braces ({{}}). | *'''Is Hidden?''' - Do you need to [[Hacking#Vending Machines and Fabricators|hack]] the vendor to see this item? If so, put <code>Yes</code>; if not, put <code>No</code> (it's case sensitive, so <code>yes</code> and <code>no</code> will ''not'' work.) This automatically pipes it into the [[:Template:Yes|Yes]] and [[:Template:No|No templates]], so you don't have to add color formatting or the curly braces ({{}}). | ||
==Contents of the Template== | ==Contents of the Template== | ||
This part contains the markup used to create the template. Edit this part for if you want to change the template itself rather than the documentation. | This part contains the markup used to create the template. Edit this part for if you want to change the template itself rather than the documentation. | ||
</noinclude> | </noinclude> | ||
|- | |||
| [[File:{{{Image}}}|center]] | |||
| {{{Quantity}}} | |||
| [[{{{Item Link}}}|{{{Item Name}}}]] {{#switch: {{{Add Note?}}} | Yes = ({{{Note}}})| No =}} | |||
{{#switch: {{{Price Shown?}}} | Yes = {{!}}style="text-align:right"{{!}}{{{Price}}}}} | |||
| {{#switch: {{{Is Hidden?}}} | Yes = {{Yes}} | No = {{No}}}} | |||
Revision as of 05:35, 19 July 2023
Usage
{{VendorTableListing
|Image=
|Quantity=
|Item Link=
|Item Name=
|Price=
|Is 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#Scalpelinstead of[[Medical Objects#Scalpel]]. It also accepts links to something within the page, so you can do, say,#Scalpelinstead ofMedical Objects#Scalpelif 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.
- Is Hidden? - Do you need to hack the vendor to see this item? If so, put
Yes; if not, putNo(it's case sensitive, soyesandnowill not work.) This automatically pipes it into the Yes and No templates, so you don't have to add color formatting or the curly braces ({{}}).
Contents of the Template
This part contains the markup used to create the template. Edit this part for if you want to change the template itself rather than the documentation.
|- | [[File:{{{Image}}}|center]] | {{{Quantity}}} | [[{{{Item Link}}}|{{{Item Name}}}]]
|