Template:EquipmentLabel: Difference between revisions

From Pumping Station One
Fixed QR link generation.
Trying to make wiki labels printable
Line 22: Line 22:


<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="555" height="175px" viewBox="0 0 555 175" enable-background="new 0 0 555 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" width="555" height="175px" viewBox="0 0 555 175" enable-background="new 0 0 555 175" xml:space="preserve" style="border:5px solid #000000" onClick="printSVG()";>


<g id="qr">
<g id="qr">
Line 93: Line 93:
<text font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{fullurl:{{FULLPAGENAMEE}}}}<html></text>
<text font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{fullurl:{{FULLPAGENAMEE}}}}<html></text>
</g>
</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>
</svg>
</html>
</html>

Revision as of 14:45, 5 February 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

Template:EquipmentLabel {{{owner}}} Area: {{{hostarea}}} https://ps1.mywikis.net/wiki/Template:EquipmentLabel