Template:EquipmentLabel: Difference between revisions

From PS:1 Wiki Dev
Jump to navigationJump to search
Content deleted Content added
size adjustments
No edit summary
 
(32 intermediate revisions by 7 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><div style="display: flex; float: right; padding-left: 24px; "><span style="display: flex; height: auto ; width: 22em ;">
<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 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()">


<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 31: Line 34:
{{#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://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/PS1_owned.svg"/>
</g>
</g>
</html>
</html>
|
|
<html>
<html>
<g id="owner" transform="translate(150,30)">
<g id="owner" transform="translate(155,30)">
<image width="108" height="96" 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 30.0 115.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: {{{certification}}} | yes |
{{#if: {{{hostarea}}} |
<html>
<html>
<g id="certification" transform="translate(270,52)">
<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>
<image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Certification_required.svg"/>
<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(270,52)">
<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>
<image width="150" height="79" xlink:href="https://wiki.pumpingstationone.org/images/Certification_not_required.svg"/>
<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,52)">
<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,52)">
<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>


<script type="text/JavaScript">
</svg>
<![CDATA[
</html>
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>

Latest revision as of 19:24, 29 March 2025

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

<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()">

<g id="qr"> <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>Template:EquipmentLabel<html>" /> </g>

<g id="title" transform="translate(165,20)"> <text font-family="Arial,Helvetica,sans-serif" font-size="18" font-weight="bold"></html>Template:EquipmentLabel<html></text> </g>

</html> {{#ifeq: {{{owner}}} | PS:One | <html> <g id="psoneproperty" transform="translate(155,23.5)">

 <image width="80" height="103" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/PS1_owned.svg"/>

</g> </html> | <html> <g id="owner" transform="translate(155,30)">

 <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>

</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> </html> | <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>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> </html> }} {{#ifeq: {{{hackable}}} | yes | <html> <g id="hackable" transform="translate(400,35)">

 <image width="150" height="79" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/Hackable.svg"/>

</g> </html> | <html> <g id="hackable" transform="translate(400,35)">

 <image width="150" height="79" xlink:href="https://mywikis-wiki-media.s3.us-central-1.wasabisys.com/ps1/Do_not_hack.svg"/>

</g> </html> }} <html>

<g id="url" transform="translate(6,167)"> <text font-family="Arial,Helvetica,sans-serif" font-size="12"></html>https://wiki-dev.pumpingstationone.org/wiki/Template:EquipmentLabel<html></text> </g>

<script type="text/JavaScript"> <![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>

</html>