Template:Infobox project: Difference between revisions
m (Automated Formatting for Infobox and Section Headers) |
(added `leader` and `category` as optional parameters for anon 1 & 2) |
||
Line 8: | Line 8: | ||
;<code>title</code> | ;<code>title</code> | ||
:The title of the project to be displayed at the top of the infobox. | :The title of the project to be displayed at the top of the infobox. | ||
;<code>1</code> | ;<code>1</code> or <code>leader</code> | ||
:The name of the project leader. If not specified, the infobox will display "<span style="color: red;">'''Unassigned'''</span>". | :The name of the project leader. If not specified, the infobox will display "<span style="color: red;">'''Unassigned'''</span>". | ||
;<code>2</code> | ;<code>2</code> or <code>category</code> | ||
:The category the project is in. If not specified, the infobox will display "<span style="color: red;">'''Unassigned'''</span>". | :The category the project is in. If not specified, the infobox will display "<span style="color: red;">'''Unassigned'''</span>". | ||
;<code>close</code> | ;<code>close</code> | ||
Line 93: | Line 93: | ||
}} | }} | ||
}} | }} | ||
{{Infobox/sandbox/row|Leader|{{#if:{{{1|}}}|[[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]])|<span style="color: red;">'''Unassigned'''</span>}}}} | {{Infobox/sandbox/row|Leader|{{#if:{{{1|}}}{{{leader|}}}|[[User:{{{1|{{{leader}}}}}}|{{{1|{{{leader}}}}}}]] ([[User talk:{{{1|{{{leader}}}}}}|talk]])|<span style="color: red;">'''Unassigned'''</span>}}}} | ||
{{Infobox/sandbox/row|Category|{{#if:{{{2|}}}|[[:Category:{{{2}}}|{{{2}}}]]|<span style="color: red;">'''Unassigned'''</span>}}}} | {{Infobox/sandbox/row|Category|{{#if:{{{2|}}}{{{category|}}}|[[:Category:{{{2|{{{category}}}}}}|{{{2|{{{category}}}}}}]]|<span style="color: red;">'''Unassigned'''</span>}}}} | ||
{{Infobox/sandbox/row|Status|{{#if:{{{close|}}} | {{Infobox/sandbox/row|Status|{{#if:{{{close|}}} | ||
|[[:Category:Finished projects|Finished]]{{#if:{{{hidecat|}}}||[[Category:Finished projects]]}} | |[[:Category:Finished projects|Finished]]{{#if:{{{hidecat|}}}||[[Category:Finished projects]]}} |
Revision as of 08:36, 19 March 2024
This template is used to display general information about a community project. It is used on the project page.
Usage
Add {{Infobox project|Leader|Category}}
to the top of the project page.
Parameters
title
- The title of the project to be displayed at the top of the infobox.
1
orleader
- The name of the project leader. If not specified, the infobox will display "Unassigned".
2
orcategory
- The category the project is in. If not specified, the infobox will display "Unassigned".
close
- The status of the project. If not specified, the infobox will display "Active". Otherwise, the infobox will display "Finished".
date
- The date the project was finished. If not specified, the infobox will display the latest revision date in the format of user preference, otherwise
YYYY-MM-DD
. - To specify the date, use the format
YYYY-MM-DD
. Then the date will be formatted automatically. - This parameter is only used when
close
is specified. color
- Header color. Defaults to
var(--color-red)
(see: style sheet). img
- The image to display in the infobox. If not specified, no image will be displayed. Add a number at the end to have multiple images (
img2
). img_name
- The name to be displayed when hovering over the image. Will also be used for the icon (if icon is displayed). Default is the
title
. imgsize
- The size of the image to display. Defaults to
290px
. Image width should not be greater than290px
. Add a number at the end to specify the image (imgsize2
). imgclass
- A style class can be defined for the image, such as
pixelated
for nearest neighbor rendering (removes blur from low resolution images). Add a number at the end to specify the image (imgclass2
). icon
- The icon to display for the corresponding
img
. If not specified,img
will be displayed. Add a number at the end to specify the image (icon2
). notes
- Notes about the project can be added here.
hidecat
- Don't add the project to the category if not empty. Usually this should not be specified.
Example
Basic project
{{Infobox project |title=Basic project |Leader <!-- leader username --> |Category <!-- category project --> }}
Project with images
{{Infobox project |title = Project with images |img = Image.png |img2 = CrossingGuardSpiffo.png |Leader <!-- leader username --> |Category <!-- category project --> }}
Finished project
{{Infobox project |title=Finished project |Leader <!-- leader username --> |Category <!-- category project --> |date=2022-08-19 |close=true }}
See also
Editors can experiment in this template's sandbox.