Template:Project: Difference between revisions
From London Hackspace Wiki
(Added documentation) |
(Allow hiding project QR code) |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
{{!}} {{{status}}} | {{!}} {{{status}}} | ||
}} | }} | ||
|- | {{#ifexpr:{{{qrmode|1}}} > 0| | ||
{{!}}- | |||
{{!}} colspan="2" style="text-align: center;" {{!}} {{#ifeq:{{{qrmode|1}}}|2|<div style="height: 200px; width: 200px; margin: 0 auto; background: no-repeat 50% 50% #ccc url(http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=http://wiki.hackspace.org.uk/wiki/{{FULLPAGENAMEE}}&.png); text-align: center; vertical-align: middle"> | |||
| | ||
</div>}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.hackspace.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code] | </div>}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.hackspace.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code]}} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
__NOEDITSECTION__ | |||
== Documentation == | == Documentation == | ||
All arguments are optional. | 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. | '''Note:''' if ''version'' is set, the project title links to the parent of the page that includes this template. | ||
Line 46: | Line 48: | ||
;status | ;status | ||
:Project status (e.g. Prototyping) | :Project status (e.g. Prototyping) | ||
; | ;qrmode | ||
:If set to 1, should display the QR code on the page itself. But it won't, because MediaWiki isn't configured for this. | :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. | ||
</noinclude> | </noinclude> |
Latest revision as of 07:35, 4 April 2011
Project
| |
---|---|
QR code |
Documentation
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
- name
- Project name override (default: the page name without the Project: prefix)
- 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.