Template:VendorTableRow: Difference between revisions

From Space Station 13 Wiki
Jump to navigation Jump to search
Set default parameter for Note to empty so it doesn't display if omitted
Having separate Item Name and Item Link parameters is proving unwieldy and I'm running into some exceptions that aren't easy to handle, so combining those. Might be worth revisiting in the future
Line 2: Line 2:
| scope="row" | [[File:{{{Image}}}|center]]
| scope="row" | [[File:{{{Image}}}|center]]
| {{{Quantity}}}
| {{{Quantity}}}
| [[{{{Item Link}}}|{{{Item Name}}}]] {{#if: {{{Note|}}} | ({{{Note}}})}}
| {{{Item Name}}} {{#if: {{{Note|}}} | ({{{Note}}})}}
{{#if: {{{Price|}}} | {{!}}style="text-align:right"{{!}}{{{Price}}}}}
{{#if: {{{Price|}}} | {{!}}style="text-align:right"{{!}}{{{Price}}}}}
| {{#switch: {{{Is Hidden?}}} | Yes = {{Yes}} | No = {{No}}}}</includeonly><noinclude>{{User:Studenterhue/Template:VendorTableListing/Documentation}}</noinclude>
| {{#switch: {{{Is Hidden?}}} | Yes = {{Yes}} | No = {{No}}}}</includeonly><noinclude>{{User:Studenterhue/Template:VendorTableListing/Documentation}}</noinclude>

Revision as of 05:33, 22 July 2023