Link/Enfusion – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add categories information)
m (Fix param description)
Line 6,011: Line 6,011:
|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.
|param2= itemName
|param2= itemName
|descr2= resource name, e.g {{hl|SCR_UIInfo}}, {{hl|SCR_UIInfo.c}}, {{hl|FieldManualConfigRoot.conf}}
|descr2= '''scripting classname''', e.g {{hl|SCR_UIInfo}}. Uniquely named resource files ''may'' follow later (e.g {{hl|SCR_UIInfo.c}}, {{hl|FieldManualConfigRoot.conf}}).
|example1= <nowiki>{{Link/Enfusion}}</nowiki>
|example1= <nowiki>{{Link/Enfusion}}</nowiki>
|result1= {{Link/Enfusion}}
|result1= {{Link/Enfusion}}

Revision as of 14:05, 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: 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™…