Difference between revisions of "CustomSidebar"

From Wiki4Intranet
Jump to: navigation, search
 
Line 1: Line 1:
[[CustomSidebar]] — расширение MediaWiki, созданное в рамках сборки [[MediaWiki4Intranet]] и включённое в неё по умолчанию. Позволяет размещать любой wiki-код в Sidebar — панель навигации, обычно находящуюся в левой части страницы.
+
{{Extension4info
 +
|name=CustomSidebar
 +
|description en=Insertion of arbitrary wiki code into [[Mediawiki:Sidebar]] navigation panel.
 +
|description ru=Размещение произвольного wiki-кода в [[Mediawiki:Sidebar]] — панели навигации, обычно находящуюся в левой части страницы.
 +
|created=2012-05-05
 +
|included=2012-05-05
 +
|status=our
 +
|useful=maybe
 +
}}
 +
{{ExtensionFromInfo|lang=en|name=CustomSidebar}}
  
Исходники: http://wiki.4intra.net/svn/mediawiki4intranet/extensions/CustomSidebar
+
== Usage ==
 
+
== Использование ==
+
 
+
Если вы используете не сборку MediaWiki4Intranet, добавьте строчку <tt>require_once("$IP/extensions/CustomSidebar/CustomSidebar.php");</tt> в свой <tt>LocalSettings.php</tt>.
+
 
+
Далее создайте страницу [[MediaWiki:CustomSidebar]] с содержимым вида:
+
 
+
<pre>
+
Pagename|Title
+
</pre>
+
 
+
<tt>Title</tt> будет заголовком секции Sidebar’а, а содержимое секции будет взято со страницы <tt>MediaWiki:Pagename</tt>. <tt>Title</tt> также может быть именем сообщения локализации, и в этом случае он будет переведён.
+
 
+
== English notice ==
+
  
 
Allows to add blocks with custom wikitext to Mediawiki Sidebar.
 
Allows to add blocks with custom wikitext to Mediawiki Sidebar.
  
USAGE: At first put <tt>require_once("$IP/extensions/CustomSidebar/CustomSidebar.php");</tt> into your <tt>LocalSettings.php</tt> (you don’t need this when using [[MediaWiki4Intranet]]). Then create [[MediaWiki:CustomSidebar]] page with following content:
+
First put <tt>require_once("$IP/extensions/CustomSidebar/CustomSidebar.php");</tt> into your <tt>LocalSettings.php</tt> (you don’t need this if using [[MediaWiki4Intranet]]). Then create [[MediaWiki:CustomSidebar]] page with following content:
  
 
<pre>
 
<pre>

Latest revision as of 17:58, 24 April 2013

CustomSidebar is a MediaWiki extension.

Status for Mediawiki4Intranet distribution:

  • Inclusion date: 2012-05-05
  • Included version: newest available
  • Improvement status: Created by MediaWiki4Intranet project

Usage

Allows to add blocks with custom wikitext to Mediawiki Sidebar.

First put require_once("$IP/extensions/CustomSidebar/CustomSidebar.php"); into your LocalSettings.php (you don’t need this if using MediaWiki4Intranet). Then create MediaWiki:CustomSidebar page with following content:

Pagename|Title

Title will be the title of block, and its content will be taken from MediaWiki:Pagename. Title can also be a localisation message name, then it will be translated.