Template talk:Craft table

From Guild Wars 2 Wiki
Jump to navigationJump to search

some missing entries[edit]

querying Destroyer Greatsword

{{#ask: [[Has canonical name::Destroyer Greatsword]]
 | ?Has game icon
 | ?Has canonical name
 | ?Has weapon type
 | ?Has weapon strength
 | ?Has item rarity
 | ?Has equipment prefix
 | ?Gives attribute bonus
 | ?Has upgrade component
}}

I know from the page that the strength is 995 – 1100; the rarity is exotic; and that the upgrade component slot is unused. a) I think we should add these to the subobjects. b) surely the canonical name would be "Apothecary's Destroyer Greatsword". (also, my query was pretty lame, but shouldn't equip prefix display here?) -Chieftain AlexUser Chieftain Alex sig.png 11:42, 16 September 2013 (UTC)

Your query condition [[Has canonical name::Destroyer Greatsword]] shouldn't be returning any results, because that doesn't match the canonical name of any item or recipe. I had omitted the prefix from the recipe subobject's canonical name property for some reason, so I fixed that. The single result that's left is because the infobox on the page is still setting properties, and I'm not sure how we want to deal with that.
Here's the query you were looking for:
 Has game iconHas canonical nameHas weapon typeHas weapon strengthHas item rarityHas equipment prefixHas upgrade component
Destroyer GreatswordDestroyer Greatsword.pngDestroyer GreatswordGreatswordExotic
Destroyer Greatsword (skin)Destroyer Greatsword.pngDestroyer Greatsword
Destroyer Greatsword#itemct1Destroyer Greatsword.pngApothecary's Destroyer GreatswordGreatsword995 (1,100)Exoticapothecary
Destroyer Greatsword#itemct2Destroyer Greatsword.pngAssassin's Destroyer GreatswordGreatsword995 (1,100)Exoticassassin
Destroyer Greatsword#itemct3Destroyer Greatsword.pngBerserker's Destroyer GreatswordGreatsword995 (1,100)Exoticberserker
Destroyer Greatsword#itemct4Destroyer Greatsword.pngCarrion Destroyer GreatswordGreatsword995 (1,100)Exoticcarrion
Destroyer Greatsword#itemct5Destroyer Greatsword.pngCleric's Destroyer GreatswordGreatsword995 (1,100)Exoticcleric
Destroyer Greatsword#itemct6Destroyer Greatsword.pngKnight's Destroyer GreatswordGreatsword995 (1,100)Exoticknight
Destroyer Greatsword#itemct7Destroyer Greatsword.pngRampager's Destroyer GreatswordGreatsword995 (1,100)Exoticrampager
Destroyer Greatsword#itemct8Destroyer Greatsword.pngSentinel's Destroyer GreatswordGreatsword995 (1,100)Exoticsentinel
Destroyer Greatsword#itemct9Destroyer Greatsword.pngValkyrie Destroyer GreatswordGreatsword995 (1,100)Exoticvalkyrie
Destroyer Greatsword#recipe1Apothecary's Destroyer Greatsword
Destroyer Greatsword#recipe2Assassin's Destroyer Greatsword
Destroyer Greatsword#recipe3Berserker's Destroyer Greatsword
Destroyer Greatsword#recipe4Carrion Destroyer Greatsword
Destroyer Greatsword#recipe5Cleric's Destroyer Greatsword
Destroyer Greatsword#recipe6Knight's Destroyer Greatsword
Destroyer Greatsword#recipe7Rampager's Destroyer Greatsword
Destroyer Greatsword#recipe8Sentinel's Destroyer Greatsword
Destroyer Greatsword#recipe9Valkyrie Destroyer Greatsword
Dr Ishmael User Dr ishmael Diablo the chicken.png 12:40, 16 September 2013 (UTC)

Transcluding to crafting overview pages[edit]

Can the table be wrapped in <includeonly> tags so that it can be transcluded to crafting overview pages, such as Artificer/Novice Recipes? Ideally what I'd want to do is something like:

==Scepters==
''Main article: [[Crude scepter]]''
{{:Crude scepter}}
==Focuses==
''Main article: [[Crude scepter]]''
{{:Crude scepter}}
==Staffs==
''Main article: [[Crude scepter]]''
{{:Crude scepter}}
==Tridents==
''Main article: [[Crude scepter]]''
{{:Crude scepter}}

and that would give all the info that would be needed on that page. Is that something that would be a good idea? Psycho Robot (talk) 00:09, 19 September 2013 (UTC)

NOOOOOOOOOooooooo... that's not what you want at all. This template is setting a whole bunch of SMW subobjects, and you do NOT want to have the same thing in two places as that would duplicate all the subobjects. This template sets semantic properties based on input data.
For displaying semantic data based on querying the properties, you want to look at Category:Recipe formatting templates. Your example above would be achieved with {{recipe table|type=<weapon type>}} (don't have to specify discipline because all weapon recipes are distinct to a single discipline). —Dr Ishmael User Dr ishmael Diablo the chicken.png 00:15, 19 September 2013 (UTC)
Ok I figured out why I felt like that wouldn't work right - the individual pages were still out there meaning that things were being listed twice and making the resulting seem too long to be useful. Now I fixed it and its much more manageable. Now the only issue I see is that the simple variants aren't identified and appear in the third position on the table instead of the first position which would be logical. Is there any way that can be easily fixed, or should we just deal with it? Psycho Robot (talk) 00:37, 19 September 2013 (UTC)
I don't know of an easy way to do that, no. Even if we added "(Simple)" to the name, that would actually force it to sort last. —Dr Ishmael User Dr ishmael Diablo the chicken.png 02:00, 19 September 2013 (UTC)

Armor labeled as weapons[edit]

As one can see in Draconic Helm and in all other crafted armor tables, the first column identifies the piece of armor as a weapon. I peeked in the template and the term "weapon" is manually entered and isn't part of any switch. You screwed up big this time, ishmael. Psycho Robot (talk) 17:38, 12 October 2013 (UTC)

panic over, fixed. (swapped the column header for {{#var:ct_supertype}}) -Chieftain AlexUser Chieftain Alex sig.png 17:43, 12 October 2013 (UTC)

Sorting by trading post price[edit]

Would love it if there was an option to be able to sort the trading post price column, my use-case for this was figuring out the cheapest variant to buy to unlock an armor/weapon skin to add to wardrobe (but default it to sorted alphabetically/what it is currently since I think people would only be interested in crafting "one" specific variant). Would possibly need to split the trading post price column into buy and sell price columns. --ItVictor (talk) 00:19, 11 February 2024 (UTC)