Link/Enfusion – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add slash-ending path documentation) |
Lou Montana (talk | contribs) m (Add dir separator info) |
||
Line 6,471: | Line 6,471: | ||
|descr= Create a [[Arma Reforger:Workbench|Workbench]] link for: | |descr= Create a [[Arma Reforger:Workbench|Workbench]] link for: | ||
* {{Link|Arma Reforger:Script Editor|Script Editor}} scripting classes | * {{Link|Arma Reforger:Script Editor|Script Editor}} scripting classes | ||
* {{Link|Arma Reforger:Resource Manager|Resource Manager}} directory path (note: paths must not end with {{hl|/}}) | * {{Link|Arma Reforger:Resource Manager|Resource Manager}} directory path (note: paths '''must''' use {{hl|/}} separator and '''not''' end with {{hl|/}}) | ||
* it can ''eventually'' be expanded to uniquely named resource files. | * it can ''eventually'' be expanded to uniquely named resource files. | ||
It also adds the page to the [[:Category:Link/Enfusion template usage error|Link/Enfusion template usage error]] category on usage error, and to the [[:Category:Pages with wrong Enfusion classes|Pages with wrong Enfusion classes]] category if the provided class is unknown. | It also adds the page to the [[:Category:Link/Enfusion template usage error|Link/Enfusion template usage error]] category on usage error, and to the [[:Category:Pages with wrong Enfusion classes|Pages with wrong Enfusion classes]] category if the provided class is unknown. |
Revision as of 16:29, 1 June 2023
Create a Workbench link for:
- Script Editor scripting classes
- Resource Manager directory path (note: paths must use
/ separator and not end with /) - it can eventually be expanded to uniquely named resource files.
It also adds the page to the Link/Enfusion template usage error category on usage error, and to the Pages with wrong Enfusion classes category if the provided class is unknown.
This template is used on these pages.
Usage
{{Link/Enfusion|game|itemName}}
- game: format to the {{Name}}'s identifier format, e.g armaR, arma4 etc.
- itemName: scripting classname, e.g SCR_UIInfo. Uniquely named resource files may follow later (e.g SCR_UIInfo.c, FieldManualConfigRoot.conf).
Code | Result |
---|---|
{{Link/Enfusion}} | -no game defined!- |
{{Link/Enfusion|abc}} | -wrong game ("abc") provided!- |
{{Link/Enfusion|armaR}} | -no class provided!- |
{{Link/Enfusion|armaR|stuff}} | -unknown class ("stuff") provided!- |
{{Link/Enfusion|armaR|SCR_UIInfo}} {{Link/Enfusion|armaR|SCR_UIInfo.c}} {{Link/Enfusion|armaR|FieldManualConfigRoot.conf}} |
SCR_UIInfo -unknown class ("SCR_UIInfo.c") provided!- -unknown class ("FieldManualConfigRoot.conf") provided!- |
{{Link/Enfusion|arma4}} {{Link/Enfusion|arma4|SCR_UIInfo}} |
Soon™… Soon™… |
{{Link/Enfusion|armaR|scripts/Game/Generators}} | scripts/Game/Generators |