Template talk:Glossary of contract bridge

prehistory

 * This solo discussion by Template author User:P64 is imported from Wikipedia talk:WikiProject Contract bridge with minor revisions to fit the context. --P64 (talk) 17:05, 7 October 2011 (UTC)

begin import

2011-08-31 23:13 UTC.[covering more than one desirable Template] ''The given code and given expansion are suggestions only. Details may vary depending on the whether primary use in References or in External links is expected. Perhaps alternative expansions, not given here, can be toggled with another parameter.''

It will be useful to develop this template Link to any Glossary entry with defined id
 * {wpcbglossary | id=team}
 * =>team

drafted {User:P64/Sandbox} 2011-10-06 19:34 UTC. For example,
 * generates
 * which is linked to the Glossary entry "team". The draft uses two parameter values. If only one is provided, it should be used twice, but I don't know that yet.
 * which is linked to the Glossary entry "team". The draft uses two parameter values. If only one is provided, it should be used twice, but I don't know that yet.

This needs a name, perhaps {Glossarycb}? {Gwpcb}? {WPCBg}?

2011-10-07 16:57 UTC. The title must be capitalized but title Template:Gcb supports call by lowercase {gcb}, which is quick to type and easy to remember? Same for 'Gcbt' and {gcbt} —initialism for 'Glossary of contract bridge terms', the article title. So I suggest 'Gcb' or 'Gcbt'.

end import

Simplest case
After today's revision, This works as-presumably-intended if the term does appear in the glossary and serves as its own id there. For example,
 * in the simplest case, the code  and   surrounds the glossary term
 * the glossary term is the value of both parameters.

displays

which is linked to the glossary entry 'Deal'. --P64 (talk) 14:46, 3 November 2011 (UTC)

inside parentheses, brackets and braces
and that resolution breaks the illustrations in this section -P64 2015-01-06
 * displays
 * displays
 * displays []
 * displays

I can live without brackets and braces, which are merely icing on the cake, but parentheses are useful. It's the same result if the third parameter is included:
 * displays

If there is a way of suppressing the unwanted space, I couldn't find it. Narky Blert (talk) 16:30, 12 August 2014 (UTC)


 * How about .  It displays
 * Newwhist (talk) 18:14, 12 August 2014 (UTC)


 * That also works for brackets:
 * displays
 * and brackets can be useful when explaining something in a quote (e.g. the obsolete use of "bid" to mean "contract"). It doesn't work for braces of course, but so what? Perhaps not perfect typesetting, but certainly good enough! (I've changed the section title to something more descriptive, in case anyone else ever has the same query.) Narky Blert (talk) 18:57, 12 August 2014 (UTC)


 * The leading space that was unwanted (we agree) was specified in the template code by a space following the crucial pipe. I revised the template by deleting that one character and the display no longer includes a leading space.
 * (This fixes the problem as we knew it and necessarily breaks those illustrations of the problem within this section.) --P64 (talk) 21:36, 6 January 2015 (UTC)

P.S. For braces,
 * --if you know what I mean, which is that the pair of braces immediately preceding and following 'deal' are separately enclosed within nowiki–/nowiki tags (which differs from what you see, interpreting the first /nowiki tag as closing the first nowiki tag, if you know what I mean)--

displays. --P64 (talk) 21:51, 6 January 2015 (UTC)