FAQ - Adding a UK County or US State


UK County

The process for a UK County is virtually identical, but the page names reflect Chapman codes. If you are not familiar with Chapman Codes, please review the FAQ page UK Chapman County Codes

Firstly, create a new structure for the County concerned. The "Structure ID:" should be GB_County_YYY (where YYY is the three character Chapman code for the county) and the "Alias:" should be the county name in full followed by the Country, for example "Hampshire, England". At this stage there is no need to provide any further information.

The newly created structure GB_County_YYY will now be visible in the list of structures. Hover your mouse over the new item and note down the "page_ref_id=" number, you'll need this later. (For example, Hampshire is GB_County_HAM and has a page_ref_id=1442)

Secondly, please add a new page called Y10-GB-YYY to the existing structure Y10-Gleanings. This new page should be given a "Page alias:" of the full county name plus Chapman code in brackets. Now edit the new page Y10-GB-YYY and insert the following three lines of code
Skeleton Source - Y10-GB-YYY Page
{INCLUDE(page=>"GB_County_YYY" start="Marker1 ~/tc~" stop="!!Gleanings From")}{INCLUDE}
!!Gleanings From
{toc maxdepth=3 structId=9999}
Again there are two minor changes you need to make
  1. Replace the YYY by the code for the new county you are adding
  2. Replace 9999 by the "page_ref_id=" number you noted for your new structure GB_County_YYY.
Please make no other changes to these lines of code.
Please complete the page description as Yyyy (YYY), England For example, "Hampshire (HAM), England".
You can now save this file, it is complete and should not need further change. When you initially view it, it will seem pretty spartan, but it will dynamically include the content you're just about to add.

Thirdly, now edit the GB_County_YYY file. Delete the system added line "Table of Contents: {toc}" and replace it with the following code
Skeleton Source -GB_County_YYY Page
-=((Country_GB|Great Britain))~hs~ ~hs~>>~hs~ ~hs~ ((Y10-GB-ENG|England))=-

!Yyyy (YYY), England

!!Location and Adjacent Counties

For additional information see [http://en.wikipedia.org/wiki/Yyyy|Wikipedia] 
and [http://www.genuki.org.uk/big/eng/YYY/index.html|GENUKI:Yyyy]

!!Gleanings From
{toc maxdepth=3 sortalpha=alpha}
Replace Yyyy with the name of the new County you are adding. Beyond that, this merely serves as a shell within which you can add information about the new County, but please do not change the first three or last three lines of the file. See Hampshire, England as an example.
Please complete the page description as "County Page - Yyyy" For example, "County Page - Hampshire".

You can now add Towns and Parishes to this newly created county.

Contributors to this page: MartinB. and @TRP-GC .
Page last modified on Sunday 08 of April, 2018 03:13:05 CDT by MartinB..