Template:EquipmentPage: Difference between revisions

From PS:1 Wiki Dev
Jump to navigationJump to search
Content deleted Content added
mNo edit summary
Ok different change, only tools that are NOT "removed" will show up in Category:Equipment. Anything else will got to Category:EquipmentRemoved.
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{where|}}} | Removed | [[Category:Removed Equipment]] {{mbox |type=notice |text=<span style="font-size: 150%; font-weight: bold; color: red; ">This tool is no longer at the space. [[Equipment|Find what actually exists at PS1 on the Equipment page.]]</span> [[File:Oscar The Grouch.png|right|32px]]}} | [[Category:Equipment]] {{#if: {{{image|}}} | | [[Category:Photographs_Needed]] }}{{#switch: {{{doesitwork|}}} | yes | "yes" | Yes | "Yes" | YES | "YES" | y | "y" | Y | "Y" = | [[Category:Broken Equipment]] {{mbox |type=notice |text=This tool is currently broken, please contact the area host for more information. }} }}{{#if: {{{hostarea|}}} | [[Category:{{{hostarea}}}]] | [[Category:EquipmentPageErrorNoAreahost]] }}{{#switch: {{{certification|}}} yes | "yes" | Yes | "Yes" | YES | "YES" | y | "y" | Y | "Y" = | [[Category:AuthorizationRequired]] }}}}</includeonly>{{Template:EquipmentLabel
<includeonly>[[Category:Equipment]]
| owner = {{{owner}}}
{{#ifeq: {{{where|}}} | Removed | [[Category:Removed Equipment]] {{mbox |type=notice |text=<span style="color: red; font-size: 40px; font-weight: bold;">This tool is no longer at the space. [[Equipment|Back to list of Equipment]]</span>}} |
| authorization = {{{certification}}}

| hackable = {{{hackable}}}
{{#if: {{{image|}}} | | [[Category:Photographs_Needed]] }}
| hostarea = {{{hostarea}}}
{{#switch: {{{doesitwork|}}} | yes | "yes" | Yes | "Yes" | YES | "YES" | y | "y" | Y | "Y" = | [[Category:Broken Equipment]] {{mbox |type=notice |text=This tool is currently broken, please contact the area host for more information. }} }}
}}<br>
{{#if: {{{hostarea|}}} | [[Category:{{{hostarea}}}]] | [[Category:EquipmentPageErrorNoAreahost]] }}


}}
</includeonly>

{{Infobox Equipment
{{Infobox Equipment
| image = {{{image|}}}
| image = {{{image|}}}
Line 23: Line 18:
| value = {{{value}}}
| value = {{{value}}}
| hostarea = {{{hostarea}}}
| hostarea = {{{hostarea}}}
}}{{#subobject:
}}

{{Template:EquipmentLabel
| owner = {{{owner}}}
| authorization = {{{certification}}}
| hackable = {{{hackable}}}
| hostarea = {{{hostarea}}}
}}

{{#subobject:
|Has value={{{value|}}}
|Has value={{{value|}}}
}}<noinclude>
}}

<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->

Latest revision as of 00:25, 25 April 2025

<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:EquipmentPage<html>" /> </g>

<g id="title" transform="translate(165,20)"> <text font-family="Arial,Helvetica,sans-serif" font-size="18" font-weight="bold"></html>Template:EquipmentPage<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: {{{certification}}} | 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:EquipmentPage<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>

Lua error: Internal error: The interpreter exited with status 127. {{#ifeq: EquipmentPage | sandbox |

Template:Template sandbox notice }}{{documentation/start box{{#if: |/}} | preload = | heading = ¬ | heading-style = | content =

| docpage =

 {{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: EquipmentPage | sandbox | testcases = EquipmentPage | #default = EquipmentPage }}/doc

 }}

| doc exist =

 {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: EquipmentPage | sandbox | testcases = EquipmentPage | #default = EquipmentPage }}/doc

   }}
 | yes
 }}

}} {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: EquipmentPage | sandbox | testcases = EquipmentPage | #default = EquipmentPage }}/doc|1|0}} | 0000 | 0100 | 0010 | 0101 = | 0001 | 0011 = {{ {{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: EquipmentPage | sandbox | testcases = EquipmentPage | #default = EquipmentPage }}/doc }} | 0110 | 0111 = {{ }} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = }}

{{#if:

 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: EquipmentPage | sandbox | testcases = EquipmentPage | #default = EquipmentPage }}/doc

   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Module
   | Template = yes
   }}
 }}

|

{{#ifeq:none|none | | }} {{#if: |

}}

{{#switch:

| | warning | editnotice | system =

| #default =

This message box is using an invalid "type=" parameter and needs fixing.

}} }}{{#if:

 {{#switch: EquipmentPage
 | doc
 | testcases = strange
 }}

|

}}