User:SiBr4/AWB Reports
This page shows some lists of pages I made using AutoWikiBrowser, with details on how they were derived.
Country data redirects
[edit]There is a category for all redirects to country data templates, but it must be added manually and therefore may not contain all existing redirects. For this reason I've generated a list of all country data templates in AWB using PrefixIndex and then used a parser function to keep only the ones that are redirects. The syntax,
{{subst:#ifeq:{{subst:#invoke:Redirect|main|Template:Country data <country>}} |Template:Country data <country> | |# [[:Template:Country data <country>]] }}
determines the redirect target of a page using Module:Redirect, and if the target page title is not the same as the page title (i.e. if it's actually a redirect), it gives a list entry. This list can then be compared with Category:Country data redirects in AWB to know which redirects don't have the category. See this old revision for the actual list (as of 28 February 2014).
Templates without Template:Country showdata
[edit]By comparing the list of transclusions of the automatic documentation template {{Country showdata}} (or equivalently, the list of pages in Category:All country data templates) with the list of templates starting with "country data" a list can be generated of country data templates that don't use {{Country showdata}} and therefore are not automatically categorized. The resulting list is then filtered to exclude documentation subpages and compared with Category:Country data redirects to remove redirects.
- Template:Country data – a country data template that gets transcluded whenever a flag template is used without (or with an empty) first parameter. It contains all parts of a "standard" country data template, with an invisible image as flag alias, but doesn't use the automatic documentation (I don't know whether the documentation was intentionally omitted).
- Template:Country data American Samoa/testcases – testcases page.
- Template:Country data Limburg – whenever used it gives a warning to use Template:Country data Limburg (Netherlands) or Template:Country data Limburg (Belgium) instead. Basically a country data disambiguation page.
- Template:Country data Māori – consisted of a New Zealand flag icon with a link to the Māori rugby union team. Now converted into an actual country data template and merged with Template:Country data New Zealand Māori.
- Template:Country data New Zealand Labour Party – seems to have been created as a hack to display an enlarged logo in the infobox of these two articles. It actually may be better to just change the infobox template so it can show a custom image at the top.
- Template:Country data none – deliberately empty so it doesn't render anything at all. In templates where a flag icon is automatically included the alias "none" can be used to disable it.
- Template:Country data OC – unused; consists of a piped link to Olympic Council of Ireland. Not sure what it's supposed to be, but I've listed it at TfD.
- Template:Country data SA – consisted of the text "SOUTH AFRICA" only; used on several pages. Now redirected to Template:Country data South Africa.
Sandbox/testcases pages
- Template:Country data American Samoa/testcases
- Template:Country data Florida/testcases
- Template:Country data Minnesota/testcases
- Template:Country data Myanmar/sandbox
- Template:Country data United States Navy/testcases
- Template:Country data United States/testcases
- Template:Country data West Germany/Sandbox – a redirect to a sandbox page.
Other
- Template:Country data – see above.
- Template:Country data Czech Republic and Slovakia (Combined team) – a hack used in a single infobox to override the flag template in one of its fields; similar to the NZ Labour Party template.
- Template:Country data Limburg – see above.
- Template:Country data Myanmar – a special case: it transcludes Template:Country data Burma, making the two use the same aliases and variants but allowing for either name to be used as shortname alias.
- Template:Country data New Zealand Labour Party – see above.
- Template:Country data malaysia – spam page I tagged for speedy deletion.
- Template:Country data none – see above.
Two-letter-code shortcuts for data templates
[edit]- Make a list of all country data templates in AWB (pages starting with "Country data" in Template namespace) and save as text file
- Copy the file contents into the regex tester, search for
# \[\[:Template:Country data .{3,}\]\]\n
(all templates with more than three characters after "Country data ") and replace with nothing - Copy the resulting string into the test string box, find
# \[\[:Template:Country data (.{2})\]\]
and replace with# [[:Template:Country data $1]] → [[{{subst:#invoke:Redirect|main|Template:Country data $1}}]]
to add the redirect target to each list entry - Manually (or automatically) remove remaining non-conforming templates (Template:Country data and Template:Country data/doc, and if they would exist, any templates with one-letter names)
5 February 2015
Countries and territories (ISO 3166-1 alpha-2 codes)
- Template:Country data AU → Template:Country data Australia
- Template:Country data CH → Template:Country data Switzerland
- Template:Country data CZ → Template:Country data Czech Republic
- Template:Country data DE → Template:Country data Germany (postal code of Delaware)
- Template:Country data DO → Template:Country data Dominican Republic
- Template:Country data HK → Template:Country data Hong Kong (also acronym)
- Template:Country data MM → Template:Country data Burma
- Template:Country data NZ → Template:Country data New Zealand (also acronym)
- Template:Country data RO → Template:Country data Romania
- Template:Country data TW → Template:Country data Taiwan
- Template:Country data US → Template:Country data United States (also acronym)
- Template:Country data ZA → Template:Country data South Africa
US states (postal codes)
- Template:Country data AK → Template:Country data Alaska
- Template:Country data CA → Template:Country data California (ISO code of Canada)
- Template:Country data CO → Template:Country data Colorado (ISO code of Colombia)
- Template:Country data CT → Template:Country data Connecticut
- Template:Country data FL → Template:Country data Florida
- Template:Country data IL → Template:Country data Illinois (ISO code of Israel)
- Template:Country data MA → Template:Country data Massachusetts (ISO code of Morocco)
- Template:Country data MD → Template:Country data Maryland (ISO code of Moldova)
- Template:Country data MI → Template:Country data Michigan
- Template:Country data MN → Template:Country data Minnesota (ISO code of Mongolia)
- Template:Country data ND → Template:Country data North Dakota (also acronym)
- Template:Country data NE → Template:Country data Nebraska (ISO code of Niger)
- Template:Country data NH → Template:Country data New Hampshire (also acronym)
- Template:Country data NJ → Template:Country data New Jersey (also acronym)
- Template:Country data NY → Template:Country data New York (also acronym)
- Template:Country data OH → Template:Country data Ohio
- Template:Country data PA → Template:Country data Pennsylvania (ISO code of Panama)
- Template:Country data WA → Template:Country data Washington
- Template:Country data WI → Template:Country data Wisconsin
Canadian provinces/territories (postal codes)
- Template:Country data AB → Template:Country data Alberta
- Template:Country data BC → Template:Country data British Columbia (also acronym)
- Template:Country data MB → Template:Country data Manitoba
- Template:Country data NB → Template:Country data New Brunswick (also acronym)
- Template:Country data NL → Template:Country data Newfoundland and Labrador (ISO code of the Netherlands)
- Template:Country data NS → Template:Country data Nova Scotia (also acronym)
- Template:Country data NT → Template:Country data Northwest Territories (also acronym)
- Template:Country data NU → Template:Country data Nunavut (ISO code of Niue)
- Template:Country data ON → Template:Country data Ontario
- Template:Country data PE → Template:Country data Prince Edward Island (ISO code of Peru)
- Template:Country data QC → Template:Country data Quebec
- Template:Country data SK → Template:Country data Saskatchewan (ISO code of Slovakia)
- Template:Country data YT → Template:Country data Yukon (ISO code of Mayotte)
Acronyms
- Template:Country data DR → Template:Country data Dominican Republic
- Template:Country data EU → Template:Country data European Union (reserved ISO code)
- Template:Country data GB → Template:Country data Great Britain (ISO code of the United Kingdom)
- Template:Country data NO → Template:Country data Northern Ontario (ISO code of Norway)
- Template:Country data SA → Template:Country data South Africa (ISO code of Saudi Arabia)
- Template:Country data SL → Template:Country data Sri Lanka (ISO code of Sierra Leone)
- Template:Country data UK → Template:Country data United Kingdom (reserved ISO code)
- Template:Country data UN → Template:Country data United Nations
Data templates using placeholder flag
[edit]Made by filtering the list of pages using File:Flag placeholder.svg to templates with titles containing "Country data", and manually removing /doc pages and templates only including it in the documentation. Does not include other placeholder flag files. As of 2 May 2015.
- Template:Country data
- Template:Country data Association of Southeast Asian Nations
- Template:Country data Banswara State
- Template:Country data Bristol
- Template:Country data Caddo Parish
- Template:Country data Charlotte, North Carolina
- Template:Country data Chola dynasty
- Template:Country data Commonwealth of Nations
- Template:Country data Gorno-Badakhshan
- Template:Country data Guárico
- Template:Country data Montevideo
- Template:Country data Morac-Songhrati-Meads
- Template:Country data Natchitoches Parish
- Template:Country data Organization of American States
- Template:Country data Polonnaruwa Kingdom
- Template:Country data Pskov Oblast
- Template:Country data Rijeka
- Template:Country data Tacuarembó
- Template:Country data UNICEF