Template:Database: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Bucks flag etc
No edit summary
Line 625: Line 625:
|Chapman code=KKD
|Chapman code=KKD
|HCS code=KCB
|HCS code=KCB
|population 2001=
|population 2001=46,206
|population 2011=
|population 2011=
}}
}}
Line 638: Line 638:
|Chapman code=LKS
|Chapman code=LKS
|HCS code=LNK
|HCS code=LNK
|population 2001=
|population 2001=860,936
|population 2011=
|population 2011=
}}
}}
Line 704: Line 704:
|Chapman code=MER
|Chapman code=MER
|HCS code=MRN
|HCS code=MRN
|population 2001=
|population 2001=37,260
|population 2011=
|population 2011=
}}
}}
Line 730: Line 730:
|Chapman code=MLN
|Chapman code=MLN
|HCS code=MLT
|HCS code=MLT
|population 2001=
|population 2001=555,418
|population 2011=
|population 2011=
}}
}}
Line 743: Line 743:
|Chapman code=MON
|Chapman code=MON
|HCS code=MNM
|HCS code=MNM
|population 2001=
|population 2001=503,917
|population 2011=
|population 2011=
}}
}}
Line 756: Line 756:
|Chapman code=MGY
|Chapman code=MGY
|HCS code=MTG
|HCS code=MTG
|population 2001=
|population 2001=59,474
|population 2011=
|population 2011=
}}
}}
Line 769: Line 769:
|Chapman code=MOR
|Chapman code=MOR
|HCS code=MOY
|HCS code=MOY
|population 2001=
|population 2001=63,142
|population 2011=
|population 2011=
}}
}}
Line 782: Line 782:
|Chapman code=NAI
|Chapman code=NAI
|HCS code=NRN
|HCS code=NRN
|population 2001=
|population 2001=10,980
|population 2011=
|population 2011=
}}
}}
Line 847: Line 847:
|Chapman code=OKI
|Chapman code=OKI
|HCS code=ORN
|HCS code=ORN
|population 2001=
|population 2001=19,245
|population 2011=
|population 2011=
}}
}}
Line 873: Line 873:
|Chapman code=PEE
|Chapman code=PEE
|HCS code=PBS
|HCS code=PBS
|population 2001=
|population 2001=17,394
|population 2011=
|population 2011=
}}
}}
Line 886: Line 886:
|Chapman code=PEM
|Chapman code=PEM
|HCS code=PMB
|HCS code=PMB
|population 2001=
|population 2001=114,131
|population 2011=
|population 2011=
}}
}}
Line 899: Line 899:
|Chapman code=PER
|Chapman code=PER
|HCS code=PRT
|HCS code=PRT
|population 2001=
|population 2001=155,436
|population 2011=
|population 2011=
}}
}}
Line 912: Line 912:
|Chapman code=RAD
|Chapman code=RAD
|HCS code=RDN
|HCS code=RDN
|population 2001=
|population 2001=24,805
|population 2011=
|population 2011=
}}
}}
Line 925: Line 925:
|Chapman code=RFW
|Chapman code=RFW
|HCS code=RNF
|HCS code=RNF
|population 2001=
|population 2001=500,329
|population 2011=
|population 2011=
}}
}}
Line 951: Line 951:
|Chapman code=ROX
|Chapman code=ROX
|HCS code=RXB
|HCS code=RXB
|population 2001=
|population 2001=46,302
|population 2011=
|population 2011=
}}
}}
Line 977: Line 977:
|Chapman code=SEL
|Chapman code=SEL
|HCS code=SKK
|HCS code=SKK
|population 2001=
|population 2001=17,757
|population 2011=
|population 2011=
}}
}}
Line 990: Line 990:
|Chapman code=SHI
|Chapman code=SHI
|HCS code=SHT
|HCS code=SHT
|population 2001=
|population 2001=21,988
|population 2011=
|population 2011=
}}
}}
Line 1,042: Line 1,042:
|Chapman code=STI
|Chapman code=STI
|HCS code=STL
|HCS code=STL
|population 2001=
|population 2001=208,267
|population 2011=
|population 2011=
}}
}}
Line 1,094: Line 1,094:
|Chapman code=SUT
|Chapman code=SUT
|HCS code=SRL
|HCS code=SRL
|population 2001=
|population 2001=12,408
|population 2011=
|population 2011=
}}
}}
Line 1,133: Line 1,133:
|Chapman code=WLN
|Chapman code=WLN
|HCS code=WLT
|HCS code=WLT
|population 2001=
|population 2001=172,341
|population 2011=
|population 2011=
}}
}}
Line 1,159: Line 1,159:
|Chapman code=WIG
|Chapman code=WIG
|HCS code=WGT
|HCS code=WGT
|population 2001=
|population 2001=26,827
|population 2011=
|population 2011=
}}
}}

Revision as of 08:27, 8 September 2012

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.