Biki Export Scripts: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (added introduction) |
||
Line 1: | Line 1: | ||
= Introduction = | = Introduction = | ||
This page contains all export scripts used to generate data on various pages on this wiki. | This page contains all export scripts used to generate data on various pages on this wiki. In order to quickly link to the export script used to generate data on a specific page use | ||
<pre>{{Informative|Extraction script can be found on the [[Biki Export Scripts#{{PAGENAME}}|Biki Export Scripts]] page.}}</pre> on that specific page. | |||
= [[inputAction/actions]] = | = [[inputAction/actions]] = |
Revision as of 10:52, 1 February 2021
Introduction
This page contains all export scripts used to generate data on various pages on this wiki. In order to quickly link to the export script used to generate data on a specific page use
{{Informative|Extraction script can be found on the [[Biki Export Scripts#{{PAGENAME}}|Biki Export Scripts]] page.}}
on that specific page.
inputAction/actions
_r = [] ; { _r pushBack [getText (_x >> "name"),[]] ; _index = _forEachIndex ; { private _actionName = actionName _x ; (_r#_index#1) pushBack [_x,_actionName] ; } forEach getArray (_x >> "group") ; } forEach ("true" configClasses (configFile >> "UserActionGroups")) ; _rFinal = [ '{| class="sortable wikitable"' ] ; _presets = ("configName _x != 'Empty'" configClasses (configFile >> "CfgDefaultKeysPresets")) ; _str = '! Type !! actionName !! Name' ; { _str = _str + " !! " + getText (_x >> "displayName") ; if (getNumber (_x >> "default") == 1) then { _str = _str + "<br/>(Default)" ; } ; } forEach _presets ; _rFinal pushBack format ['! colspan="3"| Action information !! colspan="%1"| Presets',count _presets] ; _rFinal pushBack "|-" ; _rFinal pushBack _str ; { _type = _x#0 ; { _rFinal pushBack "|-" ; _x params ["_actionName","_name"/*,"_tooltip"*/] ; if (_name isEqualTo "") then { _name = "{{n/a}}" ; } ; _str = format ["| %1 || <tt>%2</tt> || %3 ",_type,_actionName,_name] ; { _keys = getArray (_x >> "Mappings" >> _actionName) ; if (count _keys != 0) then { _keys = _keys apply { call { if (typeName _x == "STRING") exitWith { keyName call compile _x ; } ; if (typeName _x == "ARRAY") exitWith { _r = [] ; { if (typeName _x == "STRING") then { _r pushBack ((keyName call compile _x) splitString """")#0 ; } ; _r pushBack ((keyName _x) splitString """")#0 ; } forEach _x ; _r = (_r joinString "+") ; _r } ; keyName _x } ; } ; _str = _str + format ["|| %1 ",(_keys joinString ", " splitString """")#0] ; } else { _str = _str + "|| " ; } ; } forEach _presets ; _rFinal pushBack _str ; } forEach (_x#1) ; } forEach _r ; _rFinal pushBack "|}" ; copyToClipboard (_rFinal joinString endl) ;↑ Back to spoiler's top