Difference between revisions of "Template:Database"

From Wikishire
Jump to: navigation, search
Line 1,853: Line 1,853:
 
|population 2001=
 
|population 2001=
 
|population 2011=
 
|population 2011=
 +
}}
 +
|Diocese of Bath and Wells={{#switch:{{{2}}}
 +
|arms=Diocese of Bath and Wells arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Birmingham={{#switch:{{{2}}}
 +
|arms=Diocese of Birmingham arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Bristol={{#switch:{{{2}}}
 +
|arms=Diocese of Bristol arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Carlisle={{#switch:{{{2}}}
 +
|arms=Diocese of Carlisle arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Chelmsford={{#switch:{{{2}}}
 +
|arms=Diocese of Chelmsford arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Chester={{#switch:{{{2}}}
 +
|arms=Diocese of Chester arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Coventry={{#switch:{{{2}}}
 +
|arms=Diocese of Coventry arms.svg
 +
|church=Church of England
 
}}
 
}}
 
|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
 +
}}
 +
|Diocese of Ely={{#switch:{{{2}}}
 +
|arms=Diocese of Ely arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Gloucester={{#switch:{{{2}}}
 +
|arms=Diocese of Gloucester arms.svg
 
|church=Church of England
 
|church=Church of England
 
}}
 
}}
Line 1,873: Line 1,909:
 
|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
 +
}}
 +
|Diocese of London={{#switch:{{{2}}}
 +
|arms=Diocese of London arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Manchester={{#switch:{{{2}}}
 +
|arms=Diocese of Manchester arms.svg
 +
|church=Church of England
 
}}
 
}}
 
|Diocese of Newcastle={{#switch:{{{2}}}
 
|Diocese of Newcastle={{#switch:{{{2}}}
 
|arms=
 
|arms=
 +
|church=Church of England
 +
}}
 +
|Diocese of Norwich={{#switch:{{{2}}}
 +
|arms=Diocese of Norwich arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Peterborough={{#switch:{{{2}}}
 +
|arms=Diocese of Peterborough arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of Rochester={{#switch:{{{2}}}
 +
|arms=Diocese of Rochester arms.svg
 +
|church=Church of England
 +
}}
 +
|Diocese of St Albans={{#switch:{{{2}}}
 +
|arms=Diocese of St Albans arms.svg
 
|church=Church of England
 
|church=Church of England
 
}}
 
}}
 
|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
 +
}}
 +
|Diocese of Truro={{#switch:{{{2}}}
 +
|arms=Diocese of Truro arms.svg
 
|church=Church of England
 
|church=Church of England
 
}}
 
}}

Revision as of 21:35, 25 January 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:
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.