Template talk:Recipe list

From Guild Wars 2 Wiki
Jump to: navigation, search

Broken shit doesn't work[edit]

^ lol.

{{Recipe list|Gift of Souls}}
Item Rarity Discipline(s) Rating Ingredients
Antonina.png Antonina GAscended Mystic Forge 0
Sikandar.png Sikandar GAscended Mystic Forge 0
The Crossing.png The Crossing FExotic Mystic Forge 0

-Chieftain AlexUser Chieftain Alex sig.png 11:27, 28 June 2013 (UTC)

It's because 'Requires rating' is a sort field, which implicitly makes it a required field. If a page doesn't have that populated, it is culled from the results. Since The Mad Moon is crafted in the Trollforge, it doesn't have a rating.
Solutions: A) Remove 'Requires rating' from the sort criteria, B) Automatically set rating to 0 for trollforge, C) Accept it as a "feature" that trollforge recipes don't appear in this list, D) Bitch and moan at Zomorros. —Dr Ishmael User Dr ishmael Diablo the chicken.png 12:28, 28 June 2013 (UTC)
setting to 0 for sorting--Relyk ~ talk < 12:41, 28 June 2013 (UTC)

Formatting bug with Internet Explorer[edit]

About 80% of the time there seems to be a bug with the rarity column in any version of IE, where the background of the column renders as transparent instead of alternating between brown+transparent. I don't know why, but when I rearrange the rarity column to be elsewhere, this doesn't happen. (it makes the most sense in the current position so theres nothing we can do really) -Chieftain AlexUser Chieftain Alex sig.png 07:55, 3 July 2013 (UTC)

#6 sounds like us. -Chieftain AlexUser Chieftain Alex sig.png 08:32, 5 July 2013 (UTC)
I checked a bunch of pages using this in IE9, and I don't see this bug at all - the rarity column always has the same bg color as the rest of the row. —Dr Ishmael User Dr ishmael Diablo the chicken.png 14:27, 5 July 2013 (UTC)
ie10 -Chieftain AlexUser Chieftain Alex sig.png 16:41, 5 July 2013 (UTC)
Hm, don't know if I have access to 10 (might be on my home PC, I can check later today). In OP you mentioned "any version of IE," though, so I wonder why I'm not seeing it in 9. —Dr Ishmael User Dr ishmael Diablo the chicken.png 15:54, 5 July 2013 (UTC)
I had assumed that from the F12 dev options in IE10 that selecting "Browser mode: IE9" would be equivalent to the true IE9 representation. it appears I was wrong to assume that. -Chieftain AlexUser Chieftain Alex sig.png 16:41, 5 July 2013 (UTC)

Apostrophe in Pagename might be a problem[edit]

Master's Salvage Kit and Journeyman's Salvage Kit produce a bugged recipe list. My guess is that the apostrophe in the page name is somehow not given correctly to the template. I remember encounter a similar issue on the jumping puzzle nav.

Anyhow a current workaround is just to put in the pagename manually. This avoids the issue. {{recipe list|Master's Salvage Kit}} instead of just {{recipe list}} - Yandere Talk to me... 10:19, 8 July 2013 (UTC)

Yep, I had to do that for Tiger's Eye Pebble yesterday. I don't know why the default {{PAGENAME}} within the template gives different results from giving the explicit value in the template call. —Dr Ishmael User Dr ishmael Diablo the chicken.png 14:08, 8 July 2013 (UTC)
Fixed. {{PAGENAME}} performs HTML-encoding on punctuation within the name, so the apostrophe comes out as &#39;. Just added a #replace to revert that, and it works. —Dr Ishmael User Dr ishmael Diablo the chicken.png 21:50, 11 July 2013 (UTC)
Ah nice! - Yandere Talk to me... 22:06, 11 July 2013 (UTC)

Two suggestions[edit]

  1. When the discipline parameter is given, I don't think that we really need to show the discipline coloum.
  2. It would be probably useful to have a mystic forge recipe output. In this case neither the discipline coloum nor the rating cloum is needed.

- Yandere Talk to me... 12:51, 8 July 2013 (UTC)

I'm working on a better way to do that. I'll probably call it recipe list by discipline and it would generate the entire "Recipes requiring X" section like I put on Orichalcum Ingot yesterday.
However, the discipline column could still be useful in identifying which recipes are shared between disciplines, like insignia/inscriptions and refinement. The best thing would be to split those into their own table, like some of the refined pages had them [1], but I'm not sure if it's possible to do that in a semantic query with the current properties. Maybe we just need to add a flag to recipes, if they have >1 discipline listed, {{#set:Is shared recipe=Y}} else N. —Dr Ishmael User Dr ishmael Diablo the chicken.png 14:05, 8 July 2013 (UTC)
{{#ifeq: {{#var: last discipline|{{{<discipline input from semantic query>}}}}} | {{{<discipline input from semantic query>}}} | code to close previous table then a title with the {{{<discipline input from semantic query>}}} in it, followed by a new tableheader. | else nothing }}
...<-- normal row format -->
{{#vardefine: last discipline|{{{<discipline input from semantic query>}}}}}
I don't know if it sorts everything before displaying or after. If its after calculating the query results but before displaying, something along the pre-text above would work.
If its sorted after the results are formatted, no way to do it :/ - 14:21, 8 July 2013 (UTC)
I've written code like that before, and it's very fragile. In this case, it would break on any shared recipe where multiple disciplines are returned. —Dr Ishmael User Dr ishmael Diablo the chicken.png 14:25, 8 July 2013 (UTC)
{{Recipe list by discipline}}, ready go! Both of your suggestions are incorporated. —Dr Ishmael User Dr ishmael Diablo the chicken.png 20:49, 8 July 2013 (UTC)
Awesome! ^^ - Yandere Talk to me... 21:27, 8 July 2013 (UTC)

Missing Output quantities[edit]

I threw this template up on Lump of Tin and noticed a rather damning issue, it doesn't give any indication as to the output quantity. The way that table looks now, its like 10 copper ore goes into making one bronze bar. I assume this is something that could be added pretty easily, but I also know I probably shouldn't touch anything, with my inexperienced, accident prone hands. Psycho Robot (talk) 18:48, 10 July 2013 (UTC)

The only problem is that the vast majority (over 96%) of recipes have an output quantity of 1. So in most cases, quantity is not a desirable output of this template.
I agree that in the rare cases where quantity != 1 it is a useful and necessary datum to display. We just need to find a way to do it that doesn't disrupt the layout for everyone else - i.e., it definitely should not be a column in the table. Any suggestions? —Dr Ishmael User Dr ishmael Diablo the chicken.png 19:54, 10 July 2013 (UTC)
Bronze Ingot.png Bronze Ingot (x10)
-Chieftain AlexUser Chieftain Alex sig.png 21:45, 10 July 2013 (UTC)
Looks good to me, nice and simple. We can always spiffy it up later. —Dr Ishmael User Dr ishmael Diablo the chicken.png 22:06, 10 July 2013 (UTC)

borked format, reason unknown[edit]

I'm tired (1AM), but on Pile of Ascalonian Herbs, the format is broken beneath {{recipe list}} - the category bar spans 100%, smw data spans 100% too. The format is equally broken if using more than one row template, e.g.
{{recipe list header}}
{{recipe list row|Pile of Zesty Herbs}}
{{recipe list row|Spicy Pumpkin Cookie}}

fix me, I am broken. -Chieftain AlexUser Chieftain Alex sig.png 00:20, 15 July 2013 (UTC)

Not breaking for me with the row template--Relyk ~ talk < 00:53, 15 July 2013 (UTC)
Ishmael removed the closing div tag on recipe list result format.--Relyk ~ talk < 01:06, 15 July 2013 (UTC)