MediaWiki REL1_32
|
Variables | |
magicword txt Magic Words are some phrases used in the wikitext They are used for two that looks like templates but that don t accept any parameter *Parser functions(like {{fullurl:...}}, {{#special:...}}) | $magicWords ['en'] |
function wfGetCustomMagicWordValue | $parser |
$wgExtensionMessagesFiles ['ExtensionNameMagic'] = __DIR__ . '/ExtensionName.i18n.magic.php' | |
$wgHooks ['MagicWordwgVariableIDs'][] = 'wfAddCustomMagicWordID' | |
Note | __pad0__ |
And to add a new parser | function |
magicword txt Magic Words are some phrases used in the wikitext They are used for two | things |
return | true |
function wfAddCustomMagicWordID $magicWords |
Definition at line 33 of file magicword.txt.
Referenced by CoreParserFunctions::defaultsort(), CoreParserFunctions::displaytitle(), Languages::getCaseMismatchMagicWords(), WikiEditorHooks::getMagicWords(), Languages::getObsoleteMagicWords(), Languages::getOverridingMagicWords(), ResourceLoaderJqueryMsgModule::getScript(), Languages::getUntranslatedMagicWords(), Languages::loadFile(), InfoAction::pageInfo(), CoreParserFunctions::pagesincategory(), and CoreParserFunctions::urlencode().
function wfGetCustomMagicWordValue $parser |
Definition at line 52 of file magicword.txt.
$wgExtensionMessagesFiles[ 'ExtensionNameMagic'] = __DIR__ . '/ExtensionName.i18n.magic.php' |
Definition at line 43 of file magicword.txt.
Referenced by Update::execute(), LocalisationCache::recache(), LogFormatterTest::setUpBeforeClass(), and LogFormatterTest::tearDownAfterClass().
$wgHooks[ 'ParserFirstCallInit'][] = 'wfAddCustomMagicWordID' |
Definition at line 44 of file magicword.txt.
Note __pad0__ |
Definition at line 89 of file magicword.txt.
And to add a new parser function |
Definition at line 59 of file magicword.txt.
magicword txt Magic Words are some phrases used in the wikitext They are used for two things |
Definition at line 3 of file magicword.txt.
return true |
Definition at line 49 of file magicword.txt.