Difference between revisions of "Template:GlobalClassVar"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "</>" to "") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<languages /> | <languages /> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {{#switch: | + | {{#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" | + | <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|}}} | | + | <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" | + | <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" | + | <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" | + | <td valign="top"> '''Removed in:'''</td> |
<td>{{{removed}}}</td> | <td>{{{removed}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<tr> | <tr> | ||
− | <td style="padding:0.3em" | + | <td style="padding:0.3em"> '''Class:'''</td><td>{{#if: {{{class|}}}|{{class doclink|{{{class}}}}}| Unspecified}}</td> |
</tr><tr> | </tr><tr> | ||
− | <td style="padding:0.3em" | + | <td style="padding:0.3em"> '''Located in:'''</td><td>{{{source| Unspecified}}}</td> |
</tr> | </tr> | ||
</table> | </table> | ||
Line 56: | Line 56: | ||
− | == Copy and paste template == | + | == Copy and paste template == |
− | + | ||
− | ; | + | ; Basic usage |
<pre> | <pre> | ||
{{GlobalClassVar | {{GlobalClassVar | ||
Line 67: | Line 67: | ||
}} | }} | ||
</pre> | </pre> | ||
− | ; | + | ; All parameters |
<pre> | <pre> | ||
{{GlobalClassVar | {{GlobalClassVar | ||
Line 81: | Line 81: | ||
− | == Usage notes == | + | == Usage notes == |
− | + | ||
;name | ;name | ||
− | : | + | : The name of the global class variable. |
;summary | ;summary | ||
− | : | + | : A short description of the object(s) stored in the variable. |
;params | ;params | ||
− | : | + | : Parameters that need to be passed to the constructor to create the object |
;class | ;class | ||
− | : | + | : The class that the object stored in this variabled in an instance |
;source | ;source | ||
− | : | + | : The script(s) where the class(es) can be found. |
;deprecated | ;deprecated | ||
− | : | + | : The version in which the variable was deprecated |
;removed | ;removed | ||
− | : | + | : The version in which the variable was removed |
}} | }} |
Latest revision as of 15:58, 21 December 2019

[[<tvar|man>Special:MyLanguage/Manual:Global object variables|Global object]]: GlobalClassVar | |
---|---|
Summary | |
Class: | Unspecified |
Located in: |
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