Difference between revisions of "Template:GlobalClassVar"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "<translate>" to "")
Line 2: Line 2:
 
<languages />
 
<languages />
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#switch:<translate></translate>
+
{{#switch:</translate>
 
| =
 
| =
 
{{#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"><translate><!--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]]:</translate> {{BASEPAGENAME}}</th>
 
</tr><tr>
 
</tr><tr>
<td colspan="2" style="text-align:center; margin:0.3em">{{#if: {{{summary|}}} | {{{summary|}}} | <translate><!--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.''</translate>}}</td>
 
</tr>
 
</tr>
 
{{#if:{{{params|}}}|
 
{{#if:{{{params|}}}|
 
<tr>
 
<tr>
<td valign="top"><translate><!--T:3--> '''Parameters:'''</translate></td>
+
<td valign="top"><!--T:3--> '''Parameters:'''</translate></td>
 
<td>{{{params}}}</td>
 
<td>{{{params}}}</td>
 
</tr>
 
</tr>
Line 26: Line 26:
 
{{#if:{{{deprecated|}}}|
 
{{#if:{{{deprecated|}}}|
 
<tr>
 
<tr>
<td valign="top"><translate><!--T:4--> '''Deprecated in:'''</translate></td>
+
<td valign="top"><!--T:4--> '''Deprecated in:'''</translate></td>
 
<td>{{{deprecated}}}</td>
 
<td>{{{deprecated}}}</td>
 
</tr>
 
</tr>
Line 32: Line 32:
 
{{#if:{{{removed|}}}|
 
{{#if:{{{removed|}}}|
 
<tr>
 
<tr>
<td valign="top"><translate><!--T:5--> '''Removed in:'''</translate></td>
+
<td valign="top"><!--T:5--> '''Removed in:'''</translate></td>
 
<td>{{{removed}}}</td>
 
<td>{{{removed}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
 
<tr>
 
<tr>
<td style="padding:0.3em"><translate><!--T:6--> '''Class:'''</translate></td><td>{{#if: {{{class|}}}|{{class doclink|{{{class}}}}}|<translate><!--T:7--> Unspecified</translate>}}</td>
+
<td style="padding:0.3em"><!--T:6--> '''Class:'''</translate></td><td>{{#if: {{{class|}}}|{{class doclink|{{{class}}}}}|<!--T:7--> Unspecified</translate>}}</td>
 
</tr><tr>
 
</tr><tr>
<td style="padding:0.3em"><translate><!--T:8--> '''Located in:'''</translate></td><td>{{{source|<translate><!--T:9--> Unspecified</translate>}}}</td>
+
<td style="padding:0.3em"><!--T:8--> '''Located in:'''</translate></td><td>{{{source|<!--T:9--> Unspecified</translate>}}}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 55: Line 55:
 
}}
 
}}
  
<translate>
+
 
 
== Copy and paste template == <!--T:10-->
 
== Copy and paste template == <!--T:10-->
 
</translate>
 
</translate>
; <translate><!--T:11--> Basic usage</translate>
+
; <!--T:11--> Basic usage</translate>
 
<pre>
 
<pre>
 
{{GlobalClassVar
 
{{GlobalClassVar
Line 67: Line 67:
 
}}
 
}}
 
</pre>
 
</pre>
; <translate><!--T:12--> All parameters</translate>
+
; <!--T:12--> All parameters</translate>
 
<pre>
 
<pre>
 
{{GlobalClassVar
 
{{GlobalClassVar
Line 80: Line 80:
 
</pre>
 
</pre>
  
<translate>
+
 
 
== Usage notes == <!--T:13-->
 
== Usage notes == <!--T:13-->
 
</translate>
 
</translate>
 
;name
 
;name
: <translate><!--T:14--> The name of the global class variable.</translate>
+
: <!--T:14--> The name of the global class variable.</translate>
 
;summary
 
;summary
: <translate><!--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.</translate>
 
;params
 
;params
: <translate><!--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</translate>
 
;class
 
;class
: <translate><!--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</translate>
 
;source
 
;source
: <translate><!--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.</translate>
 
;deprecated
 
;deprecated
: <translate><!--T:19--> The version in which the variable was deprecated</translate>
+
: <!--T:19--> The version in which the variable was deprecated</translate>
 
;removed
 
;removed
: <translate><!--T:20--> The version in which the variable was removed</translate>
+
: <!--T:20--> The version in which the variable was removed</translate>
  
 
}}
 
}}

Revision as of 04:10, 21 December 2019


Template documentation


Copy and paste template

</translate>

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


Usage notes

</translate>

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