Template:Script View history

No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Documentation}}</noinclude>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 32: Line 33:
"label": "URL",
"label": "URL",
"description": "Script URL",
"description": "Script URL",
"type": "url",
"type": "url"
"required": true
},
"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"
}
}
},
},
Line 42: Line 57:
"description",
"description",
"thumbnail",
"thumbnail",
"url"
"url",
"chrome",
"firefox",
"monkey"
],
],
"format": "block"
"format": "block"
Line 48: Line 66:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
 
<includeonly>{{#if: {{{name|}}} | ==={{{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>
| Тип
| width="400px" | {{{type}}}
| rowspan="5" | [[{{{thumbnail}}}|320px|thumb]]
|-
| Можливості
| {{{description}}}
|}

Latest revision as of 07:49, 3 April 2019

link
link

Приклад використання:

{{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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Script name

Example
WME Toolbox
Stringrequired
Typetype

Script type

Example
Browser extension
Auto value
Browser extension
Stringrequired
Descriptiondescription

Script description

Auto value
Stringoptional
Thumbnailthumbnail

Thumbnail

Fileoptional
URLurl

Script URL

URLoptional
Chrome Extensionchrome

Chrome Extension

URLoptional
Firefox Extensionfirefox

Firefox Extension

URLoptional
Monkey extensionmonkey

Monkey extension

URLoptional