Template:Equipment page: Difference between revisions
Jump to navigation
Jump to search
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) |
mNo edit summary |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
[[Tools_We_Have|Back to | [[Tools_We_Have|← Back to tools gallery]] | ||
{{{itemphoto|[[File:{{{id}}}.jpg|350px|thumb|right|{{{caption|}}}]]}}} | |||
| | |||
| | |||
| | |||
|} | |||
<!-- | |||
* ''' | [[{{{itemphoto|File:{{{id}}}.jpg}}}|350px|thumb|right|{{{caption|}}}]] | ||
* '''Make/Model: ''' {{{model}}} | |||
* '''Serial Number: ''' {{{serial}}} | The line above would probably be a better way to include the image as it would | ||
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 | |||
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 | |||
compatible with both formats first. | |||
--> | |||
* '''Type:''' {{{toolname}}} | |||
* '''Make/Model:''' {{{model}}} | |||
* '''Serial Number:''' {{{serial}}} | |||
* '''Original Owner:''' {{{owner}}} | * '''Original Owner:''' {{{owner}}} | ||
* '''Loan Status:''' {{{loanstatus}}} | * '''Loan Status:''' {{{loanstatus}}} | ||
* '''Arrival Date:''' {{{arrived}}} | * '''Arrival Date:''' {{{arrived}}} | ||
* '''Location: ''' {{{location}}} | * '''Location:''' {{{location}}} | ||
* '''Functional Status:''' {{{status}}} | * '''Functional Status:''' {{{status}}} | ||
* '''Usage Permissions:''' {{{permission}}} | * '''Usage Permissions:''' {{{permission}}} | ||
* '''Certification:''' {{{certification}}} | * '''Certification:''' {{{certification}}} | ||
* '''Wiki ID:''' [[{{{id}}}]] | |||
[[Category:Tools]] | |||
</includeonly> | |||
<!-- DOCUMENTATION --> | <!-- 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: | 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> | ||
{{ | {{Equipment page | ||
| toolname = | | 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 42: | Line 49: | ||
"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. | | caption = (optional) A caption for the image, if you're not using manual image markup via itemphoto | ||
| itemphoto = (optional) A file link to a photo of the tool. | |||
Standardly [[File:filename.jpg|350px|thumb|right|<caption goes here>]] with the appropriate filename 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 49: | Line 58: | ||
It generates the following on the tool page: | It generates the following on the tool page: | ||
< | <div style="border: 1px solid black;"> | ||
[[Tools_We_Have|Back to | [[Tools_We_Have|← Back to tools gallery]] | ||
{{{itemphoto|[[File:NoImage.png|350px|thumb|right|]]}}} | |||
* '''Type:''' {{{toolname}}} | |||
* ''' | * '''Make/Model:''' {{{model}}} | ||
* '''Make/Model: ''' {{{model}}} | * '''Serial Number:''' {{{serial}}} | ||
* '''Serial Number: ''' {{{serial}}} | |||
* '''Original Owner:''' {{{owner}}} | * '''Original Owner:''' {{{owner}}} | ||
* '''Loan Status:''' {{{loanstatus}}} | * '''Loan Status:''' {{{loanstatus}}} | ||
* '''Arrival Date:''' {{{arrived}}} | * '''Arrival Date:''' {{{arrived}}} | ||
* '''Location: ''' {{{location}}} | * '''Location:''' {{{location}}} | ||
* '''Functional Status:''' {{{status}}} | * '''Functional Status:''' {{{status}}} | ||
* '''Usage Permissions:''' {{{permission}}} | * '''Usage Permissions:''' {{{permission}}} | ||
* '''Certification:''' {{{certification}}} | * '''Certification:''' {{{certification}}} | ||
</ | * '''Wiki ID:''' {{{id}}} | ||
</div> | |||
It also adds the page to [[:Category:Tools]]. | |||
</noinclude> | </noinclude> |
Revision as of 04:22, 24 April 2019
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 | caption = (optional) A caption for the image, if you're not using manual image markup via itemphoto | itemphoto = (optional) A file link to a photo of the tool. Standardly [[File:filename.jpg|350px|thumb|right|<caption goes here>]] 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:
- 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.