Difference between revisions of "Template:Tool"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}| | <includeonly>{{#if:{{{1|}}}| | ||
− | [[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]][[Category:Projects using {{{1}}}|{{{1}}}]]| | + | {{#ifexist:{{{1}}}|[[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]|{{{1}}}}}[[Category:Projects using {{{1}}}|{{{1}}}]]| |
''No parameter passed''}}</includeonly> | ''No parameter passed''}}</includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Latest revision as of 20:56, 8 February 2010
[edit] [ ] Template documentation
This template is designed to automatically include a wiki link, and add a category to the article it resides in. The purpose of the category is to allow for searching on projects that utilize similar tools.
Usage
{{tool|TOOL NAME|DISPLAY NAME}}
The parameters are not named parameters, simply replace them with value
- TOOL NAME — The name of the tool that was used, the template will attempt to provide a wiki link
- DISPLAY NAME (optional) — The name to display
Examples
No linking article
* {{tool|Drill Press}}
Renders
Linking article
* {{tool|Sand Blasting Cabinet}}
Renders
Linking article with different display name
* {{tool|Sand Blasting Cabinet|Sand Cabinet}}
Renders
The above documentation is transcluded from Template:Tool/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |