Difference between revisions of "Template:Clothing row"

From UCGO-WIKI
Jump to navigation Jump to search
(Created page with "<includeonly>|- | {{{name}}} || {{{slot}}} || {{{skill}}} || {{{material1}}} || {{{material2}}} || {{{GQstrength|}}} || {{{GQspirit|}}} || {{{GQluck|}}} </includeonly> <noincl...")
 
(added buy/sell code)
 
Line 1: Line 1:
 
<includeonly>|-
 
<includeonly>|-
| {{{name}}} || {{{slot}}} || {{{skill}}} || {{{material1}}} || {{{material2}}} || {{{GQstrength|}}} || {{{GQspirit|}}} || {{{GQluck|}}} </includeonly>
+
| {{{name}}} || {{{slot}}} || {{{skill}}} || {{{material1}}} || {{{material2}}} || {{{GQstrength|}}} || {{{GQspirit|}}} || {{{GQluck|}}}
 +
|| {{#ifeq: {{{canBuy}}} | 1 | ${{{buyPrice}}} | Cannot Buy }} || {{#ifeq: {{{canSell}}} | 1 | ${{{sellPrice}}} | Cannot Sell }} || {{#ifeq: {{{GQcanBuy}}} | 1 | ${{{GQbuyPrice}}} | Cannot Buy }} || {{#ifeq: {{{GQcanSell}}} | 1 | ${{{GQsellPrice}}} | Cannot Sell }} </includeonly>
 
<noinclude><code><nowiki>{{Template:Clothing row}}</nowiki></code> is used to build the [[Tailoring]] data page item by item.
 
<noinclude><code><nowiki>{{Template:Clothing row}}</nowiki></code> is used to build the [[Tailoring]] data page item by item.
  
 
  <nowiki>{| class="wikitable"</nowiki>
 
  <nowiki>{| class="wikitable"</nowiki>
  <nowiki>! Name !! Slot !! Skill Req !! Material 1 !! Material 2 !! GQ Strength !! GQ Spirit !! GQ Luck</nowiki>
+
  <nowiki>! Name !! Slot !! Skill Req !! Material 1 !! Material 2 !! GQ Strength !! GQ Spirit !! GQ Luck !! Buy For !! Sell For !! Buy For (GQ) !! Sell For (GQ)</nowiki>
  <nowiki>{{Template:Clothing row|GQstrength=10|GQspirit=5|GQluck=20}}</nowiki>
+
  <nowiki>{{Template:Clothing row|GQstrength=10|GQspirit=5|GQluck=20|canBuy=1|buyPrice=10000|canSell=1|sellPrice=5000|GQsellPrice=20000}}</nowiki>
  <nowiki>{{Template:Clothing row|name=Wire frames|slot=Glasses|skill=10|material1=2x Cotton Yarn|material2 = 1x any dye}}</nowiki>
+
  <nowiki>{{Template:Clothing row|name=Wire frames|slot=Glasses|skill=10|material1=2x Cotton Yarn|material2 = 1x any dye|GQsellPrice=}}</nowiki>
 
  <nowiki>{{Template:Clothing row}}</nowiki>
 
  <nowiki>{{Template:Clothing row}}</nowiki>
 
  <nowiki>|}</nowiki>
 
  <nowiki>|}</nowiki>
Line 13: Line 14:
  
 
{| class="wikitable"
 
{| class="wikitable"
! Name !! Slot !! Skill Req !! Material 1 !! Material 2 !! GQ Strength !! GQ Spirit !! GQ Luck
+
! Name !! Slot !! Skill Req !! Material 1 !! Material 2 !! GQ Strength !! GQ Spirit !! GQ Luck !! Buy For !! Sell For !! Buy For (GQ) !! Sell For (GQ)
{{Template:Clothing row|GQstrength=10|GQspirit=5|GQluck=20}}
+
{{Template:Clothing row|GQstrength=10|GQspirit=5|GQluck=20|canBuy=1|buyPrice=10000|canSell=1|sellPrice=5000|GQsellPrice=20000}}
{{Template:Clothing row|name=Wire frames|slot=Glasses|skill=10|material1=2x Cotton Yarn|material2 = 1x any dye}}
+
{{Template:Clothing row|name=Wire frames|slot=Glasses|skill=10|material1=2x Cotton Yarn|material2 = 1x any dye|GQsellPrice=}}
 
{{Template:Clothing row}}
 
{{Template:Clothing row}}
 
|}
 
|}

Latest revision as of 23:22, 15 February 2023

{{Template:Clothing row}} is used to build the Tailoring data page item by item.

{| class="wikitable"
! Name !! Slot !! Skill Req !! Material 1 !! Material 2 !! GQ Strength !! GQ Spirit !! GQ Luck !! Buy For !! Sell For !! Buy For (GQ) !! Sell For (GQ)
{{Template:Clothing row|GQstrength=10|GQspirit=5|GQluck=20|canBuy=1|buyPrice=10000|canSell=1|sellPrice=5000|GQsellPrice=20000}}
{{Template:Clothing row|name=Wire frames|slot=Glasses|skill=10|material1=2x Cotton Yarn|material2 = 1x any dye|GQsellPrice=}}
{{Template:Clothing row}}
|}

produces:

Name Slot Skill Req Material 1 Material 2 GQ Strength GQ Spirit GQ Luck Buy For Sell For Buy For (GQ) Sell For (GQ)
{{{name}}} {{{slot}}} {{{skill}}} {{{material1}}} {{{material2}}} 10 5 20 $10000 $5000 Cannot Buy Cannot Sell
Wire frames Glasses 10 2x Cotton Yarn 1x any dye Cannot Buy Cannot Sell Cannot Buy Cannot Sell
{{{name}}} {{{slot}}} {{{skill}}} {{{material1}}} {{{material2}}} Cannot Buy Cannot Sell Cannot Buy Cannot Sell

Note that {{{GQstrength}}}, {{{GQspirit}}}, and {{{GQluck}}} are blank in the 2nd and 3rd rows because they default that way, whereas the other values are required.