Changes
Template:GlobalClassVar (view source)
Revision as of 04:56, 25 November 2018
, 04:56, 25 November 2018translation tweaks
<noinclude>
<languages />
</noinclude><includeonly>
{{#switch:<translate></translate>
| =
{{#ifeq:{{{templatemode|}}}|nocats|
|[[Category:Global object variables{{#translation:}}|{{{name|{{BASEPAGENAME}}<!-- -->}}}]]
}}
{{#if: {{{removed|}}}
| {{Removed|{{{removed}}} |name = {{{name|{{BASEPAGENAME}}}}} }}
| {{#if: {{{deprecated|}}} | {{Deprecated|{{{deprecated}}} |name = {{{name|{{BASEPAGENAME}}}}} }} }}
}}
<center>
<table class="plainlinks" style="text-align:{{dir|{{pagelang}}|right|left}}; border:1px solid black; border-collapse:collapse" cellpadding="5">
<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>
</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>
</tr>
{{#if:{{{params|}}}|
<tr>
<td valign="top"><translate><!--T:3--> '''Parameters:'''</translate></td>
<td>{{{params}}}</td>
</tr>
}}
{{#if:{{{deprecated|}}}|
<tr>
<td valign="top"><translate><!--T:4--> '''Deprecated in:'''</translate></td>
<td>{{{deprecated}}}</td>
</tr>
}}
{{#if:{{{removed|}}}|
<tr>
<td valign="top"><translate><!--T:5--> '''Removed in:'''</translate></td>
<td>{{{removed}}}</td>
</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>
</tr><tr>
<td style="padding:0.3em"><translate><!--T:8--> '''Located in:'''</translate></td><td>{{{source|<translate><!--T:9--> Unspecified</translate>}}}</td>
</tr>
</table>
</center>
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:GlobalClassVar|noshift=1}}
}}</includeonly><noinclude>
{{Documentation|content=
{{GlobalClassVar|templatemode=nocats
|name = foo
|summary = Summary
|class =
|source =
}}
<translate>
== Copy and paste template == <!--T:10-->
</translate>
; <translate><!--T:11--> Basic usage</translate>
<pre>
{{GlobalClassVar
|name =
|summary =
|class =
|source =
}}
</pre>
; <translate><!--T:12--> All parameters</translate>
<pre>
{{GlobalClassVar
|name =
|summary =
|params =
|class =
|source =
|deprecated =
|removed =
}}
</pre>
<translate>
== Usage notes == <!--T:13-->
</translate>
;name
: <translate><!--T:14--> The name of the global class variable.</translate>
;summary
: <translate><!--T:15--> A short description of the object(s) stored in the variable.</translate>
;params
: <translate><!--T:16--> Parameters that need to be passed to the constructor to create the object</translate>
;class
: <translate><!--T:17--> The class that the object stored in this variabled in an instance</translate>
;source
: <translate><!--T:18--> The script(s) where the class(es) can be found.</translate>
;deprecated
: <translate><!--T:19--> The version in which the variable was deprecated</translate>
;removed
: <translate><!--T:20--> The version in which the variable was removed</translate>
}}
[[Category:Info templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Categorizing templates{{#translation:}}|{{PAGENAME}}]]
</noinclude>
<languages />
</noinclude><includeonly>
{{#switch:<translate></translate>
| =
{{#ifeq:{{{templatemode|}}}|nocats|
|[[Category:Global object variables{{#translation:}}|{{{name|{{BASEPAGENAME}}<!-- -->}}}]]
}}
{{#if: {{{removed|}}}
| {{Removed|{{{removed}}} |name = {{{name|{{BASEPAGENAME}}}}} }}
| {{#if: {{{deprecated|}}} | {{Deprecated|{{{deprecated}}} |name = {{{name|{{BASEPAGENAME}}}}} }} }}
}}
<center>
<table class="plainlinks" style="text-align:{{dir|{{pagelang}}|right|left}}; border:1px solid black; border-collapse:collapse" cellpadding="5">
<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>
</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>
</tr>
{{#if:{{{params|}}}|
<tr>
<td valign="top"><translate><!--T:3--> '''Parameters:'''</translate></td>
<td>{{{params}}}</td>
</tr>
}}
{{#if:{{{deprecated|}}}|
<tr>
<td valign="top"><translate><!--T:4--> '''Deprecated in:'''</translate></td>
<td>{{{deprecated}}}</td>
</tr>
}}
{{#if:{{{removed|}}}|
<tr>
<td valign="top"><translate><!--T:5--> '''Removed in:'''</translate></td>
<td>{{{removed}}}</td>
</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>
</tr><tr>
<td style="padding:0.3em"><translate><!--T:8--> '''Located in:'''</translate></td><td>{{{source|<translate><!--T:9--> Unspecified</translate>}}}</td>
</tr>
</table>
</center>
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:GlobalClassVar|noshift=1}}
}}</includeonly><noinclude>
{{Documentation|content=
{{GlobalClassVar|templatemode=nocats
|name = foo
|summary = Summary
|class =
|source =
}}
<translate>
== Copy and paste template == <!--T:10-->
</translate>
; <translate><!--T:11--> Basic usage</translate>
<pre>
{{GlobalClassVar
|name =
|summary =
|class =
|source =
}}
</pre>
; <translate><!--T:12--> All parameters</translate>
<pre>
{{GlobalClassVar
|name =
|summary =
|params =
|class =
|source =
|deprecated =
|removed =
}}
</pre>
<translate>
== Usage notes == <!--T:13-->
</translate>
;name
: <translate><!--T:14--> The name of the global class variable.</translate>
;summary
: <translate><!--T:15--> A short description of the object(s) stored in the variable.</translate>
;params
: <translate><!--T:16--> Parameters that need to be passed to the constructor to create the object</translate>
;class
: <translate><!--T:17--> The class that the object stored in this variabled in an instance</translate>
;source
: <translate><!--T:18--> The script(s) where the class(es) can be found.</translate>
;deprecated
: <translate><!--T:19--> The version in which the variable was deprecated</translate>
;removed
: <translate><!--T:20--> The version in which the variable was removed</translate>
}}
[[Category:Info templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Categorizing templates{{#translation:}}|{{PAGENAME}}]]
</noinclude>