How do I create a wiki? I want to create a wiki for Demon Accords like the people who created the Supernatural wiki. How do I go about that?
User talk:Dantman
Jump to navigation
Jump to search
Reply to "{{#setmainimage:FOO}} puts FOO at the top of the page before other text?"
Reply to "Working with Lockdown"
Reply to "Requests for comment/Allow styling in templates"
Reply to "March Grants News"
Reply to "Problem with modified Vector skin"
Reply to "Realnames"
Reply to "Extension SidebarDonateBox (2)"
Reply to "RESOLVED:Extension:Theme Designer"
Reply to "WikiVid SQL"
The correct meta tags are generated, but the page source starts with:
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><p>FOO |
I must be doing something wrong, but I can't seem to figure out what. (OpenGraphMeta and Description2 are both installed and loading properly)
Any thoughts?
Do you know if it's possible to allow registered users to view particular special pages, but prevent users in the banned user group (made with $wgRevokePermissions) from viewing them? I'd like for all users to have access to RecentChanges, but not for the troll who has been stalking it. I don't think there's a need for anons who can't edit to read it.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
I don't use Lockdown at all. And I don't really see any reason to hide recent changes.
Ok. I'll see if anyone else knows if there's a solution. I'm hiding it from a troll who has repeatedly spewed racist interpretations of our content, and from what we can tell, has been stalking the recent changes page literally every day for over a year.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
Imaj
Hi, Requests for comment/Allow styling in templates is being considered as one of the RFCs to be discussed at the RFC review on 2013-11-06 via IRC. You are receiving this notification because you edited or discussed this RFC. We hope to see you there.
![]() Grants News |
VOLUME 1 | MARCH 2013 | ISSUE 1 |
Eight projects have been awarded grants in this pilot round of the Individual Engagement Grants program. You can read more about them in our blog post. Many thanks to everyone who participated in this round! We look forward to seeing even more of your ideas and input in preparation for round 2, which begins on August 1st.
Grants News is brought to you by the Wikimedia Grantmaking Team. You can change your subscription to this update on the list.
This post was posted by Siko (WMF), but signed as Sbouterse (WMF).
I used the directions here http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/ to create a modified Vector skin here http://en.sturmkrieg.com but the CSS doesn't seem to work. I copied the Vector.css and some of the Common.css wiki pages into the screen.css file, and for some reason, only some of the CSS seems to work, as can be seen here http://en.sturmkrieg.com/index.php?title=Sturmkrieg_Wiki&useskin=sturmkrieg
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
Try adding 'skin.vector' to the dependencies of your skins RL module. And use addModules instead of addModuleStyles.
Where is the RL module? Is that in the skin files or one of the core files?
EDIT
I found this in sturmkrieg.php
$wgResourceModules['skins.sturmkrieg'] = array( 'styles' => array( 'sturmkrieg/screen.css' => array( 'media' => 'screen' ), ), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory'], );
Where should I add it?
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
Make that:
$wgResourceModules['skins.sturmkrieg'] = array( 'styles' => array( 'sturmkrieg/screen.css' => array( 'media' => 'screen' ), ), 'dependencies' => 'skin.vector', 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory'], );
Btw, your url shouldn't have []'s in it.
And remember to update addModuleStyles to addModules.
Thanks. I added the 'dependencies' => 'skin.vector', line. Are you say this line $wgResourceModules['skins.sturmkrieg'] = array( should not have the [] in it?
EDIT
I have this
$wgResourceModules['skins.sturmkrieg'] = array( 'styles' => array( 'sturmkrieg/screen.css' => array( 'media' => 'screen' ), ), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory'], 'dependencies' => 'skin.vector' );
It doesn't seem to work.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
You've done something strange. Your skin isn't even loading 'skins.sturmkrieg' anymore.
I changed addModuleStyles to addModules. For some reason, it doesn't load any of the sturmkrieg/screen.css when I set that. I'm guessing maybe I should change it back to useModuleStyles? I'll set it back to that for now. When it does that, some of the CSS for the new skin loads, but most of it seems to be the Vector CSS.
I'll update this code here, that lists the code for the skin.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
Do you know what to do when only some of the CSS is loading? useModuleStyles seems to load some of the CSS from the new skin, while useModules doesn't use any of it.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
I'm using MW 1.17.5. Is there anything I need to do differently?
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
Please upgrade, 1.17 is EOL. And lots of the skinning stuff is not available.
Will the method work for MW 1.19? If so, I will upgrade to that.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
I was saying that the 'url' in $wgExtensionCredits['skin'][] shouldn't have '[]' around the url. It's a plain url, not wikisyntax expecting external link syntax.
Ok, I see. Thanks.
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
I have this for the files:
- sturmkrieg.php
<?php /** * Sturmkrieg skin * * @file * @ingroup Skins * @author Sasha Ehrenstein (http://www.sturmkrieg.de/User:Inquisitor_Ehrenstein) */ if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." ); $wgExtensionCredits['skin'][] = array ( 'path' => __FILE__, 'name' => 'Sturmkrieg', 'url' => "[http://www.sturmkrieg.com]", 'author' => '[http://www.sturmkrieg.de/User:Inquisitor_Ehrenstein Inquisitor Ehrenstein]', 'descriptionmsg' => 'mywiki-desc', ); $wgValidSkinNames['sturmkrieg'] = 'Sturmkrieg'; $wgAutoloadClasses['SkinSturmkrieg'] = dirname(__FILE__).'/Sturmkrieg.skin.php'; $wgExtensionMessagesFiles['Sturmkrieg'] = dirname(__FILE__).'/Sturmkrieg.i18n.php'; $wgResourceModules['skins.sturmkrieg'] = array( 'styles' => array( 'sturmkrieg/screen.css' => array( 'media' => 'screen' ), ), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory'], );
- Sturmkrieg.i18n.php
<?php /** * Internationalization file for skin Sturmkrieg. * * @file * @ingroup Skins */ $messages = array(); /** English * @author Inquisitor Ehrenstein */ $messages['en'] = array( 'skinname-sturmkrieg' => "Sturmkrieg", 'sturmkrieg-desc' => "The default skin of Sturmkrieg.", );
- Sturmkrieg.skin.php
<?php /** * Skin file for skin Sturmkrieg. * * @file * @ingroup Skins */ require_once( dirname( __FILE__ ) . '/../Vector.php' ); /** * SkinTemplate class for Sturmkrieg skin * @ingroup Skins */ class SkinSturmkrieg extends SkinVector { var $skinname = 'sturmkrieg', $stylename = 'sturmkrieg'; /** * @param $out OutputPage object */ function setupSkinUserCss( OutputPage $out ){ parent::setupSkinUserCss( $out ); $out->addModuleStyles( "skins.sturmkrieg" ); } }
This post was posted by Lieutenant S. Reznov, but signed as Inquisitor Ehrenstein.
Thanks for the feedback! I just released 0.1.1 of Extension:Realnames. It should address everything you mentioned (save 1.18 integration and possible slowdowns on RC and History -- waiting for feedback for those).
Hallo Dantman - super Extension! Dazu habe ich zwei Fragen:
- Wie kann ich den Donate Button OHNE Hauptmenupunkt direkt im Sidebar platzieren? (D.h.: Statt "Donate"->Donate Button nur "Donate Button" - also auf Stufe "Main page")
- Wie kann ich die Reihenfolge ändern? Ich möchte den Donate Button nämlich ganz oben anzeigen lassen...
Im SidebarDonateBox.php vermute ich, dass man $bar['Donate'] = $egSidebarDonateBoxContent; anpassen müsste, nur leider kenne ich mich mit PHP (noch) nicht so gut aus...
P.S.: Ich verwende MW 1.16 mit dem Vector Skin.
Viele Grüsse
This post was posted by Dantman, but signed as Mrnett1974.
I was wondering if you knew how to fix an error in SpecialThemeDesigner.php
line #75 echo Html::closeElement('body'); ?
I can not read all the error message as it is displayed behind the skins dropdown. Here is the link to my wiki's Special pages . Also the extension is not showing up on the version page here . You can leave a reply (if you would) Here or my main account Here.
Thank you
Why is mine doing this?
This post was posted by Dantman, but signed as 192.197.54.28.