Template talk:Eat

From Wikivoyage
Jump to navigation Jump to search
Swept in from the pub

Whenever complete sentences are typed in to the content= parameter of the "Eat" listing template, the last sentence always ends with two periods (full stops). This does not seem to be a problem with Template:Buy, Template:Drink, etc. I have no knowledge of how to work with templates. Please advise. -- AndreCarrotflower (talk) 06:30, 11 March 2014 (UTC)[reply]

Can you point to a specific example? WOSlinker modified Template:Listing today to add a period after the price when there is both template content and a price, but the change doesn't look like it should add an extra period [1]. -- Ryan • (talk) • 06:54, 11 March 2014 (UTC)[reply]
Pretty much everything at Buffalo/Allentown and the Delaware District#Eat, for example. -- AndreCarrotflower (talk) 06:57, 11 March 2014 (UTC)[reply]
On second look it appears that the change would add an extra period whenever there is both a price and content, so I've reverted it pending further clarification. -- Ryan • (talk) • 07:00, 11 March 2014 (UTC)[reply]
Thanks. -- AndreCarrotflower (talk) 07:05, 11 March 2014 (UTC)[reply]
Sorry about that. I had added the extra . as I was seeing a number of listings with the content and the price running into each other, for example:
  • Title. Something Price.
As the content did not end with a fullstop.
  • Title. Something
So I'll have to do something that checks to see if the last character of content is a . or a , and if not adds one. -- WOSlinker (talk) 07:10, 11 March 2014 (UTC)[reply]

I sometimes see a double .. on listings where the hours ends in a fullstop, so that could do with something similar. -- WOSlinker (talk) 07:13, 11 March 2014 (UTC)[reply]

  • Title. Hours.. Something