Difference between revisions of "Template:GlobalClassVar"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "</>" to "")
 
(2 intermediate revisions by the same user not shown)
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"> [[<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|}}} | ''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"> '''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"> '''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"> '''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"> '''Class:'''</td><td>{{#if: {{{class|}}}|{{class doclink|{{{class}}}}}| 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"> '''Located in:'''</td><td>{{{source| Unspecified}}}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 56: Line 56:
  
  
== Copy and paste template == <!--T:10-->
+
== Copy and paste template ==  
</translate>
+
 
; <!--T:11--> Basic usage</translate>
+
; Basic usage
 
<pre>
 
<pre>
 
{{GlobalClassVar
 
{{GlobalClassVar
Line 67: Line 67:
 
}}
 
}}
 
</pre>
 
</pre>
; <!--T:12--> All parameters</translate>
+
; All parameters
 
<pre>
 
<pre>
 
{{GlobalClassVar
 
{{GlobalClassVar
Line 81: Line 81:
  
  
== Usage notes == <!--T:13-->
+
== Usage notes ==  
</translate>
+
 
 
;name
 
;name
: <!--T:14--> The name of the global class variable.</translate>
+
: The name of the global class variable.
 
;summary
 
;summary
: <!--T:15--> A short description of the object(s) stored in the variable.</translate>
+
: 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>
+
: 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>
+
: 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>
+
: The script(s) where the class(es) can be found.
 
;deprecated
 
;deprecated
: <!--T:19--> The version in which the variable was deprecated</translate>
+
: The version in which the variable was deprecated
 
;removed
 
;removed
: <!--T:20--> The version in which the variable was removed</translate>
+
: The version in which the variable was removed
  
 
}}
 
}}

Latest revision as of 15:58, 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