Difference between revisions of "Template:PoE"

From Hackerspace ACKspace
Jump to: navigation, search
(create Power over Ethernet template (for ease of use))
 
m (added category)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
It will display a compatibility table on the device's page that includes this template, and will create a property that can be used for search or listing in a table.
 
It will display a compatibility table on the device's page that includes this template, and will create a property that can be used for search or listing in a table.
  
== Using this widget ==
+
== Using this template ==
To insert this widget, use the following code:
+
To insert this template, use the following code:
 
  <nowiki>
 
  <nowiki>
 
{{PoE
 
{{PoE
 
|Barrel_plug=5.5/2.5
 
|Barrel_plug=5.5/2.5
 
|Barrel_voltage=12V
 
|Barrel_voltage=12V
|803:2af_straight=yes
+
|802:3af_straight=yes
|803:2af_crosslink=yes
+
|802:3af_crosslink=yes
 
|Legacy_straight=no
 
|Legacy_straight=no
 
|Legacy_crosslink=no
 
|Legacy_crosslink=no
Line 19: Line 19:
 
|Note=Remarks here
 
|Note=Remarks here
 
}}
 
}}
 +
</nowiki>
 +
 +
Here you can define the following properties:
 +
* [[Property:Barrel_plug|Barrel_plug]]: the <code>outer/inner</code> diameter in mm of the barrel jack, if present, or <code>none</code>/<code>unknown</code>
 +
* [[Property:Barrel_voltage|Barrel_voltage]]: the voltage input of the jack (not all devices accept <code>48V</code>. Leave out if no barrel jack present)
 +
* [[Property:802:3af_straight|802:3af_straight]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - whether the device powers on 802.3af using a regular (straight) cable (note the property uses a colon instead of a dot!)
 +
* [[Property:802:3af_crosslink|802:3af_crosslink]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - whether the device powers on 802.3af using a crosslink cable (note the property uses a colon instead of a dot!)
 +
* [[Property:Legacy_straight|Legacy_straight]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - whether the device powers on via Cisco pre-standard supply using a regular (straight) cable
 +
* [[Property:Legacy_crosslink|Legacy_crosslink]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - whether the device powers on via Cisco pre-standard supply using a crosslink cable
 +
* [[Property:Compatible_straight|Compatible_straight]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - most likely <code>yes</code> if either ''802:3af'' or ''Legacy'' are working
 +
* [[Property:Compatible_crosslink|Compatible_crosslink]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - most likely <code>yes</code> if either ''802:3af'' or ''Legacy'' are working
 +
* [[Property:Unifi_straight|Unifi_straight]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - '''/!\ warning: might damage hardware /!\''' whether Ubiquiti Unifi passive 24V using regular cable powers it
 +
* [[Property:Unifi_crosslink|Unifi_crosslink]]: <code>yes</code>/<code>no</code>/<code>unknown</code> - '''/!\ warning: might damage hardware /!\''' whether Ubiquiti Unifi passive 24V using crosslink cable powers it
 +
Note that all values are optional and will default to "unknown"
 +
  
</nowiki>
+
The template will give the following result:<br/>
This will give the following result:<br/>
 
 
{{PoE
 
{{PoE
 
|Barrel_plug=5.5/2.5
 
|Barrel_plug=5.5/2.5
 
|Barrel_voltage=12V
 
|Barrel_voltage=12V
|803:2af_straight=yes
+
|802:3af_straight=yes
|803:2af_crosslink=yes
+
|802:3af_crosslink=yes
 
|Legacy_straight=no
 
|Legacy_straight=no
 
|Legacy_crosslink=no
 
|Legacy_crosslink=no
Line 35: Line 49:
 
|Note=Remarks here
 
|Note=Remarks here
 
}}
 
}}
 
Note that all values are optional and will default to "unknown"
 
 
 
‎</noinclude>
 
‎</noinclude>
<includeonly>
+
<includeonly>{{#subobject:-|
{{#subobject:-|
 
 
Barrel_plug={{{Barrel_plug|unknown}}}|
 
Barrel_plug={{{Barrel_plug|unknown}}}|
 
Barrel_voltage={{{Barrel_voltage|0V}}}|
 
Barrel_voltage={{{Barrel_voltage|0V}}}|
803:2af_straight={{{803:2af_straight|unknown}}}|
+
802:3af_straight={{{802:3af_straight|unknown}}}|
803:2af_crosslink={{{803:2af_crosslink|unknown}}}|
+
802:3af_crosslink={{{802:3af_crosslink|unknown}}}|
 
Legacy_straight={{{Legacy_straight|unknown}}}|
 
Legacy_straight={{{Legacy_straight|unknown}}}|
 
Legacy_crosslink={{{Legacy_crosslink|unknown}}}|
 
Legacy_crosslink={{{Legacy_crosslink|unknown}}}|
Line 52: Line 62:
 
Unifi_crosslink={{{Unifi_crosslink|unknown}}}|
 
Unifi_crosslink={{{Unifi_crosslink|unknown}}}|
 
Text={{{Note|}}}
 
Text={{{Note|}}}
}}
+
}}Power (over Ethernet) compatibility:<br>
 
+
barrel plug: {{{Barrel_plug|unknown}}} {{{Barrel_voltage|}}}
PoE compatibility
 
 
{| class="wikitable"
 
{| class="wikitable"
! barrel plug
+
!
| {{{Barrel_plug|unknown}}}
+
! straight
|-
+
! crosslink
! barrel voltage
 
| {{{Barrel_voltage|0V}}}
 
|-
 
! 802.3af straight
 
| {{{803:2af_straight|unknown}}}
 
 
|-
 
|-
! 802.3af crosslink
+
! 802.3af
| {{{803:2af_crosslink|unknown}}}
+
| {{{802:3af_straight|unknown}}}
 +
| {{{802:3af_crosslink|unknown}}}
 
|-
 
|-
! legacy straight
+
! legacy
 
| {{{Legacy_straight|unknown}}}
 
| {{{Legacy_straight|unknown}}}
|-
 
! legacy crosslink
 
 
| {{{Legacy_crosslink|unknown}}}
 
| {{{Legacy_crosslink|unknown}}}
 
|-
 
|-
! compatible straight
+
! compatible
 
| {{{Compatible_straight|unknown}}}
 
| {{{Compatible_straight|unknown}}}
|-
 
! compatible crosslink
 
 
| {{{Compatible_crosslink|unknown}}}
 
| {{{Compatible_crosslink|unknown}}}
 
|-
 
|-
! Unifi straight
+
! Unifi
 
| {{{Unifi_straight|unknown}}}
 
| {{{Unifi_straight|unknown}}}
|-
 
! Unifi crosslink
 
 
| {{{Unifi_crosslink|unknown}}}
 
| {{{Unifi_crosslink|unknown}}}
|-
 
! note
 
| {{{Note|}}}
 
 
|}
 
|}
 +
Note: {{{Note|none}}}
 
</includeonly>
 
</includeonly>
 +
[[Category:PoE]]

Latest revision as of 10:56, 14 January 2022

Power over ethernet compatibility property template It will display a compatibility table on the device's page that includes this template, and will create a property that can be used for search or listing in a table.

Using this template

To insert this template, use the following code:

{{PoE
|Barrel_plug=5.5/2.5
|Barrel_voltage=12V
|802:3af_straight=yes
|802:3af_crosslink=yes
|Legacy_straight=no
|Legacy_crosslink=no
|Compatible_straight=unknown
|Compatible_crosslink=unknown
|Unifi_straight=unknown
|Unifi_crosslink=unknown
|Note=Remarks here
}}
 

Here you can define the following properties:

  • Barrel_plug: the outer/inner diameter in mm of the barrel jack, if present, or none/unknown
  • Barrel_voltage: the voltage input of the jack (not all devices accept 48V. Leave out if no barrel jack present)
  • 802:3af_straight: yes/no/unknown - whether the device powers on 802.3af using a regular (straight) cable (note the property uses a colon instead of a dot!)
  • 802:3af_crosslink: yes/no/unknown - whether the device powers on 802.3af using a crosslink cable (note the property uses a colon instead of a dot!)
  • Legacy_straight: yes/no/unknown - whether the device powers on via Cisco pre-standard supply using a regular (straight) cable
  • Legacy_crosslink: yes/no/unknown - whether the device powers on via Cisco pre-standard supply using a crosslink cable
  • Compatible_straight: yes/no/unknown - most likely yes if either 802:3af or Legacy are working
  • Compatible_crosslink: yes/no/unknown - most likely yes if either 802:3af or Legacy are working
  • Unifi_straight: yes/no/unknown - /!\ warning: might damage hardware /!\ whether Ubiquiti Unifi passive 24V using regular cable powers it
  • Unifi_crosslink: yes/no/unknown - /!\ warning: might damage hardware /!\ whether Ubiquiti Unifi passive 24V using crosslink cable powers it

Note that all values are optional and will default to "unknown"


The template will give the following result:

Power (over Ethernet) compatibility:
barrel plug: 5.5/2.5 12V

straight crosslink
802.3af yes yes
legacy no no
compatible unknown unknown
Unifi unknown unknown

Note: Remarks here ‎