Difference between revisions of "Template:Project"

From Nottinghack Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
{{#ifexpr:{{{qrmode|1}}} > 0|
 
{{#ifexpr:{{{qrmode|1}}} > 0|
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="text-align: center;" {{!}} {{#ifeq:{{{qrmode|1}}}|2|<div style="height: 200px; width: 200px; margin: 0 auto; text-align: center; vertical-align: middle; background: no-repeat 50% 50% #ccc  url(http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=http://wiki.nottinghack.org.uk/wiki/{{FULLPAGENAMEE}}&.png);">
+
{{!}} colspan="2" style="text-align: center;" {{!}} {{#ifeq:{{{qrmode|1}}}|2|[[File:http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=http://wiki.nottinghack.org.uk/wiki/{{FULLPAGENAMEE}}&.png|frame|200x200px|QR Code}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.nottingahck.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code]}}
&nbsp;
 
http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=http://wiki.nottinghack.org.uk/wiki/{{FULLPAGENAMEE}}&.png
 
</div>}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.nottingahck.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code]}}
 
 
|}
 
|}
 
<noinclude>
 
<noinclude>

Revision as of 18:21, 17 May 2012

Project



{{#ifexpr:1 > 0|

{{#ifeq:1|2|[[File:http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=http://wiki.nottinghack.org.uk/wiki/Template:Project&.png%7Cframe%7C200x200px%7CQR Code}} 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

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.