Template:Script View history

No edit summary
No edit summary
 
(18 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"
"autovalue": ""
},
},
"chrome": {
"chrome": {
"label": "Chrome Extension",
"label": "Chrome Extension",
"description": "Chrome Extension",
"description": "Chrome Extension",
"type": "url",
"type": "url"
"autovalue": ""
},
},
"firefox": {
"firefox": {
"label": "Firefox Extension",
"label": "Firefox Extension",
"description": "Firefox Extension",
"description": "Firefox Extension",
"type": "url",
"type": "url"
"autovalue": ""
},
},
"monkey": {
"monkey": {
"label": "Monkey extension",
"label": "Monkey extension",
"description": "Monkey extension",
"description": "Monkey extension",
"type": "url",
"type": "url"
"autovalue": ""
}
}
},
},
Line 69: 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}}}
|}
 
{{#if: {{{url}}} | Посилання: {{{url}}} }}
 
{{#if: {{{chrome}}} | [{{{chrome}}} Додаток до Chrome] }}
 
{{#if: {{{firefox}}} | [{{{firefox}}} Додаток до Firefox] }}
 
{{#if: {{{monkey}}} | [{{{monkey}}} Monkey скрипт] }}

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