Jump to content

Template:WikiProject Cities/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Parameters: document all recognised parameters
m top: {{High-use}}
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use}}
{{template shortcut|WPCITIES}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{Template shortcut|WPCITIES}}


=== Usage ===
== Usage ==
This page is intended to serve as instructions for the use of the banner template {{tl|WikiProject Cities}}.
This page is intended to serve as instructions for the use of the banner template {{tlx|WikiProject Cities}}.


<syntaxhighlight lang="wikitext" style="overflow:auto;">
<pre>
{{WikiProject Cities
{{WikiProject Cities
|class = <!-- NA/Dab/Template/Cat/Stub/Start/C/B/GA/A/FA -->
|class =
|importance = <!-- Low/Mid/High/Top -->
|attention =
|attention =
|auto =
|needs-infobox =
|needs-infobox =
|peer-review =
|needs-image =
|imagedetails =
|old-peer-review =
|small =
|in =
|in2 =
|in3 =
|needs-map =
|unref =
|needs-geocoord =
|core = <!--yes, if it's on the "core" city list-->
|capital = <!--yes, if it's a national capital-->
|regional_capital= <!--yes, if it's a regional (state/provincial) capital; do not use if it's also a national capital or merely a county seat.-->
|listas =
}}
}}
</syntaxhighlight>
</pre>

or
or

<pre>
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{WikiProject Cities |class= |importance= }}
{{WikiProject Cities |class= }}
</pre>
</syntaxhighlight>


===Optional parameters===
===Optional parameters===
{{WPBannerDoc|class|PROJECT=Cities|ASSESSMENT_LINK=Wikipedia:WikiProject Cities/Assessment|QUALITY_SCALE=subpage}}
{{WPBannerDoc|attention|PROJECT=Cities|ATTENTION_CAT=WikiProject Cities articles needing attention}}
{{WPBannerDoc|attention|PROJECT=Cities|ATTENTION_CAT=WikiProject Cities articles needing attention}}
{{WPBannerDoc|class|PROJECT=Cities|ASSESSMENT_LINK=Wikipedia:WikiProject Cities/Assessment}}
{{WPBannerDoc|importance|PROJECT=Cities|ASSESSMENT_LINK=Wikipedia:WikiProject Cities/Assessment}}
{{WPBannerDoc|listas|last=Wren|first=Christopher}}
{{WPBannerDoc|needs-infobox|PROJECT=Cities|INFOBOX_CAT=WikiProject Cities articles needing infoboxes}}
{{WPBannerDoc|needs-infobox|PROJECT=Cities|INFOBOX_CAT=WikiProject Cities articles needing infoboxes}}
{{WPBannerDoc/note|needs-image|NOTE_TEXT=if the article needs an image (other than a map).
{{WPBannerDoc/peerreview |peer review=peer-review |old peer review=old-peer-review |LINK=Wikipedia:WikiProject Cities/Assessment |CAT=Requests for WikiProject Cities peer review |OLD_CAT=Old requests for WikiProject Cities peer review }}
* '''imagedetails''' (appears only if needs-image is set to yes) - Additional details to describe the image that is requested.
{{WPBannerDoc|small}}
* '''in''' - Used in conjunction with the '''needs-image''' parameter to place the image request into a specific location category. Leave blank or delete if not.
** Additional '''in2''' and '''in3''' - Used in conjunction with the '''needs-image''' parameter to specify up to two more location categories. |NOTE_CAT=Wikipedia requested images of cities}}
{{WPBannerDoc/note|needs-map|NOTE_TEXT=if the article needs a map.
* '''in''' - Used in conjunction with the '''needs-map''' parameter to place the map request into a specific location category. Leave blank or delete if not.
** Additional '''in2''' and '''in3''' - Used in conjunction with the '''needs-map''' parameter to specify up to two more location categories. |NOTE_CAT=Wikipedia requested maps}}
{{WPBannerDoc/note|unref|NOTE_TEXT=if the article lacks sufficient references and/or adequate inline citations.|NOTE_CAT=Articles lacking sources}}
{{WPBannerDoc/note|needs-geocoord|NOTE_TEXT=if the article lacks geocoordinate data.
* '''in''' - Used in conjunction with the '''needs-geocoord''' parameter to place the geocoordinate request into a specific location category. Leave blank or delete if not.
** Additional '''in2''' and '''in3''' - Used in conjunction with the '''needs-geocoord''' parameter to specify up to two more location categories. |NOTE_CAT=Unclassified articles missing geocoordinate data}}
{{WPBannerDoc/tf |core|TF_LINK=Wikipedia:WikiProject Cities/Core |TF_NAME=the Core task force |TF_QUALITY=yes |TF_ASSESSMENT_CAT=WikiProject Cities core articles |TF_MAIN_CAT=WikiProject Cities core articles}}
{{WPBannerDoc/tf |capital|TF_LINK=Wikipedia:WikiProject Cities/National capitals|TF_NAME=the National capitals task force |TF_QUALITY=yes |TF_ASSESSMENT_CAT=WikiProject Cities national capital articles|TF_MAIN_CAT=WikiProject Cities national capital articles}}
{{WPBannerDoc/tf |regional_capital|TF_LINK=Wikipedia:WikiProject Cities/Regional capitals|TF_NAME=the Regional capitals task force |TF_QUALITY=yes |TF_ASSESSMENT_CAT=WikiProject Cities regional capital articles|TF_MAIN_CAT=WikiProject Cities regional capital articles}}
{{WPBannerDoc|listas|last=Wren|first=Christopher}}
{{WPBannerDoc|category}}
{{WPBannerDoc|category}}


<includeonly>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:WikiProject Cities| ]]
[[Category:WikiProject Cities| ]]
}}</includeonly>
[[fr:Modèle:Wikiprojet Villes du monde]]
</includeonly>

Latest revision as of 22:53, 26 December 2023

Usage

[edit]

This page is intended to serve as instructions for the use of the banner template {{WikiProject Cities}}.

{{WikiProject Cities 
|class           = 
|attention       = 
|needs-infobox   = 
|needs-image     = 
|imagedetails    = 
|in              = 
|in2             = 
|in3             = 
|needs-map       = 
|unref           = 
|needs-geocoord  = 
|core            = <!--yes, if it's on the "core" city list-->
|capital         = <!--yes, if it's a national capital-->
|regional_capital= <!--yes, if it's a regional (state/provincial) capital; do not use if it's also a national capital or merely a county seat.-->
|listas          = 
}}

or

{{WikiProject Cities |class= }}

Optional parameters

[edit]
  • class – valid values are listed in the custom class mask. See the project's quality scale for details. Setting an explicit value of NA is rarely necessary; for this, either leave |class= blank or omit the parameter.
  • attention – set |attention=yes if the article needs immediate attention from experienced editors. Use only if another parameter does not cover the need for attention; this should be used sparingly. It is strongly encouraged to also add a section to the talk page explaining what needs attention.
  • needs-infobox – set |needs-infobox=yes if the article needs an infobox. Remember that infoboxes are not suitable for all articles, and can overwhelm short articles.
  • needs-image – set |needs-image=yes if the article needs an image (other than a map).
  • imagedetails (appears only if needs-image is set to yes) - Additional details to describe the image that is requested.
  • in - Used in conjunction with the needs-image parameter to place the image request into a specific location category. Leave blank or delete if not.
  • needs-map – set |needs-map=yes if the article needs a map.
  • in - Used in conjunction with the needs-map parameter to place the map request into a specific location category. Leave blank or delete if not.
    • Additional in2 and in3 - Used in conjunction with the needs-map parameter to specify up to two more location categories.
    • This parameter populates Category:Wikipedia requested maps.
  • unref – set |unref=yes if the article lacks sufficient references and/or adequate inline citations.
  • needs-geocoord – set |needs-geocoord=yes if the article lacks geocoordinate data.
  • in - Used in conjunction with the needs-geocoord parameter to place the geocoordinate request into a specific location category. Leave blank or delete if not.
  • core – set |core=yes if the article is supported by the Core task force.
  • capital – set |capital=yes if the article is supported by the National capitals task force.
  • regional_capital – set |regional_capital=yes if the article is supported by the Regional capitals task force.
  • listas – This parameter, which is the equivalent of the DEFAULTSORT sortkey that should be placed on all biographical articles, is a sortkey for the article talk page (e.g. for Christopher Wren, use |listas=Wren, Christopher so that the talk page will show up in the W's and not the C's of the various assessment and administrative categories). This is important because it is one source used by those who set DEFAULTSORT on the article; consider also setting the DEFAULTSORT for the article when setting this parameter. For more information about this, please see Wikipedia:Categorization of people § Ordering names in a category.
    If the article is using {{WikiProject banner shell}} then it is preferable to add |listas= to that template instead of a project banner template. Putting the parameter on more than one template is not required.
  • category – set |category=no if, and only if, a banner is being used for demonstration or testing purposes, to prevent unnecessary or undesirable categorization. Otherwise, omit this parameter.