Content deleted Content added
Copy from Template talk:Pf |
document _code=yes |
||
Line 1:
{{Documentation subpage}}
{{tl|Pf}} is used to conveniently link to a [[m:ParserFunctions|ParserFunction]], along the lines of {{tl|tl}}. '''Pf''' stands for '''ParserFunction'''.
== Usage ==
{{Tlx|{{BASEPAGENAME}}|parser function}}, this creates a direct link to the relevant function, omit '''#''' and colon, e.g. use {{tlx|{{BASEPAGENAME}}|ifexpr}} to get {{{{BASEPAGENAME}}|ifexpr}}.
Line 6 ⟶ 7:
{{Tlx|{{BASEPAGENAME}}|parser function|1st parameter|2nd parameter|3rd parameter|4th parametr}}, this creates a link with parameters include, e.g. use {{Tlx|{{BASEPAGENAME}}|ifexpr|1+1>1|true|false}} to get {{{{BASEPAGENAME}}|ifexpr|1+1>1|true|false}}. For parameters with equals signs, use {{Tlx|1={{BASEPAGENAME}}|2=1=parser function|3=2=1st parameter|4=3=2nd parameter|5=4=3rd parameter|6=5=4th parametr}}, e.g. use
{{Tlx|1={{BASEPAGENAME}}|2=1=ifexpr|3=2=1+1=1|4=3=1+1=1|5=4=1+1!=1}} to get {{{{BASEPAGENAME}}|1=ifexpr|2=1+1=1|3=1+1=1|4=1+1!=1}}.
Use {{para|_code|yes}} to wrap the output in {{tag|code}} tags, e.g. {{Tlx|{{BASEPAGENAME}}|ifexpr|1+1>1|true|false|_code{{=}}yes}}produces {{{{BASEPAGENAME}}|ifexpr|1+1>1|true|false|_code=yes}}.
{| {{table}}
|