Difference between revisions of "Mediawiki"

From Jtkwiki
Jump to navigationJump to search
(New page: == Customising Mediawikis == * [http://unautreregard.ouvaton.org/wiki/index.php?title=Advanced_Mediawiki_Hacking#Allow_anonymous_users_to_edit_Talk_pages.2C_but_restrict_article_editing_t...)
 
Line 1: Line 1:
 
== Customising Mediawikis ==
 
== Customising Mediawikis ==
  
* [http://unautreregard.ouvaton.org/wiki/index.php?title=Advanced_Mediawiki_Hacking#Allow_anonymous_users_to_edit_Talk_pages.2C_but_restrict_article_editing_to_to_Sysop_or_to_logged-in_users allow editing of talk pages, but disable other page editing] (outdated, the <code>isSysop</code> method no longer exists)
+
<ul>
 +
<li>Setting up a new skin
 +
  <ul>
 +
  <li>Skins live in the <code>skins</code> subdirectory of a
 +
  mediawiki installation.</li>
 +
Skins consist of:
 +
    <ul>
 +
    <li>A PHP file defining the skin class, normally called <var>skinName</var><code>.php</code></li>
 +
    <li>A dependency file, typically called <var>skinName</var><code>.deps.php</code></li>
 +
    <li>A directory, normally called <var>skinName</var>, containing style sheets and images (e.g. page background graphics and the like).</li>
 +
    </ul>
 +
  <li><var>skinName</var> represents the name of the skin. Somewhat confusingly, the name is capitalised in the PHP code files, but the directory name normally is all lowercase.</li>
 +
  <li>The default skin can be set using the <code>$wgDefaultSkin</code> variable in <code>LocalSettings.php</code></li> As an example, this wiki uses a slight variation of the <code>monobook</code> skin.
 +
</ul>
 +
<li>[http://unautreregard.ouvaton.org/wiki/index.php?title=Advanced_Mediawiki_Hacking#Allow_anonymous_users_to_edit_Talk_pages.2C_but_restrict_article_editing_to_to_Sysop_or_to_logged-in_users allow editing of talk pages, but disable other page editing] (outdated, the <code>isSysop</code> method no longer exists)</li>
 +
</ul>

Revision as of 18:31, 13 July 2008

Customising Mediawikis

  • Setting up a new skin
    • Skins live in the skins subdirectory of a mediawiki installation.
    • Skins consist of:
      • A PHP file defining the skin class, normally called skinName.php
      • A dependency file, typically called skinName.deps.php
      • A directory, normally called skinName, containing style sheets and images (e.g. page background graphics and the like).
    • skinName represents the name of the skin. Somewhat confusingly, the name is capitalised in the PHP code files, but the directory name normally is all lowercase.
    • The default skin can be set using the $wgDefaultSkin variable in LocalSettings.php
    • As an example, this wiki uses a slight variation of the monobook skin.
  • allow editing of talk pages, but disable other page editing (outdated, the isSysop method no longer exists)