Hello,
I'm new to MediaWiki (and PHP), and need a little help. First off - a
big thank you to Brion and everybody that works on MediaWiki. It is a
tremendously easy to use and useful system.
I have a similar request to Aviram, and could use a pointer or two. I
want to be able to populate a page with different template texts. I am
thinking that a nice, small, start would be to add some buttons to the
edit page screen. Just like the buttons add text to a page for bold
text, an embedded image, or media file link, I would like to add a
button that plops in some template text.
I'm using MediaWiki 1.4rc1. I see in EditPage.php a function called
getEditToolbar(), that then has an array of toolbar buttons.
Question 1: would this be the best/correct place to add my template
text?
I copied one array(...) section and added it near the end, substituting
in my personalization as appropriate. It does plop in the template text
- so far, so good. :-) I just don't know if there is somewhere else I
should be making these modifications, than in EditPage.php
So now, I can add three or four buttons to correspond with the three or
four standard templates my different pages will use.
The next challenge is to take this to the next level....
Question 2: Is it possible to get those edit buttons to prompt the user
for data? It would be nice - but I would need some guidance where to
learn how to do this.
Thank you for your time, and any help you can give me.
David Gerisch, Systems Development Specialist
A.C.S. / Tulare County Information Technology
degerisch(a)co.tulare.ca.us
>>> mediawiki-l-request(a)Wikimedia.org Friday, March 11, 2005 5:17 AM
>>>
Date: Thu, 10 Mar 2005 10:01:16 -0800
From: Jan Steinman <Jan(a)Bytesmiths.com>
Subject: Re: [Mediawiki-l] Forcing template
To: MediaWiki announcements and site admin list
<mediawiki-l(a)Wikimedia.org>
Message-ID: <d2445e084148467c21f4f85d3eaa6363(a)Bytesmiths.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
On 10 Mar 2005, at 00:54, Aviram Jenik wrote:
> I would like to force (or at least make it the default behavior) for
> new pages
> to appear in a certain layout. Basically, the idea is that instead of
> filling
> out an empty page... they would only have to 'fill in the blanks'.
I think I know what Brion will say about this... :-)
If you imagine a continuum between rigid structure on the right, and
totally free-form on the left, then Wikis in general fall very much to
the left.
It isn't that you absolutely could not do such a thing, but it does run
counter to the Wiki Way, which is anarchic and non-authoritarian.
An easier path than having fill-in fields would be to have some
pre-installed text. I'm just guessing, but you might be able to do that
in Article.php in the constructor. That way, your users would not have
to face "blank page shock" and you could "suggest" a typical article
layout. A tidy implementation that they might consider rolling in might
include an instantiation hook that could would cause a call to an
extension for providing new page text.
> Is something like this possible?
Just because something is possible, doesn't mean it's a good idea!
:::: Terrorism is the best political weapon, for nothing drives people
harder than a fear of sudden death. -- Adolf Hitler
:::: Jan Steinman <http://www.Bytesmiths.com>
There are a few scripts in the maintainence directory to import from
certain software.
If these don't surfice, you may have to write your own app to do it.
Consider these things:
* Method and format of data storage (FS, DB, layout of directories,
layout of tables, how meta-data is stored).
* What data is stored (versioning, level of detail of versioning,
meta-data, user info, etc.)
* Syntax of content (MediaWiki's brackets vs. CamelCase)
If you have problems with your specific configuration, I'm sure there
are a few people on this list who can help.
On Fri, 11 Mar 2005 13:46:46 -0500, Aaron Macks <amacks(a)techtarget.com> wrote:
> [I figured out the multiple page output issue]
> Now I'm wondering how I re-import those pages, the import function is
> not yet enabled in the web interface. I guess what I'm asking is if
> I want to migrate part of a current wiki to a new wiki, how would I
> best do that?
> Aaron
> --
> ____________________________________________
> Aaron Macks amacks(a)techtarget.com
> TechTarget PGP keyid: FBE946C5
> 117 Kendrick St, Suite 800 Phone: (781) 657-1519
> Needham, MA 02494 Fax: (781) 657-1100
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
--
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Has lots of invites.
[I figured out the multiple page output issue]
Now I'm wondering how I re-import those pages, the import function is
not yet enabled in the web interface. I guess what I'm asking is if
I want to migrate part of a current wiki to a new wiki, how would I
best do that?
Aaron
--
____________________________________________
Aaron Macks amacks(a)techtarget.com
TechTarget PGP keyid: FBE946C5
117 Kendrick St, Suite 800 Phone: (781) 657-1519
Needham, MA 02494 Fax: (781) 657-1100
> Quite how the law systems of the world view this latter kind of
> "contract", I'm not sure, but an awful lot of people rely on it - I
> have a feeling it rather depends on the details because people have
> suggested that the "EULAs" you "agree to" when installing software
> might not always be enforceable. But it hinges on the fact that nobody
> has the *right* to contribute to your wiki; they do so on your terms,
> or they don't do so at all.
IANL, but I have read something about copyright laws doing research
for my own site. Contracts can be entered into by more means than
signing a paper. Oral agreements can be a legal agreement (based on
certain rule). Accepting an agreement by pressing an 'ok' button on a
website can definitely be a legal agreement (otherwise banking on the
internet would not work). I even had a website call me with an
automated message that recorded my voice saying, "I accept." If you
make it a clear and easily identifiable message that submitting
information to your website is bound to some terms, than that is an
agreement and can be upheld in a court of law (so long as the terms
themselves are not illegal, ie: a contract to kill is not a legal
agreement).
--
~Jason Walker
Take back the web - Get Firefox!
Hiya,
What are the terms of the licensing for mediawiki? I would like to use a
wiki to document some private projects. I do not wish to change the
mediawiki source-code or redistribute my own version of it so I am happy
to use it under the terms of the GPL. However, I am confused because the
'edit' tab of my new wiki states that anything contributed to my wiki is
under the terms of the GFDL. Are the licensing terms of mediawiki
different from other GPL programs, eg using Open Office to write
commercial documents, or emacs to write proprietary programs?
In otherwords do the GFDL terms of mediawiki's license apply to all any
content that is added any mediawiki wiki, or is this statement included
for mediawiki's in the public domain such as wikimedia's wikipedia?
Many thanks,
Paul
Hi, all,
Does anyone have any knowledge of laws (in the US) that govern the
ownership of Wiki content? I noticed that the default disclaimer in the
MediaWiki edit page claims that all content is public under the GNU Free
Documentation License. Is just changing this disclaimer a sufficient
means of making the content protected by an individual or corporation's
ability to copyright? Or, since the tool lies in the public domain is
it more complex to use the tool to generate private or confidential
data?
My intuition tells me that a content creator owns his content unless an
explicit agreement exists that changes this policy. However, I have
never heard this formally stated so I'm curious if others can confirm or
displute my intuition.
Thanks,
Scott
Hi,
I would like to force (or at least make it the default behavior) for new pages
to appear in a certain layout. Basically, the idea is that instead of filling
out an empty page, I would like the users to see something like:
Field 1: _________
Field 2: _________
Field 3: _________
and they would only have to 'fill in the blanks'. Is something like this
possible? What should I change to make it work?
I looked into templates, but that doesn't seem to be what I'm after (at least
as far as I could understand it - the help about it is extremely confusing).
TIA.
--
- Aviram
Hello,
I try to customize Mediawiki, so I changed some things in
templates/xhtml_slim.pt. After dropping the database and reinstalling
the wiki I saw my first changes. OK.
But now I try to change something again and it does not work anymore, I
still see my first changes.
I even tried to install the original wiki again, but even now I see my
first changes...
What is this? Maybe information in the PHP namespace? If so: how do I
empty that namespace? I used another name for this wiki...
Is there maybe a better way to change things in xhtml_slim.pt without
dropping the database and do a reinstall?
With regards,
Paul van der Vlis.