Difference between revisions of "Template:$VarPop"
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<tvar|(.*)>" to "") |
||
Line 1: | Line 1: | ||
− | + | ||
''Note: this template is just for testing. Don't use it!'' | ''Note: this template is just for testing. Don't use it!'' | ||
− | + | ||
− | + | ||
− | + | ||
The structure is: | The structure is: | ||
− | + | ||
{{$ | {{$ | ||
| 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 | ||
}} | }} | ||
− | + | ||
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: | ||
− | + | ||
{{$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) | ||
− | + | ||
− | + | {{$ | |
| param0 = {{{1}}} | | param0 = {{{1}}} | ||
| param1 = value1 | | param1 = value1 | ||
| param2 = value2 | | param2 = value2 | ||
| param3 = value3 | | param3 = value3 | ||
− |
Revision as of 15:18, 21 December 2019
Note: this template is just for testing. Don't use it!
The structure is:
Note: this template is just for testing. Don't use it!
You can get a value from this table of data by its param name like:
Note: this template is just for testing. Don't use it!
The structure is:
Note: this template is just for testing. Don't use it!
You can get a value from this table of data by its param name like:
Template loop detected: Template:$VarPop return value1 from the table of data ($VarPop is the name of the table of data)
{{$ | param0 = param1 | param1 = value1 | param2 = value2 | param3 = value3 return value1 from the table of data ($VarPop is the name of the table of data)
{{$ | param0 = {{{1}}} | param1 = value1 | param2 = value2 | param3 = value3