Look on the Special:Version of your wiki for the full list. Which parser functions are available here?īecause different wikis can have different parser functions, it may be useful to figure out precisely what's on a particular wiki. The ParserFunctions extension enhances the wikitext parser with helpful functions, mostly related to logic and string-handling. The first is the tag function, which is part of core MediaWiki. To find out more about these, please consult that extension's page on . Active communities that use MediaWiki such as Wikipedia and Wikiversity often use MediaWikis variables, parser functions and other tools to add dynamic. injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The. When applying ParserFunctions to template parameters, a pipe symbol ('') may be used to provide a default value, which is used when a parameter is not defined. Two features of MediaWiki, though, can help to reduce this difference between tag and parser functions. Two of the more common are Arrays and Variables. Some other extensions that are popular on Fandom add their own parser functions. When written well enough alongside template parameters, a parser function definition produces different results in different situations.įor instance, instead of simply repeating the same statement on every page where the template Other extensions (If you want a real programming environment, see extension 'SemanticScribunto' ). The effect is that all parameters to all parser functions are always evaluated. ⢠3.1 Which parser functions are available here?Ī parser function is a form of wikitext that allows you to make templates more robust and adaptable. MediaWiki is a templating system, not a programming environment. This is an auto-generated MediaWiki API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |