Template:Project: Difference between revisions

From London Hackspace Wiki
No edit summary
(Allow hiding project QR code)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="wikitable" style="float:right;width:250px;margin-left:10px;margin-bottom:10px;"
{| class="wikitable" style="float:right;width:250px;margin-left:10px;margin-bottom:10px;"
|-
|-
! colspan="2" style="text-align: center;" | {{SUBPAGENAME}}
! colspan="2" style="text-align: center;" | {{#if:{{{version|}}} | [[{{#titleparts:{{FULLPAGENAME}}|-1}}|{{{name|{{BASEPAGENAME}}}}}]] | {{{name|{{SUBPAGENAME}} }}} }}
|-
{{#if:{{{created|}}}|
{{!}}-
! Created
! Created
| {{{created|}}}
{{!}} {{{created}}}
|-
}}
{{#if:{{{version|}}}|
{{!}}-
! Version
{{!}} {{{version}}}
}}
{{#if:{{{members|}}}|
{{!}}-
! Members
! Members
| {{{members|}}}
{{!}} {{{members}}}
|-
}}
| colspan="2" style="text-align: center;" | http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.hackspace.org.uk/wiki/{{FULLPAGENAMEE}}&.png
{{#if:{{{status|}}}|
{{!}}-
! Project 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">
&nbsp;
</div>}} [http://chart.apis.google.com/chart?chs=200x200&cht=qr&chl=wiki.hackspace.org.uk/wiki/{{FULLPAGENAMEE}}&.png QR code]}}
|}
|}
<noinclude>
__NOEDITSECTION__
== 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 <nowiki>[[User:username|username]]</nowiki> 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.
</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.