Jump to content

User:Will Pittenger/templates/Where I Have Been Tool Available

From Wikipedia, the free encyclopedia

I see you have a list of nations and/or states/provinces on your user page. I would like to offer you some templates for this task I created for my own list. One pair of templates will create entries identical to the one I use. (I suggest you copy my legend if you use them.) Other templates will provide just a flag or name (nation or province/state).

Highlights
  • All use a simple code.
    • Nations are identified with a two letter top-level Internet domain code (except for the United States of America, which uses "USA").
    • States and provinces are identified with postal codes (so far anyway).
  • Nation and state/province names are linked.
  • The low level templates return flag images with just the filename allowing you to control the image size and caption.
  • All flag images located so far are SVG.
  • If any flag images or names on your page officially change, your user page will get the update as soon as I know about it.


One drawback
  • Currently the province templates can only look up data for the United States of America and Canada. However, additional capability can be readily added. All I need to do is create a starter template and let you add the provinces.


Templates to build a list of where you have been
Enter this Purpose Sample outputSubst this template?
Creates an entry in the list of places where I have been. Rather than call this template, most will call a template listed below. They will call Flag Entry as needed for you.
*§{{{title}}} — Illinois (The state where I was born and grew up.)
No
Creates an entry in the list of places where I have been
*§{{{title}}}United States of America (I visited other nations, but have yet to live in any)
  • {{{title}}}Canada (Year unknown as I was too young to remember)
  • {{{title}}}Mexico (Twice: 1977, 1982)
No
Creates an entry in the list of places where I have been. Important: See the notes for GetProvinceName and GetProvinceFlag.
*§{{{title}}}Illinois (The state where I was born and grew up.)
  • {{{title}}}Ontario (Year unknown as I was too young to remember)
No


section below]]