Template:Project: Difference between revisions

From London Hackspace Wiki

Allow hiding project QR code
(Turn off edit section links in documentation, and hint about why it looks so bad on this page.)
(Allow hiding project QR code)
 
Line 22: Line 22:
{{!}} {{{status}}}
{{!}} {{{status}}}
}}
}}
|-
{{#ifexpr:{{{qrmode|1}}} > 0|
| colspan="2" style="text-align: center;" | {{#ifeq:{{{fullQR|0}}}|1|<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">
{{!}}-
{{!}} 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;
&nbsp;
</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>
Line 47: Line 48:
;status
;status
:Project status (e.g. Prototyping)
:Project status (e.g. Prototyping)
;fullQR
;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>