Actions

Talk

Pubs

From PubNight


I've been playing a bit with templates.  Here's how it works.

Each pub has a "last visited" template page, containing a date string like "27 January 2006".  This page is named by the pub digraph (just for each) followed by _lv (as I expect to create others of these).

So in the "pubs" page, last visited has been replaced with a call to this template.
On the pubs own page, the pub's digraph is passed to the "footer" template.

See the Royal Oak for an example.

It's been painful working this out - the audit trail has got full of crud as a result!

DONT Do any more of this - I'm investigating complex templates and trying to find out if we can do it with one template that we pass a parameter to which returns a value Steve

I cannot find any way to get an empty string  if a template is missing, so there are a bunch of ugly entries in the "last visited" column on pubs.  These need creating by clicking on the mess, and the template either needs a non-breaking space for empty, or a string like NEVER for places we've never been seen in.

I'll edit digraphs later, to remove all the digraphs and link to this page, leaving just a discussion of PDDGs, and perhaps the scans of the original list.



> If you are adding a new pub to the list you can either do it by cutting and pasting or you can do it by right clicking and inserting a row (which is probably easier!)

Cutting and pasting does give you smaller fonts though - the default font in tables is far too large.

> We've called the Old Spot at Dursley the Old Spot - which might get confused with the beer of the same name....

Yes - rename it to "Old Spot Dursley", create "Uley Old Spot" for the beer, and create a disambiguation page.