Template:Database: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Southwell and Nottingham
RB (talk | contribs)
Diocese of Oxford & C of W dioceses
Line 1,893: Line 1,893:
|population 2001=
|population 2001=
|population=
|population=
}}
|Diocese of Bangor={{#switch:{{{2}}}
|arms=Coat of arms of the Diocese of Bangor.svg
|church=Church in Wales
|province=Wales
}}
}}
|Diocese of Bath and Wells={{#switch:{{{2}}}
|Diocese of Bath and Wells={{#switch:{{{2}}}
Line 1,978: Line 1,983:
|church=Church of England
|church=Church of England
|province=York
|province=York
}}
|Diocese of Monmouth={{#switch:{{{2}}}
|arms=Coat of arms of the Diocese of Monmouth.svg
|church=Church in Wales
|province=Wales
}}
}}
|Diocese of Newcastle={{#switch:{{{2}}}
|Diocese of Newcastle={{#switch:{{{2}}}
Line 1,986: Line 1,996:
|Diocese of Norwich={{#switch:{{{2}}}
|Diocese of Norwich={{#switch:{{{2}}}
|arms=Diocese of Norwich arms.svg
|arms=Diocese of Norwich arms.svg
|church=Church of England
|province=Canterbury
}}
|Diocese of Oxford={{#switch:{{{2}}}
|arms=Diocese of Oxford arms.svg
|church=Church of England
|church=Church of England
|province=Canterbury
|province=Canterbury
Line 2,003: Line 2,018:
|church=Church of England
|church=Church of England
|province=Canterbury
|province=Canterbury
}}
|Diocese of St Asaph={{#switch:{{{2}}}
|arms=Coat of arms of the Diocese of St Asaph.svg
|church=Church in Wales
|province=Wales
}}
|Diocese of St David's={{#switch:{{{2}}}
|arms=Coat of arms of the Diocese of St Davids.svg
|church=Church in Wales
|province=Wales
}}
}}
|Diocese of Southwark={{#switch:{{{2}}}
|Diocese of Southwark={{#switch:{{{2}}}
Line 2,013: Line 2,038:
|church=Church of England
|church=Church of England
|province=York
|province=York
}}
|Diocese of Swansea and Brecon={{#switch:{{{2}}}
|arms=Coat of arms of the Diocese of Swansea & Brecon.svg
|church=Church in Wales
|province=Wales
}}
}}
|Diocese of Truro={{#switch:{{{2}}}
|Diocese of Truro={{#switch:{{{2}}}

Revision as of 00:27, 26 July 2015

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.