Difference between revisions of "Template:GlobalClassVar"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "</translate>" to "")
Line 2: Line 2:
 
<languages />
 
<languages />
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#switch:</translate>
+
{{#switch:
 
| =
 
| =
 
{{#ifeq:{{{templatemode|}}}|nocats|
 
{{#ifeq:{{{templatemode|}}}|nocats|
Line 14: Line 14:
 
<table class="plainlinks" style="text-align:{{dir|{{pagelang}}|right|left}}; border:1px solid black; border-collapse:collapse" cellpadding="5">
 
<table class="plainlinks" style="text-align:{{dir|{{pagelang}}|right|left}}; border:1px solid black; border-collapse:collapse" cellpadding="5">
 
<tr>
 
<tr>
<th colspan="2" style="font-size: 120%; padding: 0.5em; text-align:center; background-color:#ccf"><!--T:1--> [[<tvar|man>Special:MyLanguage/Manual:Global object variables</>|Global object]]:</translate> {{BASEPAGENAME}}</th>
+
<th colspan="2" style="font-size: 120%; padding: 0.5em; text-align:center; background-color:#ccf"><!--T:1--> [[<tvar|man>Special:MyLanguage/Manual:Global object variables</>|Global object]]: {{BASEPAGENAME}}</th>
 
</tr><tr>
 
</tr><tr>
<td colspan="2" style="text-align:center; margin:0.3em">{{#if: {{{summary|}}} | {{{summary|}}} | <!--T:2--> ''Please edit this page to enter a summary.''</translate>}}</td>
+
<td colspan="2" style="text-align:center; margin:0.3em">{{#if: {{{summary|}}} | {{{summary|}}} | <!--T:2--> ''Please edit this page to enter a summary.''}}</td>
 
</tr>
 
</tr>
 
{{#if:{{{params|}}}|
 
{{#if:{{{params|}}}|
 
<tr>
 
<tr>
<td valign="top"><!--T:3--> '''Parameters:'''</translate></td>
+
<td valign="top"><!--T:3--> '''Parameters:'''</td>
 
<td>{{{params}}}</td>
 
<td>{{{params}}}</td>
 
</tr>
 
</tr>
Line 26: Line 26:
 
{{#if:{{{deprecated|}}}|
 
{{#if:{{{deprecated|}}}|
 
<tr>
 
<tr>
<td valign="top"><!--T:4--> '''Deprecated in:'''</translate></td>
+
<td valign="top"><!--T:4--> '''Deprecated in:'''</td>
 
<td>{{{deprecated}}}</td>
 
<td>{{{deprecated}}}</td>
 
</tr>
 
</tr>
Line 32: Line 32:
 
{{#if:{{{removed|}}}|
 
{{#if:{{{removed|}}}|
 
<tr>
 
<tr>
<td valign="top"><!--T:5--> '''Removed in:'''</translate></td>
+
<td valign="top"><!--T:5--> '''Removed in:'''</td>
 
<td>{{{removed}}}</td>
 
<td>{{{removed}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
 
<tr>
 
<tr>
<td style="padding:0.3em"><!--T:6--> '''Class:'''</translate></td><td>{{#if: {{{class|}}}|{{class doclink|{{{class}}}}}|<!--T:7--> Unspecified</translate>}}</td>
+
<td style="padding:0.3em"><!--T:6--> '''Class:'''</td><td>{{#if: {{{class|}}}|{{class doclink|{{{class}}}}}|<!--T:7--> Unspecified}}</td>
 
</tr><tr>
 
</tr><tr>
<td style="padding:0.3em"><!--T:8--> '''Located in:'''</translate></td><td>{{{source|<!--T:9--> Unspecified</translate>}}}</td>
+
<td style="padding:0.3em"><!--T:8--> '''Located in:'''</td><td>{{{source|<!--T:9--> Unspecified}}}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 57: Line 57:
  
 
== Copy and paste template == <!--T:10-->
 
== Copy and paste template == <!--T:10-->
</translate>
+
 
; <!--T:11--> Basic usage</translate>
+
; <!--T:11--> Basic usage
 
<pre>
 
<pre>
 
{{GlobalClassVar
 
{{GlobalClassVar
Line 67: Line 67:
 
}}
 
}}
 
</pre>
 
</pre>
; <!--T:12--> All parameters</translate>
+
; <!--T:12--> All parameters
 
<pre>
 
<pre>
 
{{GlobalClassVar
 
{{GlobalClassVar
Line 82: Line 82:
  
 
== Usage notes == <!--T:13-->
 
== Usage notes == <!--T:13-->
</translate>
+
 
 
;name
 
;name
: <!--T:14--> The name of the global class variable.</translate>
+
: <!--T:14--> The name of the global class variable.
 
;summary
 
;summary
: <!--T:15--> A short description of the object(s) stored in the variable.</translate>
+
: <!--T:15--> A short description of the object(s) stored in the variable.
 
;params
 
;params
: <!--T:16--> Parameters that need to be passed to the constructor to create the object</translate>
+
: <!--T:16--> Parameters that need to be passed to the constructor to create the object
 
;class
 
;class
: <!--T:17--> The class that the object stored in this variabled in an instance</translate>
+
: <!--T:17--> The class that the object stored in this variabled in an instance
 
;source
 
;source
: <!--T:18--> The script(s) where the class(es) can be found.</translate>
+
: <!--T:18--> The script(s) where the class(es) can be found.
 
;deprecated
 
;deprecated
: <!--T:19--> The version in which the variable was deprecated</translate>
+
: <!--T:19--> The version in which the variable was deprecated
 
;removed
 
;removed
: <!--T:20--> The version in which the variable was removed</translate>
+
: <!--T:20--> The version in which the variable was removed
  
 
}}
 
}}

Revision as of 04:35, 21 December 2019


Template documentation


Copy and paste template

Basic usage
{{GlobalClassVar
|name = 
|summary = 
|class = 
|source = 
}}
All parameters
{{GlobalClassVar
|name = 
|summary = 
|params = 
|class = 
|source = 
|deprecated =
|removed =
}}


Usage notes

name
The name of the global class variable.
summary
A short description of the object(s) stored in the variable.
params
Parameters that need to be passed to the constructor to create the object
class
The class that the object stored in this variabled in an instance
source
The script(s) where the class(es) can be found.
deprecated
The version in which the variable was deprecated
removed
The version in which the variable was removed