I'm working on a special page extension and noticed that under some
conditions $wgOut->addWikiText($this->function()) creates a gap
between the tabs and the content div. I think I've seen this before
but I don't recall why. When I use $wgOut->addWikiText("foo"),
there's no gap. But I can't figure out what is in $this->function
that could be creating the gap. the method just returns a string.
MW 1.14
Any thoughts on what I should be looking for?
Jim
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
Greetings,
I have created a new namespace called Project.
Now, I'd like to copy all contents including Talk pages from the Main namespace to the new namespace Project.
Is it possible, and how if yes?
Thanks in advance,
Ross
__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
Bonjour,
J'ai déja installé plusieurs mediawiki sans problèmes, mais
aujourd'hui je me trouve dans une impasse.
La procédure d'installation s'est bien passéemais lorsque je me
connecte sur la page d'accueil j'ai le message suivant :
"Error, Setup.php must be included from the file scope, after
DefaultSettings.php"
J'ai cherché sur le net mais je n'ai pas trouvé de réponses satisfaisants.
Pouvez m'indiquer à quel niveau se situe mon problème ?
Merci
--
Stephane CROSES
Hi folks,
so i get those following templates
* Template:-
* Template:Documentation
* Template:Documentation subpage
* Template:Documentation/docname
* Template:Infobox
* Template:Infobox/row
* Template:Lts
* Template:Pp-meta
* Template:Pp-template
* Template:Purge
* Template:Start date
* Template:Start date and age
* Template:Time ago
* Template:Tl
* Template:UF-hcal
but when i copy this code
{{Infobox software
| name =
| logo = <!-- [[File: ]] -->
| screenshot = <!-- [[File: ]] -->
| caption =
| collapsible =
| author =
| developer =
| released = <!-- {{start date|YYYY|MM|DD}} -->
| discontinued =
| latest release version =
| latest release date = <!-- {{start date and age|YYYY|MM|DD}} -->
| latest preview version =
| latest preview date = <!-- {{start date and age|YYYY|MM|DD}} -->
| frequently updated =
| programming language =
| operating system =
| platform =
| size =
| language =
| status =
| genre =
| license =
| website = [http://www.example.org/example.org]
}}
i'll get a red link again. I've searching about the xml Document for this Template but i didn't found it.
Where can i get it?
Best regards
Christian
--
Linux User Group Sauerland
Christian Rumpf
Email: christian(a)lug-sauerland.de
Web: http://www.lug-sauerland.de
IRC: irc.lug-sauerland.de #lug-sauerland.de
Hi there,
i'm new to mediawiki an i search about some informations to create some
templates, like InfoBox. but when i copy the "source" from a InfoBox
like template:InfoBox Software i'll get a red link on the side.
So the Template doesn't work.
Is there any thing that i need to get those templates work?
Best regards
Christian
--
Linux User Group Sauerland
Christian Rumpf
Email: christian(a)lug-sauerland.de
Web: http://www.lug-sauerland.de
IRC: irc.lug-sauerland.de #lug-sauerland.de
Hi folks,
Exec summary: I'm looking for help on a possible change needed to
FileRepo::publish() API, since it currently makes some assumptions
that seem to be incompatible with fixing bug 4421 ("Image file
extension should not be part of the name"):
https://bugzilla.wikimedia.org/show_bug.cgi?id=4421
I'm also more generally looking for feedback on my approach to 4421.
Details:
A while back, I decided to try my hand at fixing bug 4421. It's a
longstanding usability wart, and I figured it'd be a good way to
re-familiarize myself with the codebase. It's mostly working, though
working through all of the edge cases is a bit of a game of
whack-a-mole. Most of the complexity comes from needing to store the
files on the filesystem with appropriate file extensions, since these
get served directly from the filesystem from Apache. Thus, there's a
lot of convoluted logic for tacking on the file extension in the
appropriate spots. You can read the comments on 4421 to understand
why things are the way they are now.
An example of something that isn't working that I need advice on is
this: with my modified version, it's possible to upload a jpeg to a
location without an extension, then upload a png to that same
location. The problem comes in LocalFile::publish(). Here's the call
it makes from that function:
$status = $this->repo->publish( $srcPath, $dstRel, $archiveRel, $flags );
This causes two things to happen:
1. copy $dstRel to $archiveRel
2. copy $srcPath to $dstRel.
The problem here is with uploading a png over the top of a jpg. For
example, if the title name is "File:Foo", then the filename for the
first version of the file will be "Foo.jpg", and the replacement will
be "Foo.png". So, if we pass "Foo.jpg" to $dstRel, then step 1 works,
but step 2 fails. If we pass "Foo.png", then the opposite problem
occurs.
The only solution it would seem is to rework FileRepo::publish() to
accommodate this case (adding another parameter). That doesn't seem
*so* bad, though being an interface change. Here's what I'm hoping
folks will weigh in on:
a. If reworking FileRepo::publish() is the way to do it.
b. If my general approach on 4421 seems sound, and to get a sense if
there's going to be objections to landing this in trunk soon
(presumably after 1.16). I've just updated my latest version here:
https://bugzilla.wikimedia.org/attachment.cgi?id=6885&action=diff
Feel free to answer here or to ping me on IRC ("robla" on Freenode #mediawiki)
Thanks!
Rob
> From: George Alexandru Dud?u <george.dudau(a)mobexpert.ro>
>
> How can i make pagination from database query in mediawiki? I want to
> show just 25 items on a page.
I just posted a hack to SQL2Wiki that does this:
http://www.mediawiki.org/wiki/Extension:SQL2Wiki
My changed version is on the talk page:
http://www.mediawiki.org/wiki/Extension_talk:SQL2Wiki#Enhancements
WARNING: only use this extension if you trust your user base. It
should NOT be installed an a system where anyone can create an account
that is capable of editing pages!
:::: The white man seeks to conquer nature, to bend it to his will and
to use it wastefully until it’s all gone and then he simply moves on,
leaving the waste behind him and looking for new places to take. The
whole white race is a monster who is always hungry and what he eats is
land. — Chiksika, elder brother of Tecumseh, March 19, 1779
:::: Jan Steinman, http://www.Bytesmiths.com
I posted this a few days ago but it never made it through somehow, I am
trying again.
I have seen a few posts in the last while from people asking how to alter
mediawiki to take advantage of Amazon S3 as a file hosting and serving
service. This is a solution to integrate mediawiki with S3 so that Amazon
serves all of the images:
http://static.highinbc.com/staticwiki/S3%20Mediawiki%20integration.html
Comments, recommendations, improvements welcome.
-Ryan Bushby
Hi all,
I'd like to change the Texts on the "File-Pages". In fact, I'd like not
to show most of it, like Versions and Metadata.
Does anyone know how to do this? Because we have several Wikis on the
same Mediawiki-Installation, it should be done on the skin-Level...
I can do the following:
- Not show the table of contents by the following in the css
ul#filetoc {
text-align: center;
border: 1px solid #aaaaaa;
background-color: #f9f9f9;
padding: 5px;
font-size: 95%;
margin-bottom: 0.5em;
margin-left: 0;
margin-right: 0;
}
#filetoc li {
display: inline;
list-style-type: none;
padding-right: 2em;
}
- Tried to do the same for Metadata and Versions
#metadata, .metadata, #mw_metadata, .mw_metadata {
display: none;
}
#filehistory, .filehistory {
display: none;
}
But there is only the title in the "div"-s metadata and filehistory -
therefore, some things vanish, other don't.
- There is also a possibility to change Systemmessages on the page
"Spezial:MediaWiki-Systemmessages" (histlast, histfirst,
uploadnewversion-linktext etc.), but I dont want to change a
Systemmessage for metadata to show text about the copyright for example...
Thanks a lot for your help,
Irene
I am trying to install mediawiki in Windows XP using the quick
installation guide.
I have installed wamp with PHP version 5.3.0
Apache version 2.2.11
and MySQL version 5.1.36
It will not let me set a database user name and password.
Here is the script.
PHP 5.3.0 installed
Found database drivers for: MySQL SQLite
PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
Have XML / Latin1-UTF-8 conversion support.
Session save path (c:/wamp/tmp) appears to be valid.
PHP's memory_limit is 128M.
Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use
these for object caching.
GNU diff3 not found.
Found GD graphics library built-in, image thumbnailing will be enabled
if you enable uploads.
Installation directory: C:\wamp\www\mediawiki-1.15.1
Script URI path: /mediawiki-1.15.1
Installing MediaWiki with php file extensions
Environment checked. You can install MediaWiki.
Warning: $wgSecretKey key is insecure, generated with mt_rand().
Consider changing it manually.
Generating configuration file...
Database type: MySQL
Loading class: DatabaseMysql
PHP is linked with old MySQL client libraries. If you are using a
MySQL 4.1 server and have problems connecting to the database, see
http://dev.mysql.com/doc/mysql/en/old-client.html for help.
Attempting to connect to database server as wikiuser...failed due to
authentication errors. Check passwords.
I have gone to the suggested Sun website, but I cannot connect to
mysql from the shell because I have not set a password, and it will
not let me set a password.
Any thoughts.