Create an infobox for a Workbench Editor plugin.
Its error category is Infobox/WorkbenchPlugin template usage error.
This template is used on these pages.
Usage
{{Infobox/WorkbenchPlugin|name=|descr=|editor=|file=|shortcut=}}
- name=
- descr=: description of the plugin's usage and actions
- editor=: in which editors can this plugin be found - can be a multiple space-separated (case-insensitive) selection of:
- file=: (Optional) the editor's file path - see {{Link}}
- shortcut=: (Optional) keyboard shortcut - see {{Controls}}
Examples
Code
|
Result
|
{{Infobox/WorkbenchPlugin}}
|
-no name provided!-
|
-no editor provided!-
|
-no description provided!-
|
|
{{Infobox/WorkbenchPlugin
|name= My Plugin
|editor= script
|file=
}}
|
|
{{Infobox/WorkbenchPlugin
|name= My Plugin
|descr= plugin description
|editor= badvalue
}}
|
My Plugin
|
-bad editor "badvalue" provided!-
|
plugin description
|
|
{{Infobox/WorkbenchPlugin
|name= My Plugin
|descr= plugin description
|editor= bad value
}}
|
My Plugin
|
-bad editors "bad value" provided!-
|
plugin description
|
|
{{Infobox/WorkbenchPlugin
|name= Basic Code Formatter
|editor= script
|descr= The Basic Code Formatter is a plugin that helps formatting code properly. Use is this way:
* Shortcut 1 to scan edited lines in the currently-opened file (or in a whole addon, depending on options)
* Shortcut 2 to scan '''all''' the lines in the currently-opened file (not depending on options)
|file= {{Link|enfusion://ScriptEditor/scripts/WorkbenchGame/ScriptEditor/SCR_BasicCodeFormatterPlugin.c}}
|shortcut= <nowiki/>
# {{Controls|Ctrl|Shift|K}}
# {{Controls|Ctrl|Alt|Shift|K}}
}}
|
Basic Code Formatter
|
Script Editor plugin
|
- Ctrl + ⇧ Shift + K
- Ctrl + Alt + ⇧ Shift + K
|
The Basic Code Formatter is a plugin that helps formatting code properly. Use is this way:
- Shortcut 1 to scan edited lines in the currently-opened file (or in a whole addon, depending on options)
- Shortcut 2 to scan all the lines in the currently-opened file (not depending on options)
|
File: SCR_BasicCodeFormatterPlugin.c
|
|
{{Infobox/WorkbenchPlugin
|name= Do Something
|editor= world particle animation script audio behavior string procanim
|descr= The Do Something plugin does something, as the name says.
|file= {{Link|enfusion://ScriptEditor/scripts/WorkbenchGame/ScriptEditor/SCR_BasicCodeFormatterPlugin.c}}
|shortcut= <nowiki/>
# {{Controls|Ctrl|Alt|Del}} in {{Link|Arma Reforger:Script Editor|Script Editor}}
# {{Controls|Ctrl|Shift|Del}} in {{Link|Arma Reforger:World Editor|World Editor}}
}}
|
|