Code Monkey home page Code Monkey logo

mediawiki_twentyten's Introduction

TwentyTen WordPress theme for MediaWiki

This is a port of the TwentyTen WordPress theme to MediaWiki.

Installation

  1. Copy the files to the 'skins' directory of your MediaWiki install.

  2. In LocalSettings.php set the following variables (they can be either relative or full URLs):

    $wgLogo             = "http://example.com/logo.jpg";
    $wgTwentytenHeader  = "$wgStylePath/twentyten/resources/twentyten/headers/fern.jpg";
    

    The header image should be 940 pixels wide.

  3. Then edit Mediawiki:Sidebar and add the 'MENUBAR', 'PAGETOC', and 'LOGO' sections. A complete example sidebar with these added might look like the following:

    * MENUBAR
    ** mainpage|mainpage
    ** aboutpage|about
    ** Contact|Contact
    * LOGO
    * PAGETOC
    * navigation
    ** portal-url|portal
    ** helppage|help
    ** recentchanges-url|recentchanges
    ** randompage-url|randompage
    

    You can rearrange or delete any parts of Sidebar that you wish, but there does need to be some content or MediaWiki will give you default Navigation and Search sections. Note also that if you remove the PAGETOC section, no ToC will be shown for any page.

    The toolbox section does not need to be kept, because it's moved to one of the columns in the footer.

  4. Please report any problems or suggestions via Phabricator: https://phabricator.wikimedia.org/maniphest/task/edit/form/1/

License

Version 2 of the GNU General Public License (as are MediaWiki and WordPress).

Development

All the files in resources/twentyten/ are direct unmodified copies from the WordPress theme.

mediawiki_twentyten's People

Contributors

samwilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mediawiki_twentyten's Issues

Edit option for whole article alongside heading ?

This is just a thought, I know the edit option is located down in the footer, but one thing I notice as well is that while the main article needs to be edited using the footer link, the sub-headings contain an "edit" tag.

So, if you have a really long article with lots of sub-headings, you can edit these as you go along, but you need to scroll all down to the bottom to edit the actual entire article, or the main section of it.
At least to me it feels a little bit confusing, though I'm not sure if an edit option could or even should be added to the main heading or not, so this is just a comment for you if it's something you think should be handled..

TOC not displaying in the side bar on 1.19.1

The TOC is displaying in it's normal location instead of in the side bar. I think the reason is that tocList is static and is being called as such so the function tocList in TwentyTen.php is not correctly overriding the default implementation and so is never called.

If there is any other debug information I could give you tell me. I don't know what else would be helpful.

Another wiki-code not working properly

Hi

I found another wiki-formatting code that is possibly not working properly.

If you use the : code to create line breaks, i.e.

: Line 1, some text
: Line 2, some more text
: Line 3, yet more text

In "standard" wikipedia design this would create a single linespace, however with TwentyTen the spacing between lines is more 1,5x or 2x, leading to very, very long articles since long texts with this formatting now gets double spacing, seomthing like this:

: Line 1, some text

: Line 2, some more text

: Line 3, yet more text

Along with the image issue, I'd be really happy if there was some way to fix this, getting some pretty unreadable text right now in some places :-)

Thanks, and best regards
/ Mikael

Need help with formatting

Thanks for making the TwentyTen theme available for MediaWiki. I just converted a static site to WordPress, and I'm trying to figure out how to add a MediaiWiki section. Your theme allows both sections to share a similar look and feel.

My proposed MediaWiki site, is here: -- http://www.hdcycling.org/rides/

What I'd like to do specifically is:

  1. Change the content of the site-description ID from "From HD Cycling" to something else.

  2. Eliminate the logo from beneath the "Navigation" section in the right column.

  3. Be able to prominently link to the main section of the site, which is here: http://www.hdcycling.org/

Each of these may be trivial, but MediaWiki seems bewildering to me so far.

I look forward to hearing from you.

Thanks in advance.

Images and thumbs, formatting ignored

It seems like image formatting is ignored, for example, the following should show a thumbnail on the default (left) side of the text, however the image is shown above the text, and not beside it:

[[Image:image.jpg|thumb|"Image text"]]

Similarly, if the image contains the "right" tag, like below, the image should be shown beside the text on the right side instead of the left side, but it is still displayed above the text rather than as part of it.

[[Image:image.jpg|thumb|right|"Image text"]]

Is this something that could be corrected, since this and the table-problem are a little annoying in this otherwise great theme-port.

Site logo problems

After changing my Wiki (v 1.16.2, sw lang) to the TwentyTen theme I notice that the site logo didn't work, at least not until I switched from relative URL-path to fixed http-path.

Additionally, if you could explain how to get rid of the logo I'd be happy, since I didn't really want it, but I can't seem to be able to remove it ? (Same goes for search bar, which I can't remove either, maybe I'm looking at the wrong place, you only mentioned the Sidebar to be edited ?)

Undefined Method

Hi,

Using mw 1.18.0.

After installing got the error "Call to undefined method SkinTwentyTen::tooltipAndAccesskey".
Found with Google that it has something to do with the mw version.

Can you help me out?

Greetz,
Pascal

Content table impractical in layout - belongs in the sidebar

Because of the layout attributes (font size, column size), the table of contents (toc) inserted by Wikimedia pretty much takes up so much real estate that it is impractical to have a toc, forcing the usage of notoc in all the pages.

I tried to edit the template by adding a way to move the toc to the sidebar, which is really where it belongs in this layout. The code I tried was the following, but it was not successful, because it looks like Wikimedia actually caches the toc.

In the class SkinTwentyTen, I added a method to override tocList found in Linker.php. The idea is to have this function return nothing, but transfer the contents to savedTOC and use a "print $this->skin->savedTOC" to display the contents in the sidebar.

 function tocList($toc) { 
    $this->savedTOC = parent::tocList($toc); 
    return ""; 
} 

However, turns out this function is only called when the content of a page is updated, but not during a simple page view. It gets cached the rest of the time, and I don't know what the function is that Wikimedia uses for the cache.

I will continue to try to work around this and come up with some code that consistently stores the toc inside the template so I can put it in the sidebar, but if you happen to have a simple way to get it into the sidebar, that would be a great improvement to this skin.

What is the license for mediawiki_twentyten?

Sam,

Since this project is in the public area of GitHub, is based upon one of the main WordPress themes and that it is a skin for MediaWiki, I am assuming you are (implicitly) using the same (GPL) licenses.

Is this true?

If so, could you either add an explicit license.txt/COPYING file or append a license to the top of at least one of your main files?

Regards,

Stephen Gaito

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.