Lou Montana/Sandbox2 – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Set new tabs format)
m (Add RV/type & RV/param templates - the world is not ready for you my dears…)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="biki-tabs">{{#if:{{{title1|}}} | <div class="biki-tab-title">{{{title1|}}}</div>
{{TOC|none}}
}}{{#if:{{{title2|}}} | <div class="biki-tab-title">{{{title2|}}}</div>
[[Category:Sandbox]]
}}{{#if:{{{title3|}}} | <div class="biki-tab-title">{{{title3|}}}</div>
 
}}{{#if:{{{title4|}}} | <div class="biki-tab-title">{{{title4|}}}</div>
== RV/type Template ==
}}{{#if:{{{title5|}}} | <div class="biki-tab-title">{{{title5|}}}</div>
 
}}{{#if:{{{content1|}}} | <div class="biki-tab-content">{{{content1|}}}</div>
<includeonly>{{#if:{{{1|}}}|{{#switch:{{lc:{{{1}}}}}
}}{{#if:{{{content2|}}} | <div class="biki-tab-content">{{{content2|}}}</div>
|array= [[Array]]
}}{{#if:{{{content3|}}} | <div class="biki-tab-content">{{{content3|}}}</div>
|boolean= [[Boolean]]
}}{{#if:{{{content4|}}} | <div class="biki-tab-content">{{{content4|}}}</div>
|color= [[Array]] format [[Color]]
}}{{#if:{{{content5|}}} | <div class="biki-tab-content">{{{content5|}}}</div>
|rgb= [[Array]] format [[Color|Color (RGB)]]
}}</div></includeonly><noinclude>{{Doc/Template
|rgba= [[Array]] format [[Color|Color (RGBA)]]
|descr= This template allows for ''horizontal'' tabs.
|code= [[Code]]
|param1= title1..5
|config= [[Config]]
|descr1= named parameter - tab #'s title
|control= [[Control]]
|param2= content1..5
|date= [[Array]] format [[Date]]
|descr2= named parameter - tab #'s content
|diaryrecord= [[Diary Record]]
|example1= <nowiki>{{Tabs}}</nowiki>
|display= [[Display]]
|result1= {{ {{FULLPAGENAME}} }}
|edenentities= [[Array of Eden Entities]]
|example2= <nowiki>{{Tabs |title1= Tab 1 title}}</nowiki>
|group= [[Group]]
|result2= {{ {{FULLPAGENAME}} |title1= Tab 1 title}}
|hashmap= [[HashMap]]
|example3= <nowiki>{{Tabs |title1= Tab 1 title |content1= First tab content, yay!}}</nowiki>
|hashmapkey= [[HashMapKey]]
|result3= {{ {{FULLPAGENAME}} |title1= Tab 1 title |content1= First tab content, yay!}}
|loadout= [[Array]] format [[Unit Loadout Array]]
|example4= <nowiki>{{Tabs |title1= Tab 1 title |title2= Tab 2 title}}</nowiki>
|location= [[Location]]
|result4= {{ {{FULLPAGENAME}} |title1= Tab 1 title |title2= Tab 2 title}}
|namespace= [[Namespace]]
|example5= <nowiki>{{Tabs |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}</nowiki>
|number= [[Number]]
|result5= {{ {{FULLPAGENAME}} |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}
|object= [[Object]]
|particle= [[Array]] format [[ParticleArray]]
|pos= [[Array]] format [[Position]]
|pos2d= [[Array]] format [[Position#Position2D|Position2D]]
|pos3d= [[Array]] format [[Position#Position3D|Position3D]]
|posagl= [[Array]] format [[Position#PositionAGL|PositionAGL]]
|posagls= [[Array]] format [[Position#PositionAGLS|PositionAGLS]]
|posasl= [[Array]] format [[Position#PositionASL|PositionASL]]
|posatl= [[Array]] format [[Position#PositionATL|PositionATL]]
|posaslw= [[Array]] format [[Position#PositionASLW|PositionASLW]]
|posworld= [[Array]] format [[Position#PositionWorld|PositionWorld]]
|posrel= [[Array]] format [[Position#PositionRelative|PositionRelative]]
|side= [[Side]]
|script= [[Script Handle]]
|string= [[String]]
|task= [[Task]]
|teammember= [[Team Member]]
|text= [[Structured Text]]
|vector3d= [[Array]] format [[Vector3D]]
|waypoint= [[Array]] format [[Waypoint]]
|#default= {{TemplateCase||[[Category:Maintenance/RV/param]]}}[[:Category:Maintenance/RV/param|-Invalid type "{{{1}}}"-]]
}}|{{TemplateCase||[[Category:Maintenance/RV/param]]}}[[:Category:Maintenance/RV/param|-Type not defined-]]}}</includeonly><noinclude>{{Doc/Template
|name= RV/type
|descr= Return a descriptive data type from a keyword.
|param1= keyword
|descr1= parameter's [[:Category:Data Types|Data Type]], can be one of:{{Columns|8|
** array
** boolean
** color
** rgb
** rgba
** code
** config
** control
** date
** diaryrecord
** display
** edenentities
** group
** hashmap
** hashmapkey
** loadout
** location
** namespace
** number
** object
** particle
** pos
** pos2d
** pos3d
** posagl
** posagls
** posasl
** posatl
** posaslw
** posworld
** posrel
** side
** script
** string
** task
** teammember
** text
** vector3d
** waypoint
|shrink= y}}
|example1= <nowiki>{{RV/type}}</nowiki>
|result1= {{RV/type}}
|example2= <nowiki>{{RV/type|Hello there!}}</nowiki>
|result2= {{RV/type|Hello there!}}
|example3= <nowiki>{{RV/type|number}}</nowiki>
|result3= {{RV/type|number}} ([[Number]])
|example4= <nowiki>{{RV/type|pos2D}}</nowiki>
|result4= {{RV/type|pos2D}} ([[Array]] format [[Position#Position2D|Position2D]])
}}</noinclude>
 
 
== RV/param Template ==
 
<includeonly>{{{1|{{TemplateCase||[[Category:Maintenance/RV/param]]}}[[:Category:Maintenance/RV/param|Missing Name]]}}}: {{RV/type|{{{2}}}}} {{#if:{{{3|{{{default|{{{optional|}}}}}}}}}|<nowiki> - </nowiki>{{#if:{{{optional|{{{default|}}}}}}|(Optional{{#if:{{{default|}}}|, default {{hl|{{{default|}}}}}}}) <nowiki/>}}{{{3|}}}}}</includeonly><noinclude>{{Doc/Template
|name= RV/param
|descr= define an [[Template:RV|RV]] parameter
|param1= name
|descr1= the parameter's name
|param2= type
|descr2= [[:Category:Data Types|Data Type]], see [[Template:RV/type|RV/type]] for possible values
|param3= descr
|descr3= parameter's description
|param4= default
|descr4= (Optional) defines the default value (and sets ''optional'' on)
|param5= optional
|descr5= (Optional, unnecessary if ''default'' is set) defines the parameter's optionality
|example1= <nowiki>{{RV/param}}</nowiki>
|result1= {{RV/param}}
|example2= <nowiki>{{RV/param|name}}</nowiki>
|result2= {{RV/param|name}}
|example3= <nowiki>{{RV/param|name|object}}</nowiki>
|result3= {{RV/param|name|object}}
|example4= <nowiki>{{RV/param|name|pos|description}}</nowiki>
|result4= {{RV/param|name|pos|description}}
|example5= <nowiki>{{RV/param|name|posATL|description|optional= y}}</nowiki>
|result5= {{RV/param|name|posATL|description|optional= y}}
|example6= <nowiki>{{RV/param|name|posASL|description|default= 42}}</nowiki>
|result6= {{RV/param|name|posASL|description|default= 42}}
}}</noinclude>
}}</noinclude>

Latest revision as of 00:51, 18 December 2021

RV/type Template

Return a descriptive data type from a keyword.

This template is used on these pages.

Usage

{{RV/type|keyword}}

  • keyword: parameter's Data Type, can be one of:
    • array
    • boolean
    • color
    • rgb
    • rgba
    • code
    • config
    • control
    • date
    • diaryrecord
    • display
    • edenentities
    • group
    • hashmap
    • hashmapkey
    • loadout
    • location
    • namespace
    • number
    • object
    • particle
    • pos
    • pos2d
    • pos3d
    • posagl
    • posagls
    • posasl
    • posatl
    • posaslw
    • posworld
    • posrel
    • side
    • script
    • string
    • task
    • teammember
    • text
    • vector3d
    • waypoint
Examples
Code Result
{{RV/type}} Template:RV/type
{{RV/type|Hello there!}} Template:RV/type
{{RV/type|number}} Template:RV/type (Number)
{{RV/type|pos2D}} Template:RV/type (Array format Position2D)



RV/param Template

define an RV parameter

This template is used on these pages.

Usage

{{RV/param|name|type|descr|default|optional}}

  • name: the parameter's name
  • type: Data Type, see RV/type for possible values
  • descr: parameter's description
  • default: (Optional) defines the default value (and sets optional on)
  • optional: (Optional, unnecessary if default is set) defines the parameter's optionality
Examples
Code Result
{{RV/param}} Template:RV/param
{{RV/param|name}} Template:RV/param
{{RV/param|name|object}} Template:RV/param
{{RV/param|name|pos|description}} Template:RV/param
{{RV/param|name|posATL|description|optional= y}} Template:RV/param
{{RV/param|name|posASL|description|default= 42}} Template:RV/param