Template:Equipment page: Difference between revisions

no edit summary
m (changed '''Name:''' to '''Type:''')
No edit summary
 
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>[[Tools we have|&larr; Back to tools we have]]
[[Tools_We_Have|&larr; Back to tools gallery]]
{|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|}}}
{{{itemphoto|[[File:{{{id}}}.jpg|350px|thumb|right|{{{caption|}}}]]}}}
|-
 
|'''Type'''||{{{toolname}}}
<!--
|-
[[{{{itemphoto|File:{{{id}}}.jpg}}}|350px|thumb|right|{{{caption|}}}]]
|'''Make/Model'''||{{{model}}}
 
|-
The line above would probably be a better way to include the image as it would
|'''Serial number'''||{{{serial}}}
allow the "caption" field to be used even when an alternate image is specified
|-
and it would allow one to specify an alternate image without having to include
|'''Original owner'''||{{{owner}}}
the formatting info in the "itemphoto" field. It will also probably break a lot
|-
of the markup currently used on most pages, so I'll update them to something
|'''Loan status'''||{{{loanstatus}}}
compatible with both formats first.
|-
-->
|'''Arrival date'''||{{{arrived}}}
 
|-
* '''Type:''' {{{toolname}}}
|'''Location'''||{{{location}}}
* '''Make/Model:''' {{{model}}}
|-
* '''Serial Number:''' {{{serial}}}
|'''Functional status'''||{{{status}}}
* '''Original Owner:''' {{{owner}}}
|-
* '''Loan Status:''' {{{loanstatus}}}  
|'''Usage permissions'''||{{{permission}}}
* '''Arrival Date:''' {{{arrived}}}
|-
* '''Location:''' {{{location}}}
|'''Certification'''||{{{certification}}}
* '''Functional Status:''' {{{status}}}
|-
* '''Usage Permissions:''' {{{permission}}}
|'''Wiki-ID'''||[[{{{id}}}]] {{#if:{{{formerid|}}}|(formerly: {{{formerid}}})}}
* '''Certification:''' {{{certification}}}
|-
* '''Wiki ID:''' [[{{{id}}}]]
|'''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]]
[[Category:Tools]]</includeonly>
</includeonly>


<!-- DOCUMENTATION -->
<!-- DOCUMENTATION -->
Line 50: Line 49:
| certification = "Self-taught" or "Certification required" as appropriate
| certification = "Self-taught" or "Certification required" as appropriate
| id            = Unique ID number redirecting to the tool's page
| id            = Unique ID number redirecting to the tool's page
| caption      = (optional) A caption for the image, if you're not using manual image markup via itemphoto
| formerid      = Former ID number(s); must each be manually linked
| itemphoto    = (optional) A file link to a photo of the tool.
| caption      = (optional) A caption for the image
                       Standardly [[File:filename.jpg|350px|thumb|right|<caption goes here>]] with the appropriate filename substituted.
| 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 58: Line 58:


It generates the following on the tool page:
It generates the following on the tool page:
<div style="border: 1px solid black;">
<div style="border: 1px solid black; height: 560px;">
[[Tools_We_Have|&larr; Back to tools gallery]]
[[Tools we have|&larr; Back to tools we have]]
 
{{{itemphoto|[[File:NoImage.png|350px|thumb|right|]]}}}


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