Template:Param2: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 45: Line 45:
===Types and parameters===
===Types and parameters===
<pre>
<pre>
*{{param2|name=User:Philmasterplus/Sandbox|func=1|param=1}}
*{{param2|name=visit_url|func=1|param=1}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=1}}
*{{param2|name=visit_url|func=2|param=1}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=2}}
*{{param2|name=visit_url|func=2|param=2}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=3}}
*{{param2|name=visit_url|func=2|param=3}}
</pre>
</pre>


*
*
*{{param2|name=User:Philmasterplus/Sandbox|func=1|param=1}}
*{{param2|name=visit_url|func=1|param=1}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=1}}
*{{param2|name=visit_url|func=2|param=1}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=2}}
*{{param2|name=visit_url|func=2|param=2}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=3}}
*{{param2|name=visit_url|func=2|param=3}}


===Types only===
===Types only===
<pre>
<pre>
*{{param2|name=User:Philmasterplus/Sandbox|func=1|param=1|format=signature}}
*{{param2|name=visit_url|func=1|param=1|format=signature}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=1|format=signature}}
*{{param2|name=visit_url|func=2|param=1|format=signature}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=2|format=signature}}
*{{param2|name=visit_url|func=2|param=2|format=signature}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=3|format=signature}}
*{{param2|name=visit_url|func=2|param=3|format=signature}}
</pre>
</pre>


*{{param2|name=User:Philmasterplus/Sandbox|func=1|param=1|format=signature}}
*{{param2|name=visit_url|func=1|param=1|format=signature}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=1|format=signature}}
*{{param2|name=visit_url|func=2|param=1|format=signature}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=2|format=signature}}
*{{param2|name=visit_url|func=2|param=2|format=signature}}
*{{param2|name=User:Philmasterplus/Sandbox|func=2|param=3|format=signature}}
*{{param2|name=visit_url|func=2|param=3|format=signature}}
</noinclude>
</noinclude>

Revision as of 12:35, 20 December 2020


Despite the similar name, this is completely different from [[Template:Param]].

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Function page namename

Name of a function page. '''This must be a data page.'''

Page namerequired
Overloaded function numberfunc

A function page may describe multiple overloaded functions under the same name. This parameter allows you to select one. Allowed values are 1-5, inclusive.

Numberrequired
Parameter numberparam

Specify which parameter to extract. Allowed values are 1-5, inclusive.

Numberrequired
Rendering formatformat

"" (empty string) = show everything, "signature" = only show parameter types (i.e. function signature). Default value is empty string (show everything).

Lineoptional

Examples

Types and parameters

*{{param2|name=visit_url|func=1|param=1}}
*{{param2|name=visit_url|func=2|param=1}}
*{{param2|name=visit_url|func=2|param=2}}
*{{param2|name=visit_url|func=2|param=3}}

Types only

*{{param2|name=visit_url|func=1|param=1|format=signature}}
*{{param2|name=visit_url|func=2|param=1|format=signature}}
*{{param2|name=visit_url|func=2|param=2|format=signature}}
*{{param2|name=visit_url|func=2|param=3|format=signature}}