Search results
Search Results for: M:ParserFunctions
AI Overview: The ParserFunctions in MediaWiki are specialized functions that enhance wiki markup processing, allowing for advanced content presentation and dynamic content generation. They enable users to implement conditional logic, loops, and string manipulations. Key capabilities include basic string operations (like length calculation and substring extraction), link formatting, template invocation, and language code validation. These functions provide significant flexibility for wiki pages, allowing for customized and adaptive content based on specific parameters.
Parser Functions Extension
The Parser Functions extension for MediaWiki allows users to utilize a variety of functions within their wikis. It offers advanced parsing capabilities to create conditional structures, looping mechanisms, and input sanitization, enhancing the flexibility and functionality of wiki pages.
Parser Functions
This section discusses parser functions, which are special functions used in Wiki markup to provide advanced processing capabilities. These functions enhance content presentation and enable dynamic content generation based on specific parameters.
Module:String
The String module provides access to basic string functions in MediaWiki, allowing for operations such as calculating string length, substring extraction, matching patterns, string replacement, and more. Various global options can be set for error handling and whitespace management. Functions can accept both named and unnamed parameters, with capabilities for handling UTF-8 strings. Additional utilities are included for escaping patterns and counting occurrences.
Module:String Documentation
This module provides basic string manipulation functions for Mediawiki, allowing for operations like getting string length, substring extraction, pattern matching, replacement, character retrieval, and more. It supports both named and unnamed parameters, with options to handle errors and whitespace management. Key functions include len, sub, match, pos, find, replace, rep, escapePattern, count, join, and endswith, each with specific usage patterns and examples provided.
Escape Template List
This page provides a list of escape sequences used in mediawiki markup, detailing how certain characters and magic words are to be interpreted when coded in wiki markup. The content includes representations for characters like pipe (|), equal sign (=), brackets ([ ]), braces ({ }), and various forms of nested structures.
Module:Format_link
This module creates formatted links in MediaWiki. It processes input links, allowing for italicization, section separation, and error handling for missing arguments. Key functions include parsing links into components, formatting display strings, and managing categories for missing pages. It serves as a backend utility for enhancing link presentation within templates.
Module:Xpsoc
This module implements a template invocation system that processes and formats invocation arguments for templates in the MW (MediaWiki) framework. It retrieves template names, handles their arguments, and generates a formatted string combining the invocation with additional context.
Module:Template_parameter_value
This module defines a template processing function that extracts content based on given template and parameter arguments within a MediaWiki framework. It utilizes string matching to locate specific templates and parameters in the target title's content, processes them, and returns the trimmed result.
MediaWiki Language Code Module
This module provides functions to validate and translate between language codes and names in MediaWiki. Key functions include checking if a language code is recognized, retrieving a language name from its code, and converting a language name back to its code. It handles errors associated with unrecognized codes and provides defaults based on the local wiki's language settings.
MediaWiki Template Invocation Module
This module provides functions for constructing MediaWiki template invocations. It includes two primary functions: 'name', which retrieves a template invocation name from a page name or mw.title object, and 'invocation', which builds a template invocation string based on the template name and arguments. The invocation function supports options for formatting and includes checks to ensure valid input types for arguments.