CT/examples – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(extracted "examples" from Template:CT)
 
m (Some wiki formatting)
Line 1: Line 1:
<includeonly>{{TemplateCase|<big>Default Classes</big>|== Default Classes ==}}  
<includeonly>{{TemplateCase|<big>Default Classes</big>|== Default Classes ==}}  
{{Feature|arma3|'''AddOns:''' Classes need to be initialised first with {{ic|class SomeClass;}}
{{Feature|arma3|'''AddOns:''' Classes need to be initialised first with {{hl|class SomeClass;}}
----
----
'''Missions:''' Since {{arma3}} v2.02 one can use {{ic|[[import]] SomeClass;}} to initialise a class. In older versions, use {{ic|"Default" [[call]] [[BIS_fnc_exportGUIBaseClasses]];}} and paste the result into the [[Description.ext|description.ext]].}}</includeonly><noinclude>{{Doc/Template
'''Missions:''' Since {{arma3}} v2.02 one can use {{hl|[[import]] SomeClass;}} to initialise a class. In older versions, use <sqf inline>"Default" call BIS_fnc_exportGUIBaseClasses;</sqf> and paste the result into the [[Description.ext|description.ext]].}}</includeonly><noinclude>{{Doc/Template
|descr= Adds some informative text before the examples of a Control Types page.
|descr= Adds some informative text before the examples of a Control Types page.
|example1= <nowiki>{{CT/examples}}</nowiki>
|example1= <nowiki>{{CT/examples}}</nowiki>
|result1= {{CT/examples}}
|result1= {{CT/examples}}
}}</noinclude>
}}</noinclude>

Revision as of 17:52, 27 July 2022

Adds some informative text before the examples of a Control Types page.

This template is used on these pages.

Usage

{{CT/examples}}


Examples
Code Result
{{CT/examples}} Default Classes
Arma 3
AddOns: Classes need to be initialised first with class SomeClass;
Missions: Since Arma 3 v2.02 one can use import SomeClass; to initialise a class. In older versions, use "Default" call BIS_fnc_exportGUIBaseClasses; and paste the result into the description.ext.