CT/examples – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(extracted "examples" from Template:CT)
 
(Fix import link)
 
(One intermediate revision by the same user not shown)
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 (Config)|import]] SomeClass;}} to initialise a class. In older versions, use <sqf inline>"Default" call BIS_fnc_exportGUIBaseClasses;</sqf> and paste the result into [[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>

Latest revision as of 18:03, 30 October 2023

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 description.ext.