Template:Equipment page: Difference between revisions

From Protospace Wiki
Jump to navigation Jump to search
m (removed unnecessary newline)
No edit summary
 
(62 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>[[Tools we have|&larr; Back to tools we have]]
[[Tools_We_Have|Back to list of Tools We Have]]
{|style="float: right; margin-left: 10px; border: 1px #AAAAAA solid; background-color: #F9F9F9; width: 280px; font-size: 90%;"
 
|colspan="2" style="padding: 5px 15px; text-align: center;"|[[File:{{{photo|{{{id}}}.jpg}}}|250px]]<br>{{{caption|}}}
{| style="border:solid #aaa 0px; margin:0px; font-size:100%; background:#ffffff; width:0px; padding:1em; text-align:absmiddle; float:right; clear:right;"
|-
| {{{itemphoto|[[file:Equipment-no-photo.jpg|150]]}}}
|'''Type'''||{{{toolname}}}
|-
|'''Make/Model'''||{{{model}}}
|-
|'''Serial number'''||{{{serial}}}
|-
|'''Original owner'''||{{{owner}}}
|-
|'''Loan status'''||{{{loanstatus}}}
|-
|'''Arrival date'''||{{{arrived}}}
|-
|'''Location'''||{{{location}}}
|-
|'''Functional status'''||{{{status}}}
|-
|'''Usage permissions'''||{{{permission}}}
|-
|'''Certification'''||{{{certification}}}
|-
|-
| align="absmiddle" |
|'''Wiki-ID'''||[[{{{id}}}]] {{#if:{{{formerid|}}}|(formerly: {{{formerid}}})}}
|-
|-
|  
|'''Label'''||[https://labels.protospace.ca/?id={{{id}}}&size=1 1.0"] [https://labels.protospace.ca/?id={{{id}}}&size=1.5 1.5"] [https://labels.protospace.ca/?id={{{id}}}&size=2 2.0"]
|}
|}
[[Category:Tools]]</includeonly>


== General ==
* '''Name: ''' {{{toolname}}}
* '''Make/Model: ''' {{{model}}}
* '''Serial Number: ''' {{{serial}}}
* '''Original Owner:''' {{{owner}}}
* '''Loan Status:''' {{{loanstatus}}}
* '''Arrival Date:''' {{{arrived}}}
* '''Location: ''' {{{location}}}
* '''Functional Status:''' {{{status}}}
* '''Usage Permissions:''' {{{permission}}}
* '''Certification:''' {{{certification}}}
[[Category:Tools]]</includeonly>
<!-- DOCUMENTATION -->
<!-- DOCUMENTATION -->
<noinclude>This template is intended to be used on all tool pages (except pages of tools that are no longer at Protospace—those should use [[Template:EquipmentPage removed]]). Follow the procedure outlined on the [[Adding New Tools Procedure]] page to add a page for a new tool.
<noinclude>
This template is intended to be used on all tool pages (except pages of tools that are no longer at Protospace—those should use [[Template:Equipment page removed]]). Follow the procedure outlined on the [[Adding New Tools Procedure]] page to add a page for a new tool.


The template's syntax is as follows:
The template's syntax is as follows:
<pre><nowiki>
<pre><nowiki>
{{EquipmentPage
{{Equipment page
| toolname      = Name of the tool
| toolname      = Type of tool
| model        = Make and/or model of tool
| model        = Make and/or model of tool
| serial        = Serial number (if applicable)
| serial        = Serial number (if applicable)
Line 41: Line 48:
                       "Open to members & friends", "Open to all", or something else as appropriate
                       "Open to members & friends", "Open to all", or something else as appropriate
| certification = "Self-taught" or "Certification required" as appropriate
| certification = "Self-taught" or "Certification required" as appropriate
| itemphoto    = A file link to a photo of the tool.
| id            = Unique ID number redirecting to the tool's page
                       Standardly [[File:filename.jpg|350px|thumb|right|]] with the appropriate filename substituted.
| formerid      = Former ID number(s); must each be manually linked
| caption      = (optional) A caption for the image
| photo        = (optional) A file link to a photo of the tool.
                       Standardly filename.jpg with the appropriate filename and extension substituted.
                       (You will need to upload the file if it doesn't already exist on the wiki.)
                       (You will need to upload the file if it doesn't already exist on the wiki.)
}}
}}
Line 48: Line 58:


It generates the following on the tool page:
It generates the following on the tool page:
<table border="1"><tr><td>
<div style="border: 1px solid black; height: 560px;">
[[Tools_We_Have|Back to list of Tools We Have]]
[[Tools we have|&larr; Back to tools we have]]


{| style="border:solid #aaa 0px; margin:0px; font-size:100%; background:#ffffff; width:0px; padding:1em; text-align:absmiddle; float:right; clear:right;"
{|style="float: right; margin-left: 10px; border: 1px #AAAAAA solid; background-color: #F9F9F9; width: 280px; font-size: 90%;"
| {{{itemphoto|[[file:Equipment-no-photo.jpg|150]]}}}
|colspan="2" style="padding: 5px 15px; text-align: center;"|[[File:NoImage.png|250px]]<br>{{{caption|}}}
|-
|'''Type'''||{{{toolname}}}
|-
|'''Make/Model'''||{{{model}}}
|-
|'''Serial number'''||{{{serial}}}
|-
|'''Original owner'''||{{{owner}}}
|-
|'''Loan status'''||{{{loanstatus}}}
|-
|'''Arrival date'''||{{{arrived}}}
|-
|'''Location'''||{{{location}}}
|-
|'''Functional status'''||{{{status}}}
|-
|-
| align="absmiddle" |
|'''Usage permissions'''||{{{permission}}}
|-
|-
|  
|'''Certification'''||{{{certification}}}
|-
|'''Wiki-ID'''||[[{{{id}}}]]
|}
|}
 
</div>
== General ==
It also adds the page to [[:Category:Tools]].
* '''Name: ''' {{{toolname}}}
* '''Make/Model: ''' {{{model}}}
* '''Serial Number: ''' {{{serial}}}
* '''Original Owner:''' {{{owner}}}
* '''Loan Status:''' {{{loanstatus}}}
* '''Arrival Date:''' {{{arrived}}}
* '''Location: ''' {{{location}}}
* '''Functional Status:''' {{{status}}}
* '''Usage Permissions:''' {{{permission}}}
* '''Certification:''' {{{certification}}}
</td></tr></table>
</noinclude>
</noinclude>

Latest revision as of 20:39, 8 December 2021


This template is intended to be used on all tool pages (except pages of tools that are no longer at Protospace—those should use Template:Equipment page removed). Follow the procedure outlined on the Adding New Tools Procedure page to add a page for a new tool.

The template's syntax is as follows:

{{Equipment page
| toolname      = Type of tool
| model         = Make and/or model of tool
| serial        = Serial number (if applicable)
| owner         = Original owner/donor (or buyers if the tool was group-bought)
| loanstatus    = Short-term loan, semi-permanent loan, or donated to Protospace
| arrived       = When the equipment showed up
| location      = Where one can find the tool/where it belongs
| status        = "Functional"/"Working", "Broken"/"Needs fixing", etc.
                      (If it needs fixing, please elaborate later in the article.)
| permission    = "Private", "Ask owner first"," Open to full members",
                      "Open to members & friends", "Open to all", or something else as appropriate
| certification = "Self-taught" or "Certification required" as appropriate
| id            = Unique ID number redirecting to the tool's page
| formerid      = Former ID number(s); must each be manually linked
| caption       = (optional) A caption for the image
| photo         = (optional) A file link to a photo of the tool.
                      Standardly filename.jpg with the appropriate filename and extension substituted.
                      (You will need to upload the file if it doesn't already exist on the wiki.)
}}

It generates the following on the tool page:

← Back to tools we have

NoImage.png
Type {{{toolname}}}
Make/Model {{{model}}}
Serial number {{{serial}}}
Original owner {{{owner}}}
Loan status {{{loanstatus}}}
Arrival date {{{arrived}}}
Location {{{location}}}
Functional status {{{status}}}
Usage permissions {{{permission}}}
Certification {{{certification}}}
Wiki-ID [[{{{id}}}]]

It also adds the page to Category:Tools.