Link/Enfusion – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page Template:EnfLink to Template:Link/Enfusion without leaving a redirect: Name standard)
m (EnfLink → Link/Enfusion)
Line 9: Line 9:
|SCR_UIInfo.c= {{Link|link= enfusion://ScriptEditor/scripts/Game/Editor/Containers/UIInfo/SCR_UIInfo.c|text= {{{2}}}}}
|SCR_UIInfo.c= {{Link|link= enfusion://ScriptEditor/scripts/Game/Editor/Containers/UIInfo/SCR_UIInfo.c|text= {{{2}}}}}
|#default= -unknown class ("{{{2}}}") provided!- {{TemplateCase||[[Category:Pages with wrong Enfusion classes]]}}
|#default= -unknown class ("{{{2}}}") provided!- {{TemplateCase||[[Category:Pages with wrong Enfusion classes]]}}
|= -no class provided!- {{TemplateCase||[[Category:EnfLink template usage error]]}}
|= -no class provided!- {{TemplateCase||[[Category:Link/Enfusion template usage error]]}}
}}
}}


Line 20: Line 20:
no (valid) game provided
no (valid) game provided
-->
-->
|#default= -wrong '''[[Template:EnfLink|game]]''' ("{{{1}}}") defined!- {{TemplateCase||[[Category:EnfLink template usage error]]}}
|#default= -wrong '''[[Template:Link/Enfusion|game]]''' ("{{{1}}}") defined!- {{TemplateCase||[[Category:Link/Enfusion template usage error]]}}
|= -no '''[[Template:EnfLink|game]]''' defined!- {{TemplateCase||[[Category:EnfLink template usage error]]}}
|= -no '''[[Template:Link/Enfusion|game]]''' defined!- {{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)
Line 28: Line 28:
|param2= itemName
|param2= itemName
|descr2= resource name, e.g {{hl|SCR_UIInfo}}, {{hl|SCR_UIInfo.c}}, {{hl|FieldManualConfigRoot.conf}}
|descr2= resource name, e.g {{hl|SCR_UIInfo}}, {{hl|SCR_UIInfo.c}}, {{hl|FieldManualConfigRoot.conf}}
|example1= <nowiki>{{EnfLink}}</nowiki>
|example1= <nowiki>{{Link/Enfusion}}</nowiki>
|result1= {{EnfLink}}
|result1= {{Link/Enfusion}}
|example2= <nowiki>{{EnfLink|abc}}</nowiki>
|example2= <nowiki>{{Link/Enfusion|abc}}</nowiki>
|result2= {{EnfLink|abc}}
|result2= {{Link/Enfusion|abc}}
|example3= <nowiki>{{EnfLink|armaR}}</nowiki>
|example3= <nowiki>{{Link/Enfusion|armaR}}</nowiki>
|result3= {{EnfLink|armaR}}
|result3= {{Link/Enfusion|armaR}}
|example4= <nowiki>{{EnfLink|armaR|stuff}}</nowiki>
|example4= <nowiki>{{Link/Enfusion|armaR|stuff}}</nowiki>
|result4= {{EnfLink|armaR|stuff}}
|result4= {{Link/Enfusion|armaR|stuff}}
|example5= <nowiki>{{EnfLink|armaR|SCR_UIInfo}}</nowiki><br><nowiki>{{EnfLink|armaR|SCR_UIInfo.c}}</nowiki><br><nowiki>{{EnfLink|armaR|FieldManualConfigRoot.conf}}</nowiki>
|example5= <nowiki>{{Link/Enfusion|armaR|SCR_UIInfo}}</nowiki><br><nowiki>{{Link/Enfusion|armaR|SCR_UIInfo.c}}</nowiki><br><nowiki>{{Link/Enfusion|armaR|FieldManualConfigRoot.conf}}</nowiki>
|result5= {{EnfLink|armaR|SCR_UIInfo}}<br>{{EnfLink|armaR|SCR_UIInfo.c}}<br>{{EnfLink|armaR|FieldManualConfigRoot.conf}}
|result5= {{Link/Enfusion|armaR|SCR_UIInfo}}<br>{{Link/Enfusion|armaR|SCR_UIInfo.c}}<br>{{Link/Enfusion|armaR|FieldManualConfigRoot.conf}}
|example6= <nowiki>{{EnfLink|arma4}}</nowiki><br><nowiki>{{EnfLink|arma4|SCR_UIInfo}}</nowiki>
|example6= <nowiki>{{Link/Enfusion|arma4}}</nowiki><br><nowiki>{{Link/Enfusion|arma4|SCR_UIInfo}}</nowiki>
|result6= {{EnfLink|arma4}}<br>{{EnfLink|arma4|SCR_UIInfo}}
|result6= {{Link/Enfusion|arma4}}<br>{{Link/Enfusion|arma4|SCR_UIInfo}}
}}</noinclude>
}}</noinclude>

Revision as of 18:35, 4 January 2023

Create a Workbench link to the scripting class (will eventually be expanded to uniquely named resource files)

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
Examples
Code Result
{{Link/Enfusion}} -no game defined!-
{{Link/Enfusion|abc}} -wrong game ("abc") defined!-
{{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
SCR_UIInfo.c
FieldManualConfigRoot.conf
{{Link/Enfusion|arma4}}
{{Link/Enfusion|arma4|SCR_UIInfo}}
soon™…
soon™…