Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php	(revision 96585)
+++ includes/parser/Parser.php	(working copy)
@@ -2952,6 +2952,8 @@
 				return $wgStylePath;
 			case 'directionmark':
 				return $pageLang->getDirMark();
+			case 'wikicontentdirection':
+				return $wgContLang->getDir();
 			case 'contentlanguage':
 				global $wgLanguageCode;
 				return $wgLanguageCode;
Index: includes/MagicWord.php
===================================================================
--- includes/MagicWord.php	(revision 96585)
+++ includes/MagicWord.php	(working copy)
@@ -109,6 +109,7 @@
 		'currenttimestamp',
 		'localtimestamp',
 		'directionmark',
+		'wikicontentdirection',
 		'contentlanguage',
 		'numberofadmins',
 		'numberofviews',
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php	(revision 96585)
+++ languages/messages/MessagesEn.php	(working copy)
@@ -327,6 +327,7 @@
 	'currenttimestamp'       => array( 1,    'CURRENTTIMESTAMP'       ),
 	'localtimestamp'         => array( 1,    'LOCALTIMESTAMP'         ),
 	'directionmark'          => array( 1,    'DIRECTIONMARK', 'DIRMARK' ),
+	'wikicontentdirection'   => array( 1,    'WIKICONTENTDIR'         ),
 	'language'               => array( 0,    '#LANGUAGE:'             ),
 	'contentlanguage'        => array( 1,    'CONTENTLANGUAGE', 'CONTENTLANG' ),
 	'pagesinnamespace'       => array( 1,    'PAGESINNAMESPACE:', 'PAGESINNS:' ),
@@ -4516,7 +4517,7 @@
 'filepath-summary' => 'This special page returns the complete path for a file.
 Images are shown in full resolution, other file types are started with their associated program directly.
 
-Enter the file name without the "{{ns:file}}:" prefix.',
+Enter the file name without the "<span dir="{{WIKICONTENTDIR}}">{{ns:file}}:</span>" prefix.',
 
 # Special:FileDuplicateSearch
 'fileduplicatesearch'           => 'Search for duplicate files',
