(Created page with " <noinclude> <templatedata> { "params": { "Назва": { "required": true, "description": "Script name", "label": "Name", "example": "WME Toolbox", "type":...") |
No edit summary |
||
(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Documentation}}</noinclude> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "name": { | ||
" | "label": "Name", | ||
"description": "Script name", | "description": "Script name", | ||
"example": "WME Toolbox", | "example": "WME Toolbox", | ||
"type": "string" | "type": "string", | ||
"required": true | |||
}, | }, | ||
" | "type": { | ||
" | "label": "Type", | ||
" | "description": "Script type", | ||
"example": "Browser extension", | "example": "Browser extension", | ||
"type": "string", | |||
"autovalue": "Browser extension", | "autovalue": "Browser extension", | ||
"required": true | "required": true | ||
}, | }, | ||
" | "description": { | ||
"label": "Description", | |||
"description": "Script description", | "description": "Script description", | ||
" | "type": "string", | ||
"label": " | "autovalue": "" | ||
"type": " | }, | ||
"thumbnail": { | |||
"label": "Thumbnail", | |||
"description": "Thumbnail", | |||
"type": "wiki-file-name" | |||
}, | }, | ||
" | "url": { | ||
" | "label": "URL", | ||
"description": "Script URL", | "description": "Script URL", | ||
"label": " | "type": "url" | ||
}, | |||
"chrome": { | |||
"label": "Chrome Extension", | |||
"description": "Chrome Extension", | |||
"type": "url" | |||
}, | |||
"firefox": { | |||
"label": "Firefox Extension", | |||
"description": "Firefox Extension", | |||
"type": "url" | |||
}, | |||
"monkey": { | |||
"label": "Monkey extension", | |||
"description": "Monkey extension", | |||
"type": "url" | |||
} | } | ||
}, | }, | ||
"description": " | "description": "Addon for WME", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "name", | ||
" | "type", | ||
" | "description", | ||
" | "thumbnail", | ||
" | "url", | ||
"chrome", | |||
"firefox", | |||
"monkey" | |||
], | ], | ||
"format": "block" | "format": "block" | ||
Line 49: | Line 66: | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#if: {{{name|}}} | ==={{{name}}}=== }} | |||
{{#if: {{{thumbnail|}}} | [[{{{thumbnail}}}|right|240px|thumb]] }}{{#if: {{{type|}}} | '''{{{type}}}''' <br/> }}{{#if: {{{description|}}} | {{{description}}} <br/> }}{{#if: {{{url|}}} | * {{{url}}} }}{{#if: {{{chrome|}}} | * [{{{chrome}}} Додаток до Chrome] }}{{#if: {{{firefox|}}} | * [{{{firefox}}} Додаток до Firefox] }}{{#if: {{{monkey|}}} | * [{{{monkey}}} Monkey скрипт] }} | |||
</includeonly> | |||
<noinclude>[[Category:Шаблони]]</noinclude> |
Latest revision as of 07:49, 3 April 2019
Приклад використання:
{{Script | name = WME Toolbox | type = Додаток до браузера | thumbnail = File:WME-Toolbox.png | description = Позначає на карті обмеження швидкості, блокування та деякі помилки, дозволяє вимірювати відстань та багато іншого | chrome = https://chrome.google.com/webstore/detail/wme-toolbox/ihebciailciabdiknfomleeccodkdejn | firefox = https://gitlab.com/doctorkb/wme-toolbox-public/raw/master/Dist/Firefox/wmetoolbox.xpi }}
Addon for WME
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Script name
| String | required |
Type | type | Script type
| String | required |
Description | description | Script description
| String | optional |
Thumbnail | thumbnail | Thumbnail | File | optional |
URL | url | Script URL | URL | optional |
Chrome Extension | chrome | Chrome Extension | URL | optional |
Firefox Extension | firefox | Firefox Extension | URL | optional |
Monkey extension | monkey | Monkey extension | URL | optional |