Template:Equipment page: Difference between revisions
Jump to navigation
Jump to search
Ian Oliver (talk | contribs) (added alternative solution) |
Ian Oliver (talk | contribs) (overhauled the page: fixed problem of calling self by using a manual subst, hid template code from page so as to present only the documentation to readers, moved doc out of the middle of the template code, rewrote doc to make more sense & be helpful) |
||
Line 1: | Line 1: | ||
<includeonly> | |||
[[Tools_We_Have|Back to list of Tools We Have]] | [[Tools_We_Have|Back to list of 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;" | |||
| {{{itemphoto|[[file:Equipment-no-photo.jpg|150]]}}} | |||
|- | |||
| align="absmiddle" | | |||
|- | |||
| | |||
|} | |||
== 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 --> | |||
<noinclude> | <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. | |||
{{EquipmentPage|toolname=Name of the tool|model=Make/ | The template's syntax is as follows: | ||
</ | <pre><nowiki> | ||
{{EquipmentPage | |||
| toolname = Name of the 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 | |||
| itemphoto = A file link to a photo of the tool. | |||
Standardly [[File:filename.jpg|350px|thumb|right|]] with the appropriate filename substituted. | |||
(You will need to upload the file if it doesn't already exist on the wiki.) | |||
}} | |||
</nowiki></pre> | |||
It generates the following on the tool page: | |||
<table border="1"><tr><td> | |||
[[Tools_We_Have|Back to list of 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="border:solid #aaa 0px; margin:0px; font-size:100%; background:#ffffff; width:0px; padding:1em; text-align:absmiddle; float:right; clear:right;" | ||
Line 25: | Line 71: | ||
* '''Usage Permissions:''' {{{permission}}} | * '''Usage Permissions:''' {{{permission}}} | ||
* '''Certification:''' {{{certification}}} | * '''Certification:''' {{{certification}}} | ||
</td></tr></table> | |||
< | </noinclude> |
Revision as of 02:06, 16 October 2014
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.
The template's syntax is as follows:
{{EquipmentPage | toolname = Name of the 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 | itemphoto = A file link to a photo of the tool. Standardly [[File:filename.jpg|350px|thumb|right|]] with the appropriate filename 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:
General
|