
This section is aimed at contributors to the BGA website. It summarises editorial policy, coding standards and assorted other best practices. It was written for the orginal site and not the new look site from Spring 2008.
However, the section on Composition Tips is new and specifically written for our Drupal environment.
The most important thing about this site is the content. Let there be no doubt about that.
So if you have some valuable content, and it is a choice between slapping it up on the site any old how, or trying to obey all of these guidelines and therefore never getting around to it, do the former.
If you want help in making your content meet these guidelines, then by all means ask the webmaster for help.
Most of these guidelines reflect the general consensus for how things should be done in any quality publication. A few of them are, perhaps, coloured by the prejudices of the webmaster. You will just have to live with that.
Most of these are the same as for the British Go Journal [1].
Double quotation marks should be used only to indicate speech.
Use single quotes to indicate textual quotations, unusual terms, names of publications and in any other situation where some form of emphasis is required.
The word Go must have an initial capital. The same applies to the name of any other game.
The words Black and White must be capitalised according to whether the word is used as a noun or an adjective. Thus: “After Black 23, the white group is dead.” Sometimes this can be hard to resolve. If in doubt, refer to a well produced book—such as the Ishida Joseki Dictionary—to see how it should be done.
Japanese terms such as sente or joseki will not normally be emphasised as they are common currency in the Go player’s language. Unusual terms or those being introduced, for example in an article aimed at beginners, should be set within single quotes, for example ‘Katte Yomi’.
When referring to diagrams, the word Figure should be used to refer to a diagram that constitutes part of a game record. The word Diagram should be used in all other cases.
The words Figure and Diagram should always be capitalised.
If letters are used in a Diagram these should be set in uppercase.
Prefer English, for example (note, not ‘e.g.’) ‘that is,’ rather than ‘i.e.’.
Good typography improves the readability of text.
If you do not yet know typographically correct punctuation and want to learn, there are various [2] tutorials [3] on the web that will help you out.
Once you know what you are trying to achieve - which punctuation characters you should be using - you will need to know how to put them into your HTML code.
The simplest option is to use an editor that understands UTF-8 encoding. Then you can type any Unicode character directly into the document. However, if you can't do that, you will have to type the entity references manually.
With the exception of the two characters ‘&’ and ‘<’, which have to be escaped for reasons of (SG/HT/X)ML syntax, please use numeric character entities.
The table below shows most of the characters that have ever had to used on the BGA site, with their encoding.
| Character | Preferred entity reference | Description |
|---|---|---|
| & | & | Ampersand. |
| < | < | Less than. |
|   | Non-breaking space. | |
| £ | £ | Pound sign. |
| ¥ | £ | Yen sign. |
| ½ | ½ | Half. For example ‘6½ komi’ |
| × | × | Multiplication sign. For example ‘19×19 go board’ |
| – | – | En-dash. Used for ranges. For example ‘6th May–12th June’ |
| — | — | Em-dash. Used—like this—for parenthetical remarks within a sentence. |
| ‘ | ‘ | Single open quote. Use single quotes to indicate textual quotations, unusual terms, names of publications and in any other situation where some form of emphasis is required. |
| ’ | ’ | Apostrophe/Single close quote. Use single quotes to indicate textual quotations, unusual terms, names of publications and in any other situation where some form of emphasis is required. |
| “ | “ | Double open quote. Double quotation marks should be used only to indicate speech. |
| ” | ” | Double close quote. Double quotation marks should be used only to indicate speech. |
| … | … | Ellipsis. |
| ₩ | ₨ | Won sign. |
| € | € | Euro sign. |
| _ | _ | Underscore |
The definitive list of character numbers is the Unicode standard [4]. The standard insists on using hexadecimal numbers, whereas the ones above are decimal. It does not really matter whether you use, say, – or –, but so far this site has fairly consistently used decimal entity references, so you might like to continue to do the same.
The following Drupal Input formats can be used to help you create content:
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
This site allows HTML content. While learning all of HTML may feel intimidating, learning how to use a very small number of the most basic HTML "tags" is very easy. This table provides examples for each tag that is enabled on this site.
For more information see W3C's HTML Specifications [5] or use your favourite search engine to find other sites that explain HTML.
| Tag Description | You Type | You Get |
|---|---|---|
| Anchors are used to make links to other pages. | <a href="http://www.britgo.org">British Go Association</a> | British Go Association [6] |
| Emphasized | <em>Emphasized</em> | Emphasized |
| Strong | <strong>Strong</strong> | Strong |
| Cited | <cite>Cited</cite> | Cited |
| Coded text used to show programming source code | <code>Coded</code> | Coded |
| Unordered list - use the <li> to begin each list item | <ul> <li>First item</li> <li>Second item</li> </ul> |
|
| Ordered list - use the <li> to begin each list item | <ol> <li>First item</li> <li>Second item</li> </ol> |
|
| Definition lists are similar to other HTML lists. <dl> begins the definition list, <dt> begins the definition term and <dd> begins the definition description. | <dl> <dt>First term</dt> <dd>First definition</dd> <dt>Second term</dt> <dd>Second definition</dd> </dl> |
|
Most unusual characters can be directly entered without any problems.
If you do encounter problems, try using HTML character entities. A common example looks like & for an ampersand & character. For a full list of entities see HTML's entities [7] page. Some of the available characters include:
| Character Description | You Type | You Get |
|---|---|---|
| Ampersand | & | & |
| Greater than | > | > |
| Less than | < | < |
| Quotation mark | " | " |
If you know how to script in PHP, Drupal gives you the power to embed any script you like. It will be executed when the page is viewed and dynamically embedded into the page. This gives you amazing flexibility and power, but of course with that comes danger and insecurity if you do not write good code. If you are not familiar with PHP, SQL or with the site engine, avoid experimenting with PHP because you can corrupt your database or render your site insecure or even unusable! If you do not plan to do fancy stuff with your content then you are probably better off with straight HTML.
Remember that the code within each PHP item must be valid PHP code - including things like correctly terminating statements with a semicolon. It is highly recommended that you develop your code separately using a simple test script on top of a test database before migrating to your production environment.
Notes:
print or return statement to output the actual content for your item.A basic example:
You want to have a box with the title "Welcome" that you use to greet your visitors. The content for this box could be created by going:
print t("Welcome visitor, ... welcome message goes here ...");If we are however dealing with a registered user, we can customise the message by using:
global $user; if ($user->uid) { print t("Welcome $user->name, ... welcome message goes here ..."); } else { print t("Welcome visitor, ... welcome message goes here ..."); }
For more in-depth examples, we recommend that you check the existing Drupal code and use it as a starting point, especially for sidebar boxes.
<span class="clear"></span>
In general you don't need to use any specific styling for pages as it is all catered for by the general BGA style sheet. This controls how lists, headings etc. are displayed.
The main heading styles used are H2 and H3, as below:
If you want to style an area of the screen then you can use something like the following:
You can use a table such as in http://www.britgo.org/hof/stacey [10], extracted below, although this creates messy HTML:
<table>
<tr><td>
<a href="/files/trophypics/stacey.jpg">
<img src="/files/trophypics/stacey-t.jpg" title="Stacey Trophy" alt="Stacey Trophy"></a></td>
<td>
<h3>Final Points 2009-10</h3>
1. 38 Matthew Macfadyen<br>
2. 34 Yohei Negi<br>
</td>
<td>
<h3>Top Place Getters 1990-2010</h3>
1. Francis Roads<br>
2. Alistair Wall<br>
3. Matthew Macfadyen
</td>
</tr></table>
[11] |
Final Points 2009-101. 38 Matthew Macfadyen2. 34 Yohei Negi 3. 22 Sandy Taylor |
Top Place Getters 1990-20101. Francis Roads2. Alistair Wall 3. Matthew Macfadyen |
Changing <td> to <td valign="top"> in the second and third columns would align the text at the top of the cells.
Note: If you use a table then you'll always get a horizontal line between rows and before/after the table. Also the total widths must be less than 100% to allow for Internet Explorer bugs.
An example of 3 column table format is the BGJ archive page:
<table>
<tr>
<td width=40% valign=top>
<p > These pages reproduce a selection of old (see note *below) British Go Journals and articles from them. </p>
<br>...
</td>
<td valign="top" width=27%>
<p align="center"> There is also a list of available <a href="/bgj/bgj_updt.html" > BGJs
sorted in order of web updates</a>.
</p>
<br>...
</td>
<td valign="top" width=27%>
<p align="center">Go to the most recent issues</p>
<br>...
</td></tr>
</table>
|
These pages reproduce a selection of old (see note *below) British Go Journals and articles from them. ... |
There is also a list of available BGJs sorted in order of web updates. ... |
Go to the most recent issues ... |
An alternative using pure CSS bits in a two column format is:
<
div style="width:100%;float:left">
See the front page [12] or http://www.britgo.org/hof/trophies.html [13] for an example of this.
However, this doesn't automatically align the various items from side to side as do the table examples above; but the front page shows how to achieve this.
Note: Due to some Drupal issue this must be the last text on the page.
Extract from Forthcoming Tournaments page, note the internal links within the page for key etc.
<p class="navbar">
<a href="#key">Key to the symbols</a> |
<a href="#mobile">The BGA mobile phone</a> |
<a href="#tournorg">To tournament organisers</a> |
<a href="#hostnat">Hosting a national event</a>
</p>
produces
<span class="date">Saturday 29th May - Sunday 30th May. Small board rapid on evening of 28th May.</span>
<span class="location>Mason's Hall, Dundee, <a href="http://multimap.co.uk/map/browse.cgi?pc=DD1+1PE&mapsize=big" >DD1 1PE</a>.</span>
<span class="format" >5 round McMahon. 80 minutes without overtime.</span>
<span class="contact" >Contact xxx</span>
<a href="#rating_class" class="rc">A</a>
<a href="#book_shop" class="bk">BOOKS</a>
<a href="/files/Shropshire2012.pdf" class="entry" title="Shrewsbury Go Tournament flyer(PDF)">More Info</a>
produces
Saturday 29th May - Sunday 30th May. Small board rapid on evening of 28th May. Mason's Hall, Dundee, DD1 1PE [14]. 5 round McMahon. 80 minutes without overtime. Contact xxx A BOOKS More Info [15]
Links:
[1] http://www.britgo.org/bgj/guidelines.html
[2] http://www.alistapart.com/articles/typography/
[3] http://www.alistapart.com/articles/emen/
[4] http://www.unicode.org/charts/
[5] http://www.w3.org/TR/html/
[6] http://www.britgo.org
[7] http://www.w3.org/TR/html4/sgml/entities.html
[8] http://senseis.xmp.net/?HowDiagramsWork
[9] http://daringfireball.net/projects/markdown/syntax
[10] http://www.britgo.org/hof/stacey
[11] http://www.britgo.org/files/trophypics/stacey.jpg
[12] http://www.britgo.org/
[13] http://www.britgo.org/hof/trophies.html
[14] http://multimap.co.uk/map/browse.cgi?pc=DD1+1PE&mapsize=big
[15] http://www.britgo.org/files/Shropshire2012.pdf