Difference between revisions of "ParserFunctions"

m (Text replacement - "SmartList" to "SmartList")
m (Text replacement - "[[PageTemplates" to "[[Reference:PageTemplates")
 
ParserFunctions
enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
Status: stable
Developer: Tim Starling
Extension type: MediaWiki
Edition: BlueSpice
Dependencies: MediaWiki
License: GPL v2+
Activated: Yes
Category: Rich Articles
Documentation on MediaWiki.org


ParserFunctions extension enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.

The extension provides eleven additional parser functions to supplement the "magic words", which are already present in MediaWiki. 

Parser Functions are used for example for template programming.

Enhance exististing MagicWords by using this standard:

{{#functionname: argument 1 | argument 2 | argument 3 ... }}

You should only use them for the "template namespace". Usually you use the if-function. This is like calling up the "IF"-function in Excel.

{{#if: test string | value if test string is not empty | value if test string is empty (or only white space) }}

For more information please visit Wikipedia and MediaWiki.


{{BSExtensionInfobox
        
        |desc=enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
        
        |status=stable
        
        |developer=Tim Starling
        
        |type=MediaWiki
        
        |edition=BlueSpice
        
        |active=Yes
        
        |compatible=MediaWiki
        
        |category=Rich Articles
        
        |license=GPL v2+
        
        |docu=https://www.mediawiki.org/wiki/Extension:ParserFunctions
        
        }}
        
        __NOTOC__
        

        '''ParserFunctions''' extension enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
        

        The extension provides eleven additional parser functions to supplement the "[https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Magic_words#Parser_functions magic words]", which are already present in MediaWiki. 
        

        Parser Functions are used for example for template programming.
        

        Enhance exististing [[MagicWords]] by using this standard:
        
<pre>{{#functionname: argument 1 | argument 2 | argument 3 ... }}</pre>
        

        You should only use them for the "template namespace".
        
        Usually you use the if-function. This is like calling up the "IF"-function in Excel.
        
<pre>{{#if: test string | value if test string is not empty | value if test string is empty (or only white space) }}</pre>
        

        For more information please visit [http://en.wikipedia.org/wiki/Help:Magic_words#Parser_functions Wikipedia] and [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions MediaWiki].
        

        {{Box_Links-en | Thema1 =[[MagicWords]] | Thema2 =[[Reference:SmartList|SmartList]] | Thema3 =[[Reference:PageTemplates|Page templates]] | Thema4 = }}
        

        [[de:{{FULLPAGENAME}}]][[en:{{FULLPAGENAME}}]]
        
        [[Category:Extension]]
Line 31: Line 31:
  
  
{{Box_Links-en | Thema1 =[[MagicWords]] | Thema2 =[[Reference:SmartList|SmartList]] | Thema3 =[[PageTemplates|Page templates]] | Thema4 = }}
+
{{Box_Links-en | Thema1 =[[MagicWords]] | Thema2 =[[Reference:SmartList|SmartList]] | Thema3 =[[Reference:PageTemplates|Page templates]] | Thema4 = }}
  
 
[[de:{{FULLPAGENAME}}]][[en:{{FULLPAGENAME}}]]
 
[[de:{{FULLPAGENAME}}]][[en:{{FULLPAGENAME}}]]
 
[[Category:Extension]]
 
[[Category:Extension]]

Attachments

Discussions