Template:Tool: Difference between revisions
From Public AI Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <includeonly>{{#cargo_declare: | ||
_table=Tools | |||
{{# | |description=Text | ||
|tool_type=String | |||
|has_resources=Boolean | |||
}} | |||
{{#cargo_store: | |||
_table=Tools | |||
|description={{{description|}}} | |||
|tool_type={{{tool_type|General}}} | |||
|has_resources={{{has_resources|false}}} | |||
}} | |||
{| class="wikitable" style="float:right; margin-left:1em; width:300px;" | |||
! colspan="2" style="text-align:center; font-size:larger;" | {{{name|{{PAGENAME}}}}} | |||
|- | |||
| '''Type:''' || {{{tool_type|General}}} | |||
|- | |||
| '''Description:''' || {{{description|}}} | |||
|} | |||
== Overview == | |||
{{{overview|}}} | |||
== Resources == | |||
{{#cargo_query: | |||
tables=ToolResources | |||
|where=tool='{{PAGENAME}}' | |||
|fields=_pageName=Resource,country,region | |||
|format=ul | |||
}} | }} | ||
=== {{{ | == Usage == | ||
{{{usage|}}} | |||
[[Category:Tools]] | |||
[[Category:{{{tool_type|General}}} Tools]] | |||
</includeonly><noinclude> | |||
This template is used to define a tool in the Public AI system. | |||
== Parameters == | |||
* '''name''' - Display name of the tool (defaults to page name) | |||
* '''description''' - Brief description of what the tool does | |||
* '''tool_type''' - Category of tool (e.g., "Crisis Support", "Transit", "Mapping") | |||
* '''has_resources''' - Boolean indicating if tool has locale-specific resources | |||
* '''overview''' - Detailed overview of the tool | |||
* '''usage''' - How to use the tool | |||
< | == Example == | ||
{{ | <pre> | ||
{{Tool | |||
|name=Suicide Hotline | |||
|description=Crisis support hotlines by country | |||
|tool_type=Crisis Support | |||
|has_resources=true | |||
|overview=Provides access to suicide prevention hotlines... | |||
|usage=Query by country or region... | |||
}} | }} | ||
</ | </pre> | ||
[[Category:Templates]] | |||
</noinclude> | |||
Revision as of 03:19, 23 December 2025
This template is used to define a tool in the Public AI system.
Parameters
- name - Display name of the tool (defaults to page name)
- description - Brief description of what the tool does
- tool_type - Category of tool (e.g., "Crisis Support", "Transit", "Mapping")
- has_resources - Boolean indicating if tool has locale-specific resources
- overview - Detailed overview of the tool
- usage - How to use the tool
Example
{{Tool
|name=Suicide Hotline
|description=Crisis support hotlines by country
|tool_type=Crisis Support
|has_resources=true
|overview=Provides access to suicide prevention hotlines...
|usage=Query by country or region...
}}