Template:Database: Difference between revisions

From Wikishire
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1,244: Line 1,244:
|type=county
|type=county
|county town=Carlow
|county town=Carlow
|area=
|area=346
|flag=
|flag=
|badge=
|badge=
Line 1,250: Line 1,250:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=54612
}}
}}
|County Cavan={{#switch:{{{2}}}
|County Cavan={{#switch:{{{2}}}
Line 1,259: Line 1,259:
|type=county
|type=county
|county town=Cavan
|county town=Cavan
|area=
|area=746
|flag=
|flag=
|badge=
|badge=
Line 1,265: Line 1,265:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=73183
}}
}}
|County Clare={{#switch:{{{2}}}
|County Clare={{#switch:{{{2}}}
Line 1,274: Line 1,274:
|type=county
|type=county
|county town=Ennis
|county town=Ennis
|area=
|area=1330
|flag=
|flag=
|badge=
|badge=
Line 1,280: Line 1,280:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=117196
}}
}}
|County Cork={{#switch:{{{2}}}
|County Cork={{#switch:{{{2}}}
Line 1,304: Line 1,304:
|type=county
|type=county
|county town=Lifford
|county town=Lifford
|area=
|area=1869
|flag=
|flag=
|badge=
|badge=
Line 1,310: Line 1,310:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=161,137
}}
}}
|County Dublin={{#switch:{{{2}}}
|County Dublin={{#switch:{{{2}}}
Line 1,319: Line 1,319:
|type=county
|type=county
|county town=Dublin
|county town=Dublin
|area=
|area=356
|flag=
|flag=
|badge=
|badge=
Line 1,325: Line 1,325:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=1270603
}}
}}
|County Galway={{#switch:{{{2}}}
|County Galway={{#switch:{{{2}}}
Line 1,334: Line 1,334:
|type=county
|type=county
|county town=Galway
|county town=Galway
|area=
|area=2374
|flag=
|flag=
|badge=
|badge=
Line 1,340: Line 1,340:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=250541
}}
}}
|County Kerry={{#switch:{{{2}}}
|County Kerry={{#switch:{{{2}}}
Line 1,349: Line 1,349:
|type=county
|type=county
|county town=Tralee
|county town=Tralee
|area=
|area=1832
|flag=
|flag=
|badge=
|badge=
Line 1,355: Line 1,355:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=145502
}}
}}
|County Kildare={{#switch:{{{2}}}
|County Kildare={{#switch:{{{2}}}
Line 1,364: Line 1,364:
|type=county
|type=county
|county town=Naas
|county town=Naas
|area=
|area=654
|flag=
|flag=
|badge=
|badge=
Line 1,370: Line 1,370:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=210312
}}
}}
|County Kilkenny={{#switch:{{{2}}}
|County Kilkenny={{#switch:{{{2}}}
Line 1,379: Line 1,379:
|type=county
|type=county
|county town=Kilkenny
|county town=Kilkenny
|area=
|area=800
|flag=
|flag=
|badge=
|badge=
Line 1,385: Line 1,385:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=95419
}}
}}
|County Laois={{#switch:{{{2}}}
|County Laois={{#switch:{{{2}}}
Line 1,394: Line 1,394:
|type=county
|type=county
|county town=Portlaoise
|county town=Portlaoise
|area=
|area=660
|flag=
|flag=
|badge=
|badge=
Line 1,400: Line 1,400:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=80559
}}
}}
|County Leitrim={{#switch:{{{2}}}
|County Leitrim={{#switch:{{{2}}}
Line 1,409: Line 1,409:
|type=county
|type=county
|county town=Leitrim
|county town=Leitrim
|area=
|area=613
|flag=
|flag=
|badge=
|badge=
Line 1,415: Line 1,415:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=31798
}}
}}
|County Limerick={{#switch:{{{2}}}
|County Limerick={{#switch:{{{2}}}
Line 1,424: Line 1,424:
|type=county
|type=county
|county town=Limerick
|county town=Limerick
|area=
|area=1064
|flag=
|flag=
|badge=
|badge=
Line 1,430: Line 1,430:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=191809
}}
}}
|County Longford={{#switch:{{{2}}}
|County Longford={{#switch:{{{2}}}
Line 1,439: Line 1,439:
|type=county
|type=county
|county town=Longford
|county town=Longford
|area=
|area=421
|flag=
|flag=
|badge=
|badge=
Line 1,445: Line 1,445:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=39000
}}
}}
|County Louth={{#switch:{{{2}}}
|County Louth={{#switch:{{{2}}}
Line 1,454: Line 1,454:
|type=county
|type=county
|county town=Dundalk
|county town=Dundalk
|area=
|area=319
|flag=
|flag=
|badge=
|badge=
Line 1,460: Line 1,460:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=122897
}}
}}
|County Mayo={{#switch:{{{2}}}
|County Mayo={{#switch:{{{2}}}
Line 1,469: Line 1,469:
|type=county
|type=county
|county town=Castlebar
|county town=Castlebar
|area=
|area=2157
|flag=
|flag=
|badge=
|badge=
Line 1,475: Line 1,475:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=130638
}}
}}
|Meath={{#switch:{{{2}}}
|Meath={{#switch:{{{2}}}
Line 1,483: Line 1,483:
|type=county
|type=county
|county town=Navan
|county town=Navan
|area=
|area=904
|flag=
|flag=
|badge=
|badge=
Line 1,489: Line 1,489:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=184135
}}
}}
|County Monaghan={{#switch:{{{2}}}
|County Monaghan={{#switch:{{{2}}}
Line 1,498: Line 1,498:
|type=county
|type=county
|county town=Monaghan
|county town=Monaghan
|area=
|area=500
|flag=
|flag=
|badge=
|badge=
Line 1,504: Line 1,504:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=60483
}}
}}
|County Offaly={{#switch:{{{2}}}
|County Offaly={{#switch:{{{2}}}
Line 1,513: Line 1,513:
|type=county
|type=county
|county town=Tullamore
|county town=Tullamore
|area=
|area=800
|flag=
|flag=
|badge=
|badge=
Line 1,519: Line 1,519:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=76687
}}
}}
|County Roscommon={{#switch:{{{2}}}
|County Roscommon={{#switch:{{{2}}}
Line 1,528: Line 1,528:
|type=county
|type=county
|county town=Roscommon
|county town=Roscommon
|area=
|area=983
|flag=
|flag=
|badge=
|badge=
Line 1,534: Line 1,534:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=64065
}}
}}
|County Sligo={{#switch:{{{2}}}
|County Sligo={{#switch:{{{2}}}
Line 1,543: Line 1,543:
|type=county
|type=county
|county town=Sligo
|county town=Sligo
|area=
|area=709
|flag=
|flag=
|badge=
|badge=
Line 1,549: Line 1,549:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=65393
}}
}}
|County Tipperary={{#switch:{{{2}}}
|County Tipperary={{#switch:{{{2}}}
Line 1,573: Line 1,573:
|type=county
|type=county
|county town=Waterford
|county town=Waterford
|area=
|area=717
|flag=
|flag=
|badge=
|badge=
Line 1,579: Line 1,579:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=113795
}}
}}
|Westmeath={{#switch:{{{2}}}
|Westmeath={{#switch:{{{2}}}
Line 1,587: Line 1,587:
|type=county
|type=county
|county town=Mullingar
|county town=Mullingar
|area=
|area=710
|flag=
|flag=
|badge=
|badge=
Line 1,593: Line 1,593:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=86164
}}
}}
|County Wexford={{#switch:{{{2}}}
|County Wexford={{#switch:{{{2}}}
Line 1,602: Line 1,602:
|type=county
|type=county
|county town=Wexford
|county town=Wexford
|area=
|area=909
|flag=
|flag=
|badge=
|badge=
Line 1,608: Line 1,608:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=145320
}}
}}
|County Wicklow={{#switch:{{{2}}}
|County Wicklow={{#switch:{{{2}}}
Line 1,617: Line 1,617:
|type=county
|type=county
|county town=Wicklow
|county town=Wicklow
|area=
|area=781
|flag=
|flag=
|badge=
|badge=
Line 1,623: Line 1,623:
|HCS code=
|HCS code=
|population 2001=
|population 2001=
|population=
|population=136448
}}
}}
|Akrotiri and Dhekelia={{#switch:{{{2}}}
|Akrotiri and Dhekelia={{#switch:{{{2}}}

Revision as of 14:40, 2 April 2014

Template:Database is a general database constructed as the Mediawiki programme permits, as nested switch functions. The data may be extracted easily whether within an article or in a template.

The database contains counties, territories etc, but also units of measurement, which feed the "Convert" function of Template:Convert.

Examples

The following examples demonstrate how to extract data:

[[File:{{Database|Monmouthshire|flag}}|center|50px]] will give:
{{Database|Monmouthshire|Welsh}} will give: Sir Fynwy

Caution: blank fields

Not every data field is completed nor can be. Care must therefore be taken to ensure that you still achieve the right result in every case.

The first example above but substituting "Ayrshire" in place of "Monmouthshire" would produce an error as there is no Ayrshire flag image, so an {{:if: or {{:ifeq: function should be used where there might be a blank field.