Difference between revisions of "Template:EquipmentLabel"

From Pumping Station One
Jump to navigation Jump to search
(size fixes)
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
 
==Fields==
 
==Fields==
 
Default listed first
 
Default listed first
Line 11: Line 10:
 
* <div style="font-family:monospace;">no</div>
 
* <div style="font-family:monospace;">no</div>
  
==={{{certification}}}===
+
==={{{authorization}}}===
 
* <div style="font-family:monospace;">yes</div>
 
* <div style="font-family:monospace;">yes</div>
 
* <div style="font-family:monospace;">no</div>
 
* <div style="font-family:monospace;">no</div>
 +
 +
==={{{hostarea}}}===
 +
* Not Assigned
 +
* <div style="font-family:monospace;">hostarea</div>
  
 
==Label==
 
==Label==
 
</noinclude>
 
</noinclude>
 +
 
<html>
 
<html>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="550px" height="175px" viewBox="0 0 550 175" enable-background="new 0 0 550 175" xml:space="preserve" style="border:2px solid #000000;">
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="555" height="175px" viewBox="0 0 555 175" enable-background="new 0 0 555 175" xml:space="preserve" style="border:2px solid #000000;">
  
 
<g id="qr">
 
<g id="qr">
<image width="150" height="150" xlink:href="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chld=H%7C0&chl=https://wiki.pumpingstationone.org/</html>{{FULLPAGENAMEE}}<html>&.svg" />
+
<image width="150" height="150" xlink:href="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://wiki.pumpingstationone.org/</html>{{FULLPAGENAMEE}}<html>" />
 
</g>
 
</g>
  
Line 31: Line 35:
 
{{#ifeq: {{{owner}}} | PS:One |  
 
{{#ifeq: {{{owner}}} | PS:One |  
 
<html>
 
<html>
<g id="psoneproperty" transform="translate(150,30)">
+
<g id="psoneproperty" transform="translate(155,23.5)">
   <image width="78" height="96" xlink:href="https://wiki.pumpingstationone.org/images/PS1_owned.svg"/>
+
  <image width="80" height="103" xlink:href="https://wiki.pumpingstationone.org/images/PS1_owned.svg"/>
 +
</g>
 +
</html>
 +
|
 +
<html>
 +
<g id="owner" transform="translate(155,30)">
 +
   <image width="80" height="90" xlink:href="https://wiki.pumpingstationone.org/images/Person_owned.svg"/>
 +
  <text transform="matrix(1 0 0 1 10.0 110.0)" font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{{owner}}}<html></text>
 +
</g>
 +
</html>
 +
}}
 +
{{#if: {{{hostarea}}} |
 +
<html>
 +
<g id="hostarea" transform="translate(250,130)">
 +
  <text transform="matrix(1 0 0 1 0 0)" font-family="Arial,Helvetica,sans-serif" font-weight="700" font-size="12">Area:</text>
 +
  <text transform="matrix(1 0 0 1 35.0 0)" font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{{hostarea}}}<html></text>
 
</g>
 
</g>
 
</html>
 
</html>
 
|
 
|
 
<html>
 
<html>
<g id="owner" transform="translate(150,30)">
+
<g id="hostarea" transform="translate(250,130)">
   <image width="108" height="96" xlink:href="https://wiki.pumpingstationone.org/images/Person_owned.svg"/>
+
   <text transform="matrix(1 0 0 1 0 0)" font-family="Arial,Helvetica,sans-serif" font-weight="700" font-size="12">Area:</text>
   <text transform="matrix(1 0 0 1 30.0 115.0)" font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{{owner}}}<html></text>
+
   <text transform="matrix(1 0 0 1 35.0 0)" font-family="Arial,Helvetica,sans-serif" font-size="12"></html>Not Assigned<html></text>
 
</g>
 
</g>
 
</html>
 
</html>
 
}}
 
}}
{{#ifeq: {{{certification}}} | yes |  
+
{{#ifeq: {{{authorization}}} | yes |  
 
<html>
 
<html>
<g id="certification" transform="translate(270,52)">
+
<g id="authorization" transform="translate(245,35)">
   <image width="88" height="46" xlink:href="https://wiki.pumpingstationone.org/images/Certification_required.svg"/>
+
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Authorization_required.svg"/>
 
</g>
 
</g>
 
</html>
 
</html>
 
|
 
|
 
<html>
 
<html>
<g id="certification" transform="translate(270,52)">
+
<g id="authorization" transform="translate(245,35)">
   <image width="88" height="46" xlink:href="https://wiki.pumpingstationone.org/images/Certification_not_required.svg"/>
+
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Authorization_not_required.svg"/>
 
</g>
 
</g>
 
</html>
 
</html>
Line 58: Line 77:
 
{{#ifeq: {{{hackable}}} | yes |
 
{{#ifeq: {{{hackable}}} | yes |
 
<html>
 
<html>
<g id="certification" transform="translate(400,52)">
+
<g id="hackable" transform="translate(400,35)">
   <image width="88" height="46" xlink:href="https://wiki.pumpingstationone.org/images/Hackable.svg.svg"/>
+
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Hackable.svg"/>
 
</g>
 
</g>
 
</html>
 
</html>
 
|
 
|
 
<html>
 
<html>
<g id="certification" transform="translate(400,52)">
+
<g id="hackable" transform="translate(400,35)">
   <image width="88" height="46" xlink:href="https://wiki.pumpingstationone.org/images/Do_not_hack.svg"/>
+
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Do_not_hack.svg"/>
 
</g>
 
</g>
 
</html>
 
</html>

Revision as of 01:44, 20 March 2019

Fields

Default listed first

{{{owner}}}

  • PS:One (Case Sensitive, to display logo properly)
  • owner

{{{hackable}}}

  • yes
  • no

{{{authorization}}}

  • yes
  • no

{{{hostarea}}}

  • Not Assigned
  • hostarea

Label

Template:EquipmentLabel {{{owner}}} Area: {{{hostarea}}} https://wiki.pumpingstationone.org/wiki/Template:EquipmentLabel