From b84ec26855f1e2c5a7f3e918d0d627b5d4d7a7dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 28 Apr 2005 20:46:11 +0000 Subject: [PATCH] * Documented * Indented --- includes/MagicWord.php | 83 +++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 539d528e01..e5a389c074 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -2,6 +2,7 @@ /** * File for magic words * @package MediaWiki + * @subpackage Parser */ /** @@ -10,47 +11,47 @@ $wgMagicFound = false; /** Actual keyword to be used is set in Language.php */ -define('MAG_REDIRECT', 0); -define('MAG_NOTOC', 1); -define('MAG_START', 2); -define('MAG_CURRENTMONTH', 3); -define('MAG_CURRENTMONTHNAME', 4); -define('MAG_CURRENTMONTHNAMEGEN', 5); -define('MAG_CURRENTMONTHABBREV', 6); -define('MAG_CURRENTDAY', 7); -define('MAG_CURRENTDAYNAME', 8); -define('MAG_CURRENTYEAR', 9); -define('MAG_CURRENTTIME', 10); -define('MAG_NUMBEROFARTICLES', 11); -define('MAG_MSG', 12); -define('MAG_SUBST', 13); -define('MAG_MSGNW', 14); -define('MAG_NOEDITSECTION', 15); -define('MAG_END', 16); -define('MAG_IMG_THUMBNAIL', 17); -define('MAG_IMG_RIGHT', 18); -define('MAG_IMG_LEFT', 19); -define('MAG_IMG_NONE', 20); -define('MAG_IMG_WIDTH', 21); -define('MAG_IMG_CENTER', 22); -define('MAG_INT', 23); -define('MAG_FORCETOC', 24); -define('MAG_SITENAME', 25); -define('MAG_NS', 26); -define('MAG_LOCALURL', 27); -define('MAG_LOCALURLE', 28); -define('MAG_SERVER', 29); -define('MAG_IMG_FRAMED', 30); -define('MAG_PAGENAME', 31); -define('MAG_PAGENAMEE', 32); -define('MAG_NAMESPACE', 33); -define('MAG_TOC', 34); -define('MAG_GRAMMAR', 35); -define('MAG_NOTITLECONVERT', 36); -define('MAG_NOCONTENTCONVERT', 37); -define('MAG_CURRENTWEEK', 38); -define('MAG_CURRENTDOW', 39); -define('MAG_REVISIONID', 40); +define('MAG_REDIRECT', 0); +define('MAG_NOTOC', 1); +define('MAG_START', 2); +define('MAG_CURRENTMONTH', 3); +define('MAG_CURRENTMONTHNAME', 4); +define('MAG_CURRENTMONTHNAMEGEN', 5); +define('MAG_CURRENTMONTHABBREV', 6); +define('MAG_CURRENTDAY', 7); +define('MAG_CURRENTDAYNAME', 8); +define('MAG_CURRENTYEAR', 9); +define('MAG_CURRENTTIME', 10); +define('MAG_NUMBEROFARTICLES', 11); +define('MAG_MSG', 12); +define('MAG_SUBST', 13); +define('MAG_MSGNW', 14); +define('MAG_NOEDITSECTION', 15); +define('MAG_END', 16); +define('MAG_IMG_THUMBNAIL', 17); +define('MAG_IMG_RIGHT', 18); +define('MAG_IMG_LEFT', 19); +define('MAG_IMG_NONE', 20); +define('MAG_IMG_WIDTH', 21); +define('MAG_IMG_CENTER', 22); +define('MAG_INT', 23); +define('MAG_FORCETOC', 24); +define('MAG_SITENAME', 25); +define('MAG_NS', 26); +define('MAG_LOCALURL', 27); +define('MAG_LOCALURLE', 28); +define('MAG_SERVER', 29); +define('MAG_IMG_FRAMED', 30); +define('MAG_PAGENAME', 31); +define('MAG_PAGENAMEE', 32); +define('MAG_NAMESPACE', 33); +define('MAG_TOC', 34); +define('MAG_GRAMMAR', 35); +define('MAG_NOTITLECONVERT', 36); +define('MAG_NOCONTENTCONVERT', 37); +define('MAG_CURRENTWEEK', 38); +define('MAG_CURRENTDOW', 39); +define('MAG_REVISIONID', 40); $wgVariableIDs = array( MAG_CURRENTMONTH, -- 2.20.1