Template:Project: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
layout
Adding image argument ...hopefully
Line 2: Line 2:
|-
|-
! colspan="2" style="text-align: center;" | {{#if:{{{version|}}} | [[{{#titleparts:{{FULLPAGENAME}}|-1}}|{{{name|{{BASEPAGENAME}}}}}]] | {{{name|{{SUBPAGENAME}} }}} }}
! colspan="2" style="text-align: center;" | {{#if:{{{version|}}} | [[{{#titleparts:{{FULLPAGENAME}}|-1}}|{{{name|{{BASEPAGENAME}}}}}]] | {{{name|{{SUBPAGENAME}} }}} }}
{{#if: {{{image|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} {{#if: {{{image|}}}|
[[{{{image}}} |{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|link={{{image}}}|thumb|center]]{{#if: {{{caption|}}}|''{{{caption}}}''}}}}
|
}}
{{#if:{{{primary|}}}|
{{#if:{{{primary|}}}|
{{!}}-
{{!}}-
Line 45: Line 51:


=== Arguments ===
=== Arguments ===
 
;image
:An image, in the format File:<image name>.<ext>. DO NOT include the <nowiki>[[]]</nowiki> brackets otherwise the image will display full size.
;name
;name
:Project name override (default: the page name without the '''Project:''' prefix)
:Project name override (default: the page name without the '''Project:''' prefix)

Revision as of 23:54, 3 January 2019

Project




QR code

Documentation

Thanks to London Hackspace for this template

All arguments are optional, but you should have at least 1 (ideally more). Don't worry about the way it looks on this page: that's purely because no arguments are specified.

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 (e.g. Prototyping)
qrmode
If set to 1 (default), display a link to the QR code. If set to 2, should display the QR code on the page itself. But it won't, because MediaWiki isn't configured for this. If set to 0, do not display the QR code link at all.

Source