Talk: Feature quote

From A Wiki of Ice and Fire
Revision as of 11:08, 22 May 2009 by Scafloc (talk | contribs)
Jump to: navigation, search

Okay, I didn't quite understand how to add quotes, so I need somebody else to add them for me. Here they are. (with their sources, in case the person adding wants to look them up for context)

"You've got the wrong man! I'm a different dwarf with a hideous facial scar!" (Jaime tells Tyrion that it would be a good idea to change his name, and Tyrion points out the pointlessness)

"In the dark, I am the Knight of Flowers." (Tyrion to Sansa, on the night of their marriage)

"A girl should be bloody too. This is her work." -- Jaqen H'ghar to Arya (The battle inside Harrenhall)

"Careful with those, you don't want to get blood all over those pretty white cloaks." - Bronn to the Kingsguard (when Tyrion rescues Sansa from Joffrey)

"Men are such faithless creatures." -Varys Tyrion sighed. "Who's the traitor today?" The eunuch handed him a scroll. "So much villainy, it sings a sad song for our age. Did honor die with our fathers?" "My father is not dead yet." --- Varys and Tyrion (when he firsts tells him about the Antler Men)

Hi I changed the template: added the new quotes and changed the code that determines which quote number is to be selected. Instead of using the day of the month to determine the quote no, the template uses a template that computes the day of the year. Because we don't have (yet) 365 quotes the template computes the mod of the current number of quotes (of 365 minus the day of the year). I hope it works now.
Regards, Scafloc 13:41, 8 January 2009 (CST)

Thanks for the work on this and many other templates, Scafloc! Unfortunately, the upgrade to 1.14 seems to have broken some templates -- at least, that one is currently not working from the looks of the front page. Something about 'expression' not being recognized. --Ran 15:20, 21 May 2009 (UTC)
The problem with the expression has to do with the Template:Day in year. For some reason using that template does not result in a number. Because the code in Feature quote expects a number this results in an error. As a temporary solution I include the complete code of Template:Day in year. Then the day of the year is computed and the feature quote works. Scafloc 11:08, 22 May 2009 (UTC)