User:Patrick~mediawikiwiki/1

THIS IS AN ORGANISED INDEX OF MAGIC WORDS USED IN MEDIAWIKI. TAGS SUCH AS "[MW1.5+]" INDICATE THE VERSION THAT FIRST SUPPORTED THE MAGIC WORD. "XYZ" INDICATES USER INPUT, WHICH IS USED IN THE EXAMPLE.

TABLE OF CONTENTS

 * FOR DETAILS SEE HELP:SECTION

VARIABLES

 * FOR DETAILS SEE HELP:VARIABLE

TIME
THE TIME IN UTC.

LOCAL TIME
THE TIME DEPENDING ON THE LOCAL TIMEZONE OF THE WIKI (NOT DEPENDING ON THE TIMEZONE IN THE USER'S PREFERENCE SETTINGS). (ALL WORDS [MW1.8+] )


 * SEE ALSO THE PARSERFUNCTION #TIME:

PARSER FUNCTIONS

 * FOR DETAILS SEE HELP:PARSER FUNCTION.

FORMATTING
A LETTER LIKE É COUNTS FOR TWO. IT DOES NOT SEEM POSSIBLE TO USE PADLEFT AND PADRIGHT FOR PADDING WITH CHARACTERS WITH A MULTI-CHARACTER CODE, SUCH AS &AMP;NBSP;, WHICH WOULD BE USEFUL WITH PADLEFT FOR SORTING TABLES WITH JAVASCRIPT.

IMAGE MODIFIERS

 * FOR DETAILS SEE W:EN:WIKIPEDIA:EXTENDED IMAGE SYNTAX.

THESE ARE IMAGE MODIFIERS USED IN  LINKS. SOME ARE MUTUALLY EXCLUSIVE, AND THEN THE LAST SPECIFIED WINS.

SIZE
THE LAST UNRECOGNIZED MODIFIER IS USED AS CAPTION FOR FRAMED IMAGES OR TOGETHER WITH THUMBNAILS. IT'S ALSO USED AS DESCRIPTION ALT=TEXT.

POSITION

 * FOR DETAILS SEE HELP:IMAGES_AND_OTHER_UPLOADED_FILES

THE POSITIONS ARE MUTUALLY EXCLUSIVE, THE LAST SPECIFIED WINS. TEMPLATE:- CAN STOP FLOATING. FOR INLINE IMAGES ONLY MODIFIER PX (SEE ABOVE) IS SUPPORTED.

LANGUAGE-DEPENDENT WORD CONVERSIONS
"GRAMMAR" AND "PLURAL" ARE LANGUAGE-DEPENDENT FUNCTIONS, DEFINED IN [HTTP://SVN.WIKIMEDIA.ORG/SVNROOT/MEDIAWIKI/TRUNK/PHASE3/LANGUAGES/CLASSES/LANGUAGECS.PHP], [HTTP://SVN.WIKIMEDIA.ORG/SVNROOT/MEDIAWIKI/TRUNK/PHASE3/LANGUAGES/CLASSES/LANGUAGERU.PHP], ETC. (NOTE THAT IN PHP, THE MODULO OPERATOR IS THE PERCENT SIGN).

"GRAMMAR" CAN EITHER BE APPLIED TO PREDEFINED WORDS ONLY, OR TO ARBITRARY WORDS, DEPENDING ON WHETHER THE DEFINITION IS JUST A 2D ARRAY, OR INVOLVES STRING MANIPULATIONS. SEE ALSO CS:ŠABLONA:WIKIVAR/GRAMMAR.

"PLURAL" IS A PROJECT-DEPENDENT SWITCH FUNCTION, E.G. GIVING THE FIRST TEXT IF COUNT = 1, THE SECOND IF COUNT = 2,3, OR 4, AND ELSE THE THIRD. SEE ALSO 5805 FOR THE USE OF "PLURAL" IN SYSTEM MESSAGES.