Difference between revisions of "Template:Infobox Wikipedia WikiProject"
Jump to navigation
Jump to search
imported>BrownHairedGirl m (remove links to deleted portals) |
imported>UnitedStatesian (revert: that broke the infobox) |
||
| Line 13: | Line 13: | ||
| data2 = {{#if:{{{category|}}}|{{c|{{{category}}}}}}}{{#if:{{{category2|}}}|, {{c|{{{category2}}}}}}} | | data2 = {{#if:{{{category|}}}|{{c|{{{category}}}}}}}{{#if:{{{category2|}}}|, {{c|{{{category2}}}}}}} | ||
| − | | label3 = {{#if:{{{ | + | | label3 = {{#if:{{{portal|}}}|[[{{ns:Project}}:Portal|Portal{{#if:{{{portal2|}}}|s}}]]}} |
| − | | data3 = {{#if:{{{ | + | | data3 = {{#if:{{{portal|}}}|{{Portal-inline|{{{portal}}}|short = yes}}{{#if:{{{portal2|}}}|<br />{{Portal-inline|{{{portal2}}}|short = yes}}}}}} |
| label4 = {{#if:{{{commons|}}}|[[Wikimedia Commons]]}} | | label4 = {{#if:{{{commons|}}}|[[Wikimedia Commons]]}} | ||
| data4 = {{#if:{{{commons|}}}|[[File:Commons-logo.svg|25px|Commons:Category:{{{commons}}}]] '''''[[Commons:Category:{{{commons}}}|{{{commons}}}]]'''''}} | | data4 = {{#if:{{{commons|}}}|[[File:Commons-logo.svg|25px|Commons:Category:{{{commons}}}]] '''''[[Commons:Category:{{{commons}}}|{{{commons}}}]]'''''}} | ||
| − | | label5 = {{#if:{{{parent|}}}|Parent<br | + | | label5 = {{#if:{{{parent|}}}|Parent<br>project(s)}} |
| data5 = {{#if:{{{parent|}}}|[[{{ns:Project}}:WikiProject {{{parent}}}|{{{parent}}}]]}}{{#if:{{{parent2|}}}|, [[{{ns:Project}}:WikiProject {{{parent2}}}|{{{parent2}}}]]}}{{#if:{{{parent3|}}}|, [[{{ns:Project}}:WikiProject {{{parent3}}}|{{{parent3}}}]]}}{{#if:{{{parent4|}}}|, [[{{ns:Project}}:WikiProject {{{parent4}}}|{{{parent4}}}]]}} | | data5 = {{#if:{{{parent|}}}|[[{{ns:Project}}:WikiProject {{{parent}}}|{{{parent}}}]]}}{{#if:{{{parent2|}}}|, [[{{ns:Project}}:WikiProject {{{parent2}}}|{{{parent2}}}]]}}{{#if:{{{parent3|}}}|, [[{{ns:Project}}:WikiProject {{{parent3}}}|{{{parent3}}}]]}}{{#if:{{{parent4|}}}|, [[{{ns:Project}}:WikiProject {{{parent4}}}|{{{parent4}}}]]}} | ||
| − | | label6 = {{#if:{{{child|}}}|Child<br | + | | label6 = {{#if:{{{child|}}}|Child<br>project(s)}} |
| data6 = {{#if:{{{child|}}}|[[{{ns:Project}}:WikiProject {{{child}}}|{{{child}}}]]}}{{#if:{{{child2|}}}|, [[{{ns:Project}}:WikiProject {{{child2}}}|{{{child2}}}]]}}{{#if:{{{child3|}}}|, [[{{ns:Project}}:WikiProject {{{child3}}}|{{{child3}}}]]}} | | data6 = {{#if:{{{child|}}}|[[{{ns:Project}}:WikiProject {{{child}}}|{{{child}}}]]}}{{#if:{{{child2|}}}|, [[{{ns:Project}}:WikiProject {{{child2}}}|{{{child2}}}]]}}{{#if:{{{child3|}}}|, [[{{ns:Project}}:WikiProject {{{child3}}}|{{{child3}}}]]}} | ||
Revision as of 03:37, 21 August 2019
[[Category:Infobox templates|Template:Remove first word]]
Usage
The Infobox Wikipedia WikiProject template may be used to summarize information about a WikiProject.
Example
Template:Parameter names example
This infobox can be added by copying and pasting the template shown below:
Note: Only the "name" is required, all other attributes are optional.
{{Infobox Wikipedia WikiProject
|inactive =
|semi-active =
|bodystyle =
|name =
|image =
|image_size =
|alt =
|caption =
|shortcuts =
|shortcuts2 =
|category =
|category2 =
|portal =
|portal2 =
|commons =
|parent =
|parent2 =
|parent3 =
|parent4 =
|child =
|child2 =
|child3 =
|notice =
|notice-extended =
|userbox =
|userbox2 =
|userbox3 =
|userboxnote =
|helps-organise-children =
|has-goals =
|assessment =
|popular-pages =
|csb =
|type =
|footnotes =
}}
General parameters
- inactive – if set to "y", "yes", or "1", the 'Inactive WikiProject' notice banner is included on the page; otherwise, leave field blank.
- semi-active – if set to "y", "yes", or "1", the 'Semi-active WikiProject' notice banner is included on the page; otherwise, leave field blank.
- bodystyle – any valid CSS markup that is applied to the infobox table as a whole. (you may need to use
!importantto override default values specified elsewhere) - name – the name of the project, without the 'Wikipedia:WikiProject' prefix. (e.g., Tulips)
- image – an image for the project, given in the form of 'example.jpg'. (i.e., do not specify the size, caption, position, etc., and do not prefix it with 'File:' or 'Image:')
- image_size – sets the width of the project image, given in 'px'. When not specified, the default is 180px. (e.g., 150px)
- caption – a descriptive sentence that describes the image. (e.g., This WikiProject is about project topic.)
- alt – a description for the image, see MOS:ACCIM.
- shortcuts – if the project has a primary shortcut, list it here in the form
[[WP:Shortcut]].- shortcuts2 – Secondary shortcuts may be given here. If there are more than two shortcuts, enter as a comma separated list.
- category – the name of the root category of the articles within the scope of the WikiProject, preferably without the 'Category:' prefix. (e.g., WikiProject Tulips)
- category2 – the name of a second root category if the project uses more than one, preferably without the 'Category:' prefix. (e.g., Tulips)
- portal – the name of an appropriate portal for the project, without the 'Portal:' prefix. (e.g., Tulips)
- portal2 – the name of a second appropriate portal, if the project uses more than one, without the 'Portal:' prefix. (e.g., Flowers)
- commons – the name of a category in Wikimedia Commons, that is appropriate to the project, without the 'Category:' prefix. (e.g., Tulips)
- parent – the name of the parent project for this project, without the 'Wikipedia:WikiProject' prefix. (e.g., Flowers)
- parent2 / parent3 / parent4 – the name of additional parent projects, without the 'Wikipedia:WikiProject' prefix. (e.g., Flowers)
- child – the name of the child project for this project, without the 'Wikipedia:WikiProject' prefix. (e.g., Flowers)
- child2 / child3 – the name of additional child projects, without the 'Wikipedia:WikiProject' prefix. (e.g., Flowers)
- notice – the name of the project banner template for the project, given without the 'Template:' prefix or any {{ }} syntax. (e.g., WikiProject Tulips)
- notice-extended – an alternative to 'notice' (overrides the standard 'notice' message) that you can use to provide more details, template parameters, etc. (e.g.,
{{WikiProject International relations|un=yes}})
- notice-extended – an alternative to 'notice' (overrides the standard 'notice' message) that you can use to provide more details, template parameters, etc. (e.g.,
- userbox – you may enter up to three project userboxes, (using userbox, userbox2, and userbox3) and/or an optional userboxnote:
- If the userbox is located in the template namespace (i.e., the userbox page starts with 'Template:' in front of the name), then just enter the name of the template, without the 'Template:' prefix:
- Example #1: Template:User WikiProject 24 Member would be entered as
|userbox = User WikiProject 24 Member
- Example #1: Template:User WikiProject 24 Member would be entered as
- If the userbox is located in any other namespace (i.e., 'User:', 'Blackwiki:', etc.), enter the full name of the userbox page, including the prefix:
- Example #2:
|userbox = User:Example/Userboxes/WikiProject Tulips memberwould be entered as-is - Example #3:
|userbox2 = Wikipedia:Example/UBXwould be entered as-is
- Example #2:
- userboxnote – a free-form comment, such as a link to more userboxes or brief instructions; if there are more than three userboxes to choose from, you could use only this parameter and link to a gallery of userboxes.
- If the userbox is located in the template namespace (i.e., the userbox page starts with 'Template:' in front of the name), then just enter the name of the template, without the 'Template:' prefix:
- helps-organise-children or helps-organize-children – if set to "y", "yes", or "1", it indicates that the project will be active in helping organise subprojects (including task forces and work groups); "n", "no", or "0" indicate the project does not intend to set those up; anything else will be treated as a free-form comment, such as a link to more information.
- has-goals – if set to "n", "no", or "0", indicates that the project exists solely to help organise child projects and co-ordinate items of interest common to all sub-projects, and does not engage in any other activity; "y", "yes", or "1" indicates the project intends to pursue other goals besides supporting child projects; anything else will be treated as a free-form comment, such as a link to more information.
- assessment – the link to the project's assessment page, without the 'Wikipedia:' prefix. (e.g., WikiProject Tulips/Assessment)
- popular-pages – the link to the project's Wikipedia:Popular pages list, without the 'Wikipedia:' prefix. (e.g., WikiProject Tulips/Popular pages)
- csb – if set to "yes", tags project as relevant for Wikipedia:WikiProject Countering systemic bias (CSB)
- type – passes on the optional type parameter of {{WikiProject status}}: not displayed in infobox
- footnotes – any additional free-form notes about the project.
See also
| The above documentation is transcluded from Template:Infobox Wikipedia WikiProject/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |