Template:Pf: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#if:{{{_code|}}}|<code>}}{{((}}{{
#REDIRECT [[Template:ParserFunction]]
  #switch: {{lc: {{{1|if}}} }}
 
  | expr    | if      | ifeq    | iferror | ifexpr
{{Redirect category shell|
  | ifexist | rel2abs | switch  | time
{{R from move}}
  | titleparts = [[mw:Help:Extension:ParserFunctions#.23{{lc:{{{1|if}}}}}|#{{{1|if}}}]]
}}
  | lc      | uc      | lcfirst | ucfirst | urlencode | anchorencode
  | ns = [[meta:Help:Parser function#{{uc:{{{1}}}}}|{{{1}}}]]
  | localurl  | localurle  | fullurl
  | fullurle = [[meta:Help:Parser function#URLs etc.|{{{1}}}]]
  | language = [[meta:Help:Parser function#.23{{lc:{{{1}}}}}:|#{{{1}}}]]
  | pagesincategory
  | pagesincat = [[meta:Help:Parser function#Pages in category|{{{1}}}]]
  | section | section-x | section-h | lst | lstx | lsth = [[Help:Labeled section transclusion|#{{{1}}}]]
  | #default  = {{{1}}}<!-- This will link to a help section in the documentation about unrecognised parser functions. In the meantime, it's just a hidden comment. -->
}}{{
  #if: {{{2|}}}
  | {{colon}}{{{2|}}}
}}{{
  #if: {{{3|}}}
  | {{
    #ifeq: {{{2|}}} |
    | {{colon}}{{!}}
  }}{{!}}{{{3}}}
}}{{
  #if: {{{4|}}}
  | {{
    #ifeq: {{{2|}}} |
    | {{colon}}{{!}}
  }}{{
    #ifeq: {{{3|}}} |
    | {{!}}
  }}{{!}}{{{4}}}
}}{{
  #if: {{{5|}}}
  | {{
    #ifeq: {{{2|}}} |
    | {{colon}}{{!}}
  }}{{
    #ifeq: {{{3|}}} |
    | {{!}}
  }}{{
    #ifeq: {{{4|}}} |
    | {{!}}
  }}{{!}}{{{5}}}
}}{{))}}{{#if:{{{_code|}}}|</code>}}<noinclude>
{{documentation}}
</noinclude>

Latest revision as of 18:40, 2 January 2022