Template:ParserFunction: Difference between revisions

From WikiMD's Wellness Encyclopedia

m 1 revision imported
en>Dinoguy1000
fix links, add more tags, some code cleanup
Line 1: Line 1:
<includeonly>{{#if:{{{_code|}}}|<code>}}{{((}}{{
<includeonly>{{ #if: {{{_code|}}} | <code> }}{{((}}{{
   #switch: {{lc: {{{1|if}}} }}
   #switch: {{lc: {{{1|if}}} }}
   | expr   | if     | ifeq   | iferror | ifexpr
   | expr | if | ifeq | iferror | ifexpr
   | ifexist | rel2abs | switch | time
   | ifexist | rel2abs | switch | time | titleparts
  | titleparts = [[mw:Help:Extension:ParserFunctions#.23{{lc:{{{1|if}}}}}|#{{{1|if}}}]]
    = [[mw:Help:Extension:ParserFunctions#.23{{lc:{{{1|if}}}}}|#{{{1|if}}}]]
   | lc     | uc     | lcfirst | ucfirst | urlencode | anchorencode
   | lc | uc | lcfirst | ucfirst | urlencode
  | ns = [[meta:Help:Parser function#{{uc:{{{1}}}}}|{{{1}}}]]
  | anchorencode | ns
   | localurl  | localurle  | fullurl
    = [[mw:Help:Magic words#{{lc:{{{1}}}}}|{{{1}}}]]
   | fullurle = [[meta:Help:Parser function#URLs etc.|{{{1}}}]]
   | language | bcp47 | dir | interwikilink | interlanguagelink
   | language = [[meta:Help:Parser function#.23{{lc:{{{1}}}}}:|#{{{1}}}]]
   | special | speciale | tag
    = [[mw:Help:Magic words#{{lc:{{{1}}}}}|#{{{1}}}]]
   | localurl | localurle
    = [[mw:Help:Magic words#localurl|{{{1}}}]]
  | fullurl | fullurle
    = [[mw:Help:Magic words#fullurl|{{{1}}}]]
  | canonicalurl | canonicalurle
    = [[mw:Help:Magic words#canonicalurl|{{{1}}}]]
   | pagesincategory
   | pagesincategory
   | pagesincat = [[meta:Help:Parser function#Pages in category|{{{1}}}]]
   | pagesincat
   | section | section-x | section-h | lst | lstx | lsth = [[Help:Labeled section transclusion|#{{{1}}}]]
    = [[mw:Help:Magic words#PAGESINCATEGORY|{{{1}}}]]
   | #default = [[H:MW#{{{1}}}|{{{1}}}]]
   | section | section-x | section-h | lst | lstx | lsth
}}{{
    = [[Help:Labeled section transclusion|#{{{1}}}]]
  #if: {{{2|}}}
   | #default
  | {{colon}}{{{2|}}}
    = [[Help:Magic words#{{{1}}}|{{{1}}}]]
}}{{
}}{{ #if: {{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}} | {{colon}}{{{2|}}} }}<!--
  #if: {{{3|}}}
-->{{ #if: {{{3|}}}{{{4|}}}{{{5|}}} | {{!}}{{{3|}}} }}<!--
  | {{
-->{{ #if: {{{4|}}}{{{5|}}} | {{!}}{{{4|}}} }}<!--
    #ifeq: {{{2|}}} |
-->{{ #if: {{{5|}}} | {{!}}{{{5}}} }}<!--
    | {{colon}}{{!}}
-->{{))}}{{ #if: {{{_code|}}} | </code> }}</includeonly><noinclude>
  }}{{!}}{{{3}}}
}}{{
  #if: {{{4|}}}
  | {{
    #ifeq: {{{2|}}} |
    | {{colon}}{{!}}
  }}{{
    #ifeq: {{{3|}}} |
    | {{!}}
  }}{{!}}{{{4}}}
}}{{
  #if: {{{5|}}}
  | {{
    #ifeq: {{{2|}}} |
    | {{colon}}{{!}}
  }}{{
    #ifeq: {{{3|}}} |
    | {{!}}
  }}{{
    #ifeq: {{{4|}}} |
    | {{!}}
  }}{{!}}{{{5}}}
}}{{))}}{{#if:{{{_code|}}}|</code>}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 16:04, 9 March 2025