Difference between revisions of "Template:Database"

From Wikishire
Jump to: navigation, search
m (Suffolk badge)
(Southwell and Nottingham)
Line 1,897: Line 1,897:
 
|arms=Diocese of Bath and Wells arms.svg
 
|arms=Diocese of Bath and Wells arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Birmingham={{#switch:{{{2}}}
 
|Diocese of Birmingham={{#switch:{{{2}}}
 
|arms=Diocese of Birmingham arms.svg
 
|arms=Diocese of Birmingham arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Bristol={{#switch:{{{2}}}
 
|Diocese of Bristol={{#switch:{{{2}}}
 
|arms=Diocese of Bristol arms.svg
 
|arms=Diocese of Bristol arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Carlisle={{#switch:{{{2}}}
 
|Diocese of Carlisle={{#switch:{{{2}}}
 
|arms=Diocese of Carlisle arms.svg
 
|arms=Diocese of Carlisle arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=York
 
}}
 
}}
 
|Diocese of Chelmsford={{#switch:{{{2}}}
 
|Diocese of Chelmsford={{#switch:{{{2}}}
 
|arms=Diocese of Chelmsford arms.svg
 
|arms=Diocese of Chelmsford arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Chester={{#switch:{{{2}}}
 
|Diocese of Chester={{#switch:{{{2}}}
 
|arms=Diocese of Chester arms.svg
 
|arms=Diocese of Chester arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Coventry={{#switch:{{{2}}}
 
|Diocese of Coventry={{#switch:{{{2}}}
 
|arms=Diocese of Coventry arms.svg
 
|arms=Diocese of Coventry arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Durham={{#switch:{{{2}}}
 
|Diocese of Durham={{#switch:{{{2}}}
 
|arms=Angl-Ebor-Durham-Arms.svg
 
|arms=Angl-Ebor-Durham-Arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=York
 
}}
 
}}
 
|Diocese of Ely={{#switch:{{{2}}}
 
|Diocese of Ely={{#switch:{{{2}}}
 
|arms=Diocese of Ely arms.svg
 
|arms=Diocese of Ely arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Gloucester={{#switch:{{{2}}}
 
|Diocese of Gloucester={{#switch:{{{2}}}
 
|arms=Diocese of Gloucester arms.svg
 
|arms=Diocese of Gloucester arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Guildford={{#switch:{{{2}}}
 
|Diocese of Guildford={{#switch:{{{2}}}
 
|arms=Diocese of Guildford arms.svg
 
|arms=Diocese of Guildford arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Hereford={{#switch:{{{2}}}
 
|Diocese of Hereford={{#switch:{{{2}}}
 
|arms=Diocese of Hereford arms.svg
 
|arms=Diocese of Hereford arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Leeds={{#switch:{{{2}}}
 
|Diocese of Leeds={{#switch:{{{2}}}
 
|arms=Diocese of Leeds arms.svg
 
|arms=Diocese of Leeds arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=York
 
}}
 
}}
 
|Diocese of Lichfield={{#switch:{{{2}}}
 
|Diocese of Lichfield={{#switch:{{{2}}}
 
|arms=Diocese of Lichfield arms.svg
 
|arms=Diocese of Lichfield arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Llandaff={{#switch:{{{2}}}
 
|Diocese of Llandaff={{#switch:{{{2}}}
 
|arms=Coat of arms of the Diocese of Llandaff.svg
 
|arms=Coat of arms of the Diocese of Llandaff.svg
 
|church=Church in Wales
 
|church=Church in Wales
 +
|province=Wales
 
}}
 
}}
 
|Diocese of London={{#switch:{{{2}}}
 
|Diocese of London={{#switch:{{{2}}}
 
|arms=Diocese of London arms.svg
 
|arms=Diocese of London arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Manchester={{#switch:{{{2}}}
 
|Diocese of Manchester={{#switch:{{{2}}}
 
|arms=Diocese of Manchester arms.svg
 
|arms=Diocese of Manchester arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=York
 
}}
 
}}
 
|Diocese of Newcastle={{#switch:{{{2}}}
 
|Diocese of Newcastle={{#switch:{{{2}}}
 
|arms=
 
|arms=
 
|church=Church of England
 
|church=Church of England
 +
|province=York
 
}}
 
}}
 
|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
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Peterborough={{#switch:{{{2}}}
 
|Diocese of Peterborough={{#switch:{{{2}}}
 
|arms=Diocese of Peterborough arms.svg
 
|arms=Diocese of Peterborough arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Rochester={{#switch:{{{2}}}
 
|Diocese of Rochester={{#switch:{{{2}}}
 
|arms=Diocese of Rochester arms.svg
 
|arms=Diocese of Rochester arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of St Albans={{#switch:{{{2}}}
 
|Diocese of St Albans={{#switch:{{{2}}}
 
|arms=Diocese of St Albans arms.svg
 
|arms=Diocese of St Albans arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Southwark={{#switch:{{{2}}}
 
|Diocese of Southwark={{#switch:{{{2}}}
 
|arms=Diocese of Southwark arms.svg
 
|arms=Diocese of Southwark arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 +
}}
 +
|Diocese of Southwell and Nottingham={{#switch:{{{2}}}
 +
|arms=Diocese of Southwell and Nottingham arms.svg
 +
|church=Church of England
 +
|province=York
 
}}
 
}}
 
|Diocese of Truro={{#switch:{{{2}}}
 
|Diocese of Truro={{#switch:{{{2}}}
 
|arms=Diocese of Truro arms.svg
 
|arms=Diocese of Truro arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Winchester={{#switch:{{{2}}}
 
|Diocese of Winchester={{#switch:{{{2}}}
 
|arms=Diocese of Winchester arms.svg
 
|arms=Diocese of Winchester arms.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|Diocese of Worcester={{#switch:{{{2}}}
 
|Diocese of Worcester={{#switch:{{{2}}}
 
|arms=Shield of the Diocese of Worcester.svg
 
|arms=Shield of the Diocese of Worcester.svg
 
|church=Church of England
 
|church=Church of England
 +
|province=Canterbury
 
}}
 
}}
 
|airport={{#switch:{{{2}}}
 
|airport={{#switch:{{{2}}}

Revision as of 12:45, 25 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:
Flag of Monmouthshire.svg
{{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.