Template:USA-stateCategoryHeader: Difference between revisions

Simplify code, improve description and usage
(bold the abbreviations)
(Simplify code, improve description and usage)
 
Line 1: Line 1:
<includeonly>'''{{NAMESPACE}}:&nbsp;{{PAGENAME}}''' — this specific [[category]] here on WikiIndex contains a list of [[article]]s (and any [[Special:Categories|sub-categories]]) of [[wiki]] sites about the {{tag|USA state|US state}} of '''{{Wp|{{PAGENAME}}}}''' within the [[:Category:United States of America|United States of America]] (USA).  It may also include [[:Category:People|people]], [[:Category:Places|places]], [[:Category:Geography|geography]], [[:Category:History|history]], [[:Category:Language|language(s)]], and / or any other pertinent information.  The {{Wp|List of U.S. state and territory abbreviations|postal abbreviation}} for {{PAGENAME}} is '''{{{1|1}}}''', and its {{Wp|ISO 3166-2:US|ISO 3166-2}} code is '''{{{2|2}}}'''.[[Category:USA state]]</includeonly><noinclude>{{USA-stateCategoryHeader}}
<includeonly>'''{{NAMESPACE}}:&nbsp;{{PAGENAME}}''' — this specific [[category]] here on WikiIndex contains a list of [[article]]s (and any [[Special:Categories|sub-categories]]) of [[wiki]] sites about the {{tag|USA state|US state}} of '''{{Wp|{{PAGENAME}}}}''' within the [[:Category:United States of America|United States of America]] (USA).  It may also include [[:Category:People|people]], [[:Category:Places|places]], [[:Category:Geography|geography]], [[:Category:History|history]], [[:Category:Language|language(s)]], and / or any other pertinent information.  The {{Wp|List of U.S. state and territory abbreviations|US postal abbreviation}} for {{PAGENAME}} is '''{{{1|1}}}''', and its {{Wp|ISO 3166-2:US|ISO 3166-2}} code is '''US–{{{1|1}}}'''.[[Category:USA state]]</includeonly><noinclude>{{USA-stateCategoryHeader}}
----
----
;''For
;''For
This {{tag|Geographic templates|geographic template}} is used here on WikiIndex to produce a very brief introduction to [[Special:Categories|category]] articles of '''{{tag|USA state|US states}} within the [[:Category:United States of America|United States of America]]''' ('''USA'''), together with an [[interwiki]] link to the [[English Wikipedia]] (En.Wp) article of the same name.
This {{tag|Geographic templates|geographic template}} is used here on WikiIndex to produce a brief introduction to [[Special:Categories|category]] articles of '''{{tag|USA state|US states}} within the [[:Category:United States of America|United States of America]]''' ('''USA'''), together with an [[interwiki]] link to the [[English Wikipedia]] (En.Wp) article of the same name.


;''Usage
;''Usage
Simply select and highlight <code><nowiki>{{USA-stateCategoryHeader}}</nowiki></code>, copy (<tt>Ctrl-c</tt> on your keyboard), and then paste (<tt>Ctrl-v</tt>) it at the <u>top</u> of the [[edit box]] of all categories of states of the USA listed here on WikiIndex, and then save your [[edit]].  Further descriptive text can be added immediately following the template code (leave two spaces, or two carriage returns); such as its official abbreviation, who it shares borders with (land borders with other states and / or countries, and maritime borders to water bodies), its capital [[:Category:City|city]], significant tourist or World Heritage features (which might have their own wiki), and any other notable information.  If you are not familiar with this latter information, simply add <code>{{Template|Category-stub}}</code> in addition to this template, so as to prompt other [[editor]]s to add required information.
Select and highlight <code><nowiki>{{USA-stateCategoryHeader|**}}</nowiki></code>, copy (<tt>Ctrl-c</tt> on your keyboard, or <tt>⌘-c</tt> on a Mac iOS), and then paste (<tt>Ctrl-v</tt> or <tt>⌘-v</tt>) it at the <u>top</u> of the [[edit box]] of all categories of states of the USA listed here on WikiIndex, then amend the two asterisks (<tt><nowiki>**</nowiki></tt>) within the template code to the double-capital letters of its official {{Wp|List of U.S. state and territory abbreviations|US postal abbreviation}}.
 
After previewing (<tt>Ctrl-p</tt> or <tt>⌘-p</tt>) to verify your changes, save your [[edit]] (<tt>Ctrl-s</tt> or <tt>⌘-s</tt>).  Further descriptive text can be added immediately following the template code (leave two spaces, or two carriage returns); such as its capital (and / or largest) [[:Category:City|city]], who it shares borders with (land borders with other states and / or countries, and maritime borders to water bodies), significant tourist or World Heritage features (which might have their own wiki), and any other notable information.  If you are not familiar with this latter information, simply add <code>{{Template|Category-stub}}</code> in addition to this template, so as to prompt other [[editor]]s to add required information.


The usage of this USA-stateCategoryHeader [[Special:Templates|template]] on any [[category]] page will auto-include it into [[:category: USA state]], itself a sub-category of [[:category: United States of America]].
The usage of this USA-stateCategoryHeader [[Special:Templates|template]] on any [[category]] page will auto-include it into [[:category: USA state]], itself a sub-category of [[:category: United States of America]].