Difference between revisions of "Template:Tool"

From Autopilot Wiki
Jump to: navigation, search
(Created page with "<noinclude> This is the "Tool" template. It should be called in the following format: <pre> {{Tool |Tool Name= |Manufacturer= |Product ID= |Datasheet= }} </pre> Edit the page...")
 
(Generated from a page schema)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Tool
 
{{Tool
|Tool Name=
+
|Image=
 +
|Modality=
 +
|Tool Type=
 
|Manufacturer=
 
|Manufacturer=
 
|Product ID=
 
|Product ID=
 +
|Product Page=
 
|Datasheet=
 
|Datasheet=
 +
|External Datasheet=
 +
|Price=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
+
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! Tool Name
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
| [[Uses Tool::{{{Tool Name|}}}]]
+
|-
 +
{{#if:{{{Image|}}}|! Image
 +
{{!}} [[File:{{{Image|}}}]] {{#set:Has Image=File:{{{Image|}}}}}
 +
}}
 +
|-
 +
! Modality
 +
| {{#arraymap:{{{Modality|}}}|,|x|[[Modality::x]]}}
 +
 
 +
|-
 +
! Tool Type
 +
| {{#arraymap:{{{Tool Type|}}}|,|x|[[Is Tool Type::x]]}}
 +
 
 
|-
 
|-
 
! Manufacturer
 
! Manufacturer
 
| [[Manufactured By::{{{Manufacturer|}}}]]
 
| [[Manufactured By::{{{Manufacturer|}}}]]
 
|-
 
|-
! Product ID
+
! Product ID/Part Number
 
| [[Has Product ID::{{{Product ID|}}}]]
 
| [[Has Product ID::{{{Product ID|}}}]]
 
|-
 
|-
 +
! Product Page
 +
| [[Has Product Page::{{{Product Page|}}}]]
 +
{{#if:{{{Datasheet|}}}|
 +
{{!}}-
 
! Datasheet
 
! Datasheet
| [[Datasheet::{{{Datasheet|}}}]]
+
{{!}} [[File:{{{Datasheet|}}}]] {{#set:Has Datasheet=File:{{{Datasheet|}}}}}
 +
}}
 +
{{#if:{{{External Datasheet|}}}|
 +
{{!}}-
 +
! External Datasheet
 +
{{!}} [[Has External Datasheet::{{{External Datasheet|}}}]]
 +
}}
 +
{{#if:{{{Price|}}}|
 +
{{!}}-
 +
! Price (USD)
 +
{{!}} [[Has USD Price::{{{Price|}}}]]
 +
}}
 
|}
 
|}
  
 
[[Category:Tool]]
 
[[Category:Tool]]
 
</includeonly>
 
</includeonly>

Revision as of 22:29, 27 April 2022

This is the "Tool" template. It should be called in the following format:

{{Tool
|Image=
|Modality=
|Tool Type=
|Manufacturer=
|Product ID=
|Product Page=
|Datasheet=
|External Datasheet=
|Price=
}}

Edit the page to see the template text.