Link/Enfusion – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Update classes)
(Add directory link possibility)
Line 6,452: Line 6,452:
| ZeroingMarkInfo = {{Link|enfusion://ScriptEditor/scripts/Game/generated/Weapon/ZeroingMarkInfo.c;12|ZeroingMarkInfo}}
| ZeroingMarkInfo = {{Link|enfusion://ScriptEditor/scripts/Game/generated/Weapon/ZeroingMarkInfo.c;12|ZeroingMarkInfo}}
|= -no [[Template:Link/Enfusion|class]] provided!-{{TemplateCase||[[Category:Link/Enfusion template usage error]]}}
|= -no [[Template:Link/Enfusion|class]] provided!-{{TemplateCase||[[Category:Link/Enfusion template usage error]]}}
|#default= -unknown [[Template:Link/Enfusion|class]] ("{{{2}}}") provided!-{{TemplateCase||[[Category:Pages with wrong Enfusion classes]]}}
|#default= {{#if:{{#pos:{{{2}}}|/}}
| {{Link|enfusion://ResourceManager/~ArmaReforger:{{{2}}}|{{{2}}}}}
| -unknown [[Template:Link/Enfusion|class]] ("{{{2}}}") provided!-{{TemplateCase||[[Category:Pages with wrong Enfusion classes]]}}
}}
}}
}}


Line 6,483: Line 6,486:
|example6= <nowiki>{{Link/Enfusion|arma4}}</nowiki><br><nowiki>{{Link/Enfusion|arma4|SCR_UIInfo}}</nowiki>
|example6= <nowiki>{{Link/Enfusion|arma4}}</nowiki><br><nowiki>{{Link/Enfusion|arma4|SCR_UIInfo}}</nowiki>
|result6= {{Link/Enfusion|arma4}}<br>{{Link/Enfusion|arma4|SCR_UIInfo}}
|result6= {{Link/Enfusion|arma4}}<br>{{Link/Enfusion|arma4|SCR_UIInfo}}
|example7= <nowiki>{{Link/Enfusion|armaR|scripts/Game/Generators/}}</nowiki>
|result7= {{Link/Enfusion|armaR|scripts/Game/Generators/}}
}}</noinclude>
}}</noinclude>

Revision as of 15:38, 1 June 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: scripting classname, e.g SCR_UIInfo. Uniquely named resource files may follow later (e.g SCR_UIInfo.c, FieldManualConfigRoot.conf).
Examples
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/