Link/Enfusion – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Update classes) |
Lou Montana (talk | contribs) m (Add categories information) |
||
Line 6,007: | Line 6,007: | ||
|#default= -wrong '''[[Template:Link/Enfusion|game]]''' ("{{{1}}}") provided!-{{TemplateCase||[[Category:Link/Enfusion template usage error]]}} | |#default= -wrong '''[[Template:Link/Enfusion|game]]''' ("{{{1}}}") provided!-{{TemplateCase||[[Category:Link/Enfusion template usage error]]}} | ||
}}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
|descr= Create a [[Arma Reforger:Workbench|Workbench]] link to the scripting class (will eventually be expanded to uniquely named resource files) | |descr= Create a [[Arma Reforger:Workbench|Workbench]] link to the scripting class (will 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. | ||
|param1= game | |param1= game | ||
|descr1= format to the {{Template|Name}}'s identifier format, e.g {{hl|armaR}}, {{hl|arma4}} etc. | |descr1= format to the {{Template|Name}}'s identifier format, e.g {{hl|armaR}}, {{hl|arma4}} etc. |
Revision as of 12:06, 5 January 2023
Create a Workbench link to the scripting class (will 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: resource name, e.g SCR_UIInfo, 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™… |