Help on formatting of articles

Creative Commons Licence [Some Rights Reserved]   Text © Copyright July 2008, David Hawgood; licensed for reuse under a Creative Commons Licence.
Images also under a similar Creative Commons licence.


This article shows each feature available for formatting articles, inserting images, maps, and tables. Directly following the example of each feature is the code needed to use it when editing an article.

This is about the publicly viewable Articles sectionExternal link.

Headings

[h2]Headings[/h2]

Sub heading

[h3]Sub heading[/h3]

Sub sub heading

[h4]Sub sub heading[/h4]


Note that h2, h3 and h4 headings are put into a contents list, top right of the article.
Note also that [h1] and [h5] are not actioned as headings, and that h2 h3 h4 have to be lower case h to be actioned.


Text formatting

Appearance of text

Text and bold text and italics and big text and small text
Text and [b]bold text[/b] and [i]italics[/i] and [big]big text[/big] and [small]small text[/small]

Monospaced text

iiiii
MMMMM
12345


[tt]iiiii
MMMMM
12345[/tt]

Bullets


Start each bullet line with an asterisk -
* Item one
* Item two
* Item three and if you keep on adding text and adding text and adding text and adding text and adding text and adding text and adding text and adding text this is how it looks.

Numbered list

Start each line with a hash (#) - must have a space after it -
  1. Item one
  2. Item two
  3. Item three and if you keep on adding text and adding text and adding text and adding text and adding text and adding text and adding text and adding text this is how it looks.

# Item one
# Item two
# Item three and if you keep on adding text and adding text and adding text and adding text and adding text and adding text and adding text and adding text this is how it looks.

Horizontal rule



[hr/]

Images

Geograph photographs and their titles

TQ1876 : Kew Gardens Temperate House from the Pagoda by David Hawgood
TQ1876 : Kew Gardens Temperate House from the Pagoda

[[[227173]]]
[[227173]]

TQ1876 : Kew Gardens Temperate House from the Pagoda by David Hawgood
View of the Temperate House at Kew Gardens from the top of the pagoda. The public cannot normally climb the pagoda, but it was opened for a few months in summer 2006


[image id=227173 text=View of the Temperate House at Kew Gardens from the top of the pagoda. The public cannot normally climb the pagoda, but it was opened for a few months in summer 2006]

External images



Peacock in Sri Lanka, copyright David Hawgood.
[img=http://www.hawgood.co.uk/photo/SriLanka/wild123t.jpg]
If including an external image to display in an article you should make sure you have permission from the owner of the site referenced; the image used here is on the site of the author of this article, David Hawgood.

Links

Link external to Geograph

Peacock in Uda Walawe, Sri LankaExternal link
[url=http://www.hawgood.co.uk/photo/SriLanka/peacock.htm]Peacock in Uda Walawe, Sri Lanka[/url]

Peacock in Sri Lanka, see photo LinkExternal link
Peacock in Sri Lanka, see photo http://www.hawgood.co.uk/photo/SriLanka/peacock.htmExternal link

An internet link, starting http:// or www, appears with the word "Link"

Grid reference links within geograph


SD2605 Formby Point SD2605
B9212 Lough Barra B9212
A4000 (all at sea) A4000
Letters and numbers which can be a grid reference are interpreted as such, and are made into a link to the Geograph information for the relevant grid square.
Watch out for this if you happen to want to refer to an A or B road by number!
To stop it happening put an exclamation mark before the grid reference:
!SD2605 !B9212 !A4000
The letters must be upper case to be treated as grid references - sd2605 b9212 a4000 are not treated as grid references.


Position of text after image - float

TQ1876 : Kew Gardens Temperate House from the Pagoda by David Hawgood Without float codes, text starts after bottom right of image, and if there is enough text it continues below the image after reaching the right margin.
[[[227173]]] Without float codes, text starts after bottom right of image, and if there is enough text it continues below the image after reaching the right margin.

TQ1876 : Kew Gardens Temperate House from the Pagoda by David Hawgood
With float codes, text starts after top right of image, for several lines if there is enough text to fill up the text beyond one line,

a break code makes it continue below the image.
[float][[[227173]]][/float] With float codes, text starts after top right of image, for several lines if there is enough text to fill up the text beyond one line, [br/] a break code makes it continue below the image.

The [float] [/float] pair are around the code which calls the image. The [br/] is only needed to make the text continue below the image.

Hiding and revealing text

This is used for quiz answers and hints. To reveal, select the hidden text. In the example it is between the {} braces, but you can use any visible characters to show the user what to select.
Answer:{Hidden text}
Answer:{[reveal]Hidden text[/reveal]}




Table

heading 1heading 2heading 3
cell 1cell 2cell 3
cell 4cell 5cell 6


--------------------------------
* | heading 1 | heading 2 | heading 3 |
| cell 1 | cell 2 | cell 3 |
| cell 4 | cell 5 | cell 6 |
--------------------------------


The number of dashes starting/ending the table is not critical, but needs at least 7.
The * on the first row makes it a heading.
The spaces either side of the middle | are required.


The number of columns and rows is effectively unlimited, but each row needs the same number of columns.

Maps

Sections of recent 1:50,000 Ordnance Survey maps for England, Scotland, Wales and the Isle of Man can be displayed. Maps of Ireland (Northern Ireland and Eire) are not available using the syntax shown here.
  1. smallmap - 1km square. For 8 digit grid reference the displayed map has that reference at its centre. See examples for display with 4 and 6 digit references.
  2. map - 2km square, with the 1km square of the 4, 6 or 8 digit grid reference at the centre. For 6 or 8 digits a target circle is displayed, moved within the map section to the position of the grid reference.

Note that map and smallmap must be lower case - not MAP or SMALLMAP.

Examples of 1km square maps

The first three examples show the effect of changing the number of digits.
SK 17 51 and SK 175 515 and SK 1755 5155 all give the same position of the map, with the target circle at SK 1755 5155. The map centred on SK 1700 5100 is also shown.
SK 17 51 does not give a target circle.

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 17 51]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 175 515]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1755 5155]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1700 5100]

The next examples show the size of the target circle, by moving the circle up progressively until it is just on the car park sign. The circle is always at the centre of a 1 km square map display - the area shown by the map changes as the target position changes.

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5173]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5177]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5185]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5190]

Examples of 2km square maps


The larger 2km square map is centred on the grid square within which the 4 or 6 or 8 digit grid reference falls. A target circle can be moved within that grid square.

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
[map SK 17 51] 4 digit reference, no target circle

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
+
1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
[map SK 1780 5190] 6 0r 8 digit reference moves the target circle within the grid square.

Map version

The Geograph website has available two sets of 1:50,000 scale OS maps, one from 2006, the other from 2008. You can specify which to display. For 2006, put revA after the grid reference. For 2008 map, put revB. If you put neither you get the most recent map. This has been used to show a "road under construction" map symbol where the road has now been built and current maps no longer show the "under construction" symbol. In the example below, the line of a cycle route past the Eton rowing lake has been changed - and the OS symbols have been changed. The example is "smallmap" but it works on "map" as well.

SU9278 : Thames Valley Cycle Route by Eton rowing lake by David Hawgood 1:50,000 Modern Day Landranger(TM) Map © Crown Copyright 2006 map 1:50,000 Modern Day Landranger(TM) Map © Crown Copyright 2008 map
[[[896056]]] [smallmap SU 9275 7865 revA] 2006 map [smallmap SU 9275 7865 revB] 2008 map


Showing article syntax

Hopefully only needed in this article.
Precede each [ (opening square bracket) by ! (exclamation mark).
![b]
- and displaying that required two exclamation marks - !![b]

For bullets, put a space before the asterisk or hash symbol
For table, put a space before the line of spaces to stop it functioning.

Tests

This section is for the author of this article to make syntax tests, it will probably be removed later.

KML
You are not logged in login | register