Hi alltogether,
I hope this is the correct mailing list, please excuse if it is not (and
excuse my English, please).
I run a private Wiki and I am trying to create an extension where the user
can enter the title and some content in a form, similar to the extension
InputBox https://www.mediawiki.org/wiki/Extension:InputBox (you cannot enter
page content into the form created by this extension).
I studied the code of several extensions and created something like this:
#*** begin code ***
$pageTitleText = "my new wikipage";
$pageTitle = Title::newFromText( $pageTitleText );
$pageContentText = "my new page content";
$pageContent = new WikitextContent( $pageContentText );
$newWikiPage->doEditContent( $pageContent, $pageContent, EDIT_NEW );
#*** end code ***
Actually this is not working and creates an internal error.
I tried something different
#*** begin code ***
#...
$me = User::newFromSession();
$newWikiPage->doCreate($pageContent,EDIT_NEW,$me,"summary",array());
#*** end code ***
This code creates an internal error, too. array() should be an array with
meta-information which I could not figure out until now.
I have studied the internal documentian
https://doc.wikimedia.org/mediawiki-core/REL1_31/php/ and the code of
several exentions, and now I am lost in classes and PHP-Code, maybe someone
can help me out?
Thank you for reading this,
Manuela
--
Sent from: http://mediawiki-i.429.n8.nabble.com/
I have a wiki with a high volume of edits that need to be made (via API),
about 2-3 per second. The wiki can't keep up with them; there ends up being
a backlog of edits that need to be made as, e.g., attempts are being made
by 10 different bots to make 10 edits simultaneously (all to different
pages) and it takes a long time for them to save so that the bots can move
on to their next edits.
What's the best way to boost performance in the ways needed to reduce the
time needed to save edits, or to be able to save more edits per second by
concurrently running bots? Thanks, -- Starstruck
Hi I am new to mediawiki, and I have a question.
My wiki site is www.wiki.com, and I made a new page such as 'www.wiki.com/index.php/Car'. In this page, the "page name" below article is 'Car'. But my users thinks a Chinese word such as '汽车' is better.(Which means car in Chinese)
So, how can I made the link still www.wiki.com/index.php/Car, while the page name is '汽车'?
Thanks. I searched the help page, but still found no answer.
At my wiki Special:PasswordReset
I receive the error message:
A password reset email has already been sent, within the last 24 hours. To
prevent abuse, only one password reset email will be sent per 24 hours.
The problem is that it's been far longer than 24 hours since the last
password reset email was requested (or sent). Can I force send the email?
Greg Rundlett
https://eQuality-Tech.comhttps://freephile.org
Hi Bryan,
this is precisely the missing documentation I was trying to find, thank
you so much!
I was on the right track (editing the template page manually) but didn't
know how to pass the use input.
This should be part of the official docs I reckon.
Thanks again, you made my day :)
Cheers,
frank
On 29/01/19 6:45 AM, Bryan Hilderbrand wrote:
> Hi Frank,
>
> You could start with an easier version. For example, do the following:
>
> 1) In you wiki, search for *Template:Note*
> 2) Presumably that template doesn't exist, so create it and add the
> following, then save:
>
> <span style="border:1px; border-style:solid; border-radius: 7px;
> border-color:#ddffdd; background-color:#f2fff2; padding:0.1em;
> margin:0.1em; display:
> inline-block;">[[File:Bulbgraph.png|18px|Note|link=]] '''Note:''' {{{1|}}}</span><noinclude>
> == Usage ==
> Lightbulb Note:
> <pre><nowiki>
> {{Note|Your note text}}
> </nowiki></pre>
> </noinclude>
>
> 3) The only new thing you'll need is the image, you can download it
> here <https://www.mediawiki.org/wiki/File:Bulbgraph.png> and as long
> as you upload it to your wiki with the same name, it should work fine.
> 4) Try your new template out by inserting it on a new page with
> *{{Note|This is Frank's template test.}}*
>
> Notes:
> * Remember, the template namespace is special so the call above
> (/{{Note|This is Frank's template test.}}/) is the same as
> *{{Template:Note|This is Frank's template test.}}*
> * You can "transclude" any page into any other with the following
> *{{:Some page}}*, this works for the Main namespace, for others, you
> need to use the namespace *{{Help:Info page}}*
> * The <noinclude> tag just says, don't copy this part over as a part
> of the template, but it can be used to show stuff on the page
> * The example above has one "input" to the template that is un-named
> {{{1}}}, the pipe after just says, if there isn't anything passed
> through, just leave it blank, otherwise it would actually pass through
> {{{1}}} if the user didn't pass anything.
> * You can play with named values {{{color|}}} & {{{text|}}}, etc.
>
> Regards,
> Bryan
>
> On Mon, Jan 28, 2019 at 12:24 AM Frank Rueter | OHUfx <frank(a)ohufx.com
> <mailto:frank@ohufx.com>> wrote:
>
> Thanks a lot Manuela!
> I will look at defining the simple css classes required to make those
> examples work.
> I was just under the impression that these would already exist in the
> default install.
>
> Will give it a go, thanks again!
>
> frank
>
> On 28/01/19 8:42 PM, Manuela wrote:
> > Hi Frank,
> >
> > for me this special page helps a lot:
> > https://www.mediawiki.org/wiki/Special:ExpandTemplates
> >
> > Enter following text into the input box:
> >
> > {{note|Foo}}
> > {{note|Foo|reminder}}
> > {{note|Foo|error}}
> > {{note|Foo|gotcha}}
> > {{tip|Foo}}
> > {{note}} Loose test
> >
> > and check out the result.
> > There is still a lot of work to be done because of the
> css-classes used,
> > check out the talk-page of the template:
> >
> > https://www.mediawiki.org/wiki/Template_talk:Note
> >
> > After defining the appropriate classes in your common.css you
> might define a
> > template like this:
> >
> > <div style="background-position: left 7px top 50%;
> padding-right: 0.5em;
> > padding-left: 40px;" class="{{#switch:{{{2|info}}}
> > |info=note-info
> > |reminder=note-reminder
> > |error|gotcha=note-error
> > |...
> > |#default=}}" >{{{1|Foo}}}</div>
> >
> > hth
> > Manuela
> >
> >
> >
> > --
> > Sent from: http://mediawiki-i.429.n8.nabble.com/
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > To unsubscribe, go to:
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
Hi,
I am slightly embarrassed to ask this but I am a total web dev noob and
after a lot of searching online I still can't figure out how to deploy
the most basic template for a "Note" template as seen here.
<https://www.mediawiki.org/wiki/Template:Note>
All the docs I can find talk about writing your own templates or
exporting/importing them from other pages etc.
Is this actually required to get simple note box going like the examples
on the above page (coloured box with simple icon)?
I would have thought this sort of basic stuff is included in the default
installation but clearly I am missing something.
Any help would be appreciated.
Cheers,
frank
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
This makes no sense (from
https://gerrit.wikimedia.org/g/mediawiki/extensions/ConfirmEdit):
# cd mediawiki/extensions
# git clone ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit
Cloning into 'ConfirmEdit'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
MediaWiki provides certain user feedback as you reach milestones, or
certain events occur:
"You've created your first edit"
"You were mentioned in ..."
"Congratulations on one year" (I could be mistaken about this one... I know
Discourse does it)
I believe the 'notifications' system [1] is primarily responsible for this;
while the 'echo' and 'thanks' extensions play major roles. In fact, I've
read that one or both may be going into core.
Is there a current list to know what messages a User sees? Although the
page at [1] lists 'edit-thank', is there a built-in system setting for 1st
edit, 10th edit, 100th edit like in the translate extension? Can an
Administrator define their own events (Happy Birthday, Happy Anniversary)?
I'm looking for something more detailed that would list the specific
notifications that users get. I can see the open issues [2] and project
board [3], but is there a way for me to tell what new notifications are
just around the bend? It looks like there's active work on "Notification:
Your file was used" [4] but then again it's been active for 4 years.
"Thanks" :-)
[1] https://www.mediawiki.org/wiki/Notifications
[2] https://phabricator.wikimedia.org/T125653
[3] https://phabricator.wikimedia.org/project/board/182/
[4] https://phabricator.wikimedia.org/T77154
Greg Rundlett
https://eQuality-Tech.comhttps://freephile.org
I am trying to test account creation. From a private browsing windows
I navigate to our wiki at https://www.cryptopp.com/wiki/Main_Page.
Then I click login and it takes me to
https://www.cryptopp.com/w/index.php?title=Special:UserLogin&returnto=Main+…
I get an exception that says:
[XEjuboXCm5007QXukql23QAAAAI]
/w/index.php?title=Special:UserLogin&returnto=Main+Page Error from
line 18 of /var/www/html/w/extensions/ConfirmEdit/includes/ConfirmEditHooks.php:
Class 'QuestyCaptcha' not found
However, when I look in extensions/:
# find . -name '*QuestyCaptcha.*'
./ConfirmEdit/QuestyCaptcha/QuestyCaptcha.php
./ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php
./ConfirmEdit/QuestyCaptcha.php
Adding this causes another php exception when attempting to load
LocalSettings.php and running update.php (from
https://www.mediawiki.org/wiki/Extension:QuestyCaptcha):
wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]);
I'm having trouble getting the latest ConfirmEdit so that does not
appear to be a viable option.
Why does Media wiki claim Questy Captcha is not available?
Thanks in advance.