Open main menu
Home
Random
Log in
Settings
About RobotX
Disclaimers
RobotX
Search
Changes
$VarPop
← Older edit
Newer edit →
Template:$VarPop
(view source)
Revision as of 15:18, 21 December 2019
335 bytes removed
,
15:18, 21 December 2019
m
Text replacement - "<tvar|(.*)>" to ""
Line 1:
Line 1:
−
<noinclude>
+
''Note: this template is just for testing. Don't use it!''
''Note: this template is just for testing. Don't use it!''
−
<p>This page contains a table of data that can be reused on other pages.</p>
+
−
<p>This template (table of data) use the [[template:$]] to give the result.<br/>
+
−
It might be interesting to change a data present on several pages without touch all pages concerned.</p>
+
The structure is:
The structure is:
−
<pre>
+
{{$
{{$
| param0 = {{{1}}} must be always {{{1}}} to get the param name
| param0 = {{{1}}} must be always {{{1}}} to get the param name
Line 13:
Line 13:
| param3 = value3
| param3 = value3
}}
}}
−
</pre>
+
You can get a value from this table of data by its param name like:
You can get a value from this table of data by its param name like:
−
<pre>
+
{{$VarPop|param1}} return value1 from the table of data ($VarPop is the name of the table of data)
{{$VarPop|param1}} return value1 from the table of data ($VarPop is the name of the table of data)
−
</pre>
+
−
</noinclude><includeonly>
{{$
+
{{$
| param0 = {{{1}}}
| param0 = {{{1}}}
| param1 = value1
| param1 = value1
| param2 = value2
| param2 = value2
| param3 = value3
| param3 = value3
−
}}</includeonly>
Joelmartin
Bots
,
Bureaucrats
, contributor,
Interface administrators
, lookupuser,
Administrators
4,000
edits