Template:EquipmentLabel: Difference between revisions

From Pumping Station One
Jperera (talk | contribs)
No edit summary
No edit summary
 
(25 intermediate revisions by 6 users not shown)
Line 10: 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><div style="display: flex; float: right; padding-left: 24px; "><span style="display: flex; height: auto ; width: 22em ;">
<html>
<svg id="printableArea" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 555 175" enable-background="new 0 0 555 175" xml:space="preserve" height="175px" width="555px" style="border:2px solid #000000;display: flex; height: auto ; width: auto ;" onClick="printSVG()">
<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" transform="translate(2,2)" xlink:href="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://wiki.pumpingstationone.org/wiki/</html>{{FULLPAGENAMEE}}<html>" />
</g>
</g>


Line 32: Line 35:
<html>
<html>
<g id="psoneproperty" transform="translate(155,23.5)">
<g id="psoneproperty" transform="translate(155,23.5)">
   <image width="80" height="103" xlink:href="https://wiki.pumpingstationone.org/images/PS1_owned.svg"/>
   <image width="80" height="103" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/PS1_owned.svg"/>
</g>
</g>
</html>
</html>
Line 38: Line 41:
<html>
<html>
<g id="owner" transform="translate(155,30)">
<g id="owner" transform="translate(155,30)">
   <image width="80" height="90" xlink:href="https://wiki.pumpingstationone.org/images/Person_owned.svg"/>
   <image width="80" height="90" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/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>
   <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>
</g>
</html>
</html>
}}
}}
{{#ifeq: {{{authorizations}}} | yes |  
{{#if: {{{hostarea}}} |
<html>
<html>
<g id="certification" transform="translate(245,35)">
<g id="hostarea" transform="translate(250,130)">
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Authorization_required.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 35.0 0)" font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{{hostarea}}}<html></text>
</g>
</g>
</html>
</html>
|
|
<html>
<html>
<g id="certification" transform="translate(245,35)">
<g id="hostarea" transform="translate(250,130)">
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Authorization_not_required.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 35.0 0)" font-family="Arial,Helvetica,sans-serif" font-size="12"></html>Not Assigned<html></text>
</g>
</html>
}}
{{#ifeq: {{{authorization}}} | yes |
<html>
<g id="authorization" transform="translate(245,35)">
  <image width="150" height="79" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/Authorization_required.svg"/>
</g>
</html>
|
<html>
<g id="authorization" transform="translate(245,35)">
   <image width="150" height="79" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/Authorization_not_required.svg"/>
</g>
</g>
</html>
</html>
Line 58: Line 76:
{{#ifeq: {{{hackable}}} | yes |
{{#ifeq: {{{hackable}}} | yes |
<html>
<html>
<g id="certification" transform="translate(400,35)">
<g id="hackable" transform="translate(400,35)">
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Hackable.svg"/>
   <image width="150" height="79" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/Hackable.svg"/>
</g>
</g>
</html>
</html>
|
|
<html>
<html>
<g id="certification" transform="translate(400,35)">
<g id="hackable" transform="translate(400,35)">
   <image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Do_not_hack.svg"/>
   <image width="150" height="79" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/Do_not_hack.svg"/>
</g>
</g>
</html>
</html>
Line 75: Line 93:
</g>
</g>


</svg>
<script type="text/JavaScript">
</html>
<![CDATA[
             
function printSVG() {
const newWindow = window.open('', '_blank');
newWindow.document.write(svg.outerHTML);
newWindow.document.close();
//newWindow.print(); //uncomment to auto-print on click
}
 
const svg = document.getElementById('printableArea');
 
]]>
 
</script>
 
 
</svg></div></html>