Template:Project: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Testing automatically assigning category based on user input |
||
Line 6: | Line 6: | ||
{{!}} colspan="2" style="text-align:center;" {{!}} | {{!}} colspan="2" style="text-align:center;" {{!}} | ||
{{#if: {{{image|}}}|[[{{{image}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]] | {{#if: {{{image|}}}|[[{{{image}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]] | ||
{{#if: {{{caption|}}}|''{{{caption}}}''}}}} | {{#if: {{{caption|}}}|''{{{caption}}}''}}}}|}} | ||
| | |||
}} | |||
{{#if:{{{primary|}}}| | {{#if:{{{primary|}}}| | ||
{{!}}- | {{!}}- | ||
Line 40: | Line 38: | ||
</div>}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.nottinghack.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code]}} | </div>}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.nottinghack.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code]}} | ||
|}<!-- | |}<!-- | ||
--><noinclude> | --> | ||
[[Category:Projects ({{#switch: status | planning = planning | dormant = dormant | complete = complete | #default = in progress}})]] | |||
<noinclude> | |||
{{clear}} | {{clear}} | ||
Line 62: | Line 65: | ||
:List of members involved. Ideally, use <nowiki>[[User:username|username]]</nowiki> format. | :List of members involved. Ideally, use <nowiki>[[User:username|username]]</nowiki> format. | ||
;status | ;status | ||
:Project status ( | :Project status (planning/dormant/complete/in progress) | ||
;qrmode | ;qrmode | ||
:(0/1/2) If set to 1 (default), a link to the QR code is displayed. If set to 2, it will display the QR code image on. If set to 0, do not display the QR code link or image. | :(0/1/2) If set to 1 (default), a link to the QR code is displayed. If set to 2, it will display the QR code image on. If set to 0, do not display the QR code link or image. | ||
===Source=== | ===Source=== | ||
Thanks to London Hackspace for this template ([https://wiki.london.hackspace.org.uk/view/Template:Project Template:Project on London Hackspace wiki]). | Thanks to London Hackspace for the original version of this template ([https://wiki.london.hackspace.org.uk/view/Template:Project Template:Project on London Hackspace wiki]). | ||
[[Category:Templates infoboxes]] | [[Category:Templates infoboxes]] | ||
</noinclude> | </noinclude> |
Revision as of 23:29, 5 January 2019
Project
| |
---|---|
QR code |
Documentation
All arguments are optional. The default state of the template with no arguments is shown at the top of this page.
Note: if version is set, the project title links to the parent of the page that includes this template.
Arguments
- image
- An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.
- name
- Project name override (default: the page name without the Project: prefix)
- primary
- Primary Contact
- created
- Creation date
- version
- Project version number (e.g. 1).
- members
- List of members involved. Ideally, use [[User:username|username]] format.
- status
- Project status (planning/dormant/complete/in progress)
- qrmode
- (0/1/2) If set to 1 (default), a link to the QR code is displayed. If set to 2, it will display the QR code image on. If set to 0, do not display the QR code link or image.
Source
Thanks to London Hackspace for the original version of this template (Template:Project on London Hackspace wiki).