Hi!
I'm very new to Mediawiki and trying to build a wiki site. I plan to use it
as part of a server for mobile app, so I want JSON. I'm using Semantic
MediaWiki(SMW) and have added some attributes to several pages, and now I
have trouble make SMW return those data in JSON. There are 2 questions:
1. How to make a short url to return all attributes on a certain page? That
is:
{{#ask [[Page title]]
| ?attr1
| ?attr2
}}
The current way is to use special:ask, but with all those parameters it's
too long to be a good api I think...
2. JSON returned by SMW has many information I don't want, such
as printrequests and the serializer. I just want those attributes. What I
want is something like this:
{ title: "Page title", attr1: "value1", attr2: "value2" }
Can I get such a clean JSON by using SMW? Also, link=none seems don't work
on json format?
Maybe my requirements are a little complicated. So I'm also wondering if I
can make a formatter for myself. It may meet all the two points above, and
is very flexible. Or use a new php and post requests in it to the
mediawiki's special:ask page, get the returned JSON, decode and encode(only
useful things), and return the result. But I think there must be better way
to do it, without sending another request to the same server. So what's the
best way to solve these?
Waiting for help.
Thanks!
Zhenwei Wu
Does anyone on this list use on their own wiki one of the extensions in
<https://www.mediawiki.org/wiki/Category:Rating_extensions>? If yes it
would be useful to update their pages, to clarify
* what releases work with what versions of MediaWiki,
* what are the main traits/features you chose one or the other for.
For instance...
* ReaderFeedback is a very old and stable extension; its page had not
been updated in years but I tested and found out it still works in 1.19
(LTS).
* CommunityVoice was very similar, had no version info but is found in
the wild on a couple recent installs.
* VoteNY has been abandoned for a long time, has seen some recent work
but has no recent release info.
* Of the others I know little or nothing.
So the confusion is great.*
Nemo
(*) For AFTv4 vs. AFTv5, even inextricable.
<https://www.mediawiki.org/wiki/Article_feedback/Version_5/Report> The
other cases are hopefully simpler to test and describe.
Hello Wikimedia,
I am a third year undergraduate of University of Colombo School of
Computing, Sri Lanka following the degree programme of BICT. I would like
to join with you and contribute to Wikimedia. I have already followed the
instructions of the "Landing" section recommended for a newbie.
Can someone please give me some information on how to do a contribution..
Thank You.
Muthumini Waidyarathna.
I'm using a Vector subskin in order to add some custom html to the top of
all wiki pages. When the page loads the custom html appears without any
styling for a second or two, then the rest of the page loads and all is
well. But that little hiccup is kind of annoying. I suspect I've
implemented my custom html incorrectly.
What would cause this?
When a page loads, is the sequence of elements Custom Code -> Skin -> CSS?
Thanks
Bill
Hi,
there is great news. Jenkins supports to build debian packages, now .
After trying to build a package for LaTeXML in summer it took me one
full day to build a first version of a mathoid package and publish it
too launchpad.
Most confusiong (and time consuming) are the various option to build
debian packages. For me it wasn't obvious what's best practice to
build a package.
Is the guide
https://wikitech.wikimedia.org/wiki/Git-buildpackage
still up to date?
I think it would be great if a common practice to build wmf packages
could be developed.
I'd be interested in building following packages:
- mathoid
- latexml
- latexml-server
- MathWeb Search
and an XML data storage (I don't know yet which is the best one; ibm
db2 seems to outperform basex by orders of magnitudes).
Best
Physikerwelt
On 12/02/2014, at 13:00, mediawiki-l-request(a)lists.wikimedia.org wrote:
> But how do you add HTML? This is the primary challenge for us. Adding the
> ability to do this would, I think, substantially extend the power of
> Daniel's excellent tutorial. Would you be willing to share some of the code
> you use for adding custom HTML in myskin.skin.php?
>
> Best,
> Forest
You might be interested in a MediaWiki skinning framework I've been working on called Skinny: http://github.com/andru/skinny
Rather than the usual everything-in-one-giant-execute-method of MediaWiki skins it breaks down the HTML into small template files which can be overridden by 'subskins'. It makes defining and loading custom resources via ResourceLoader much easier and it also introduces the concept of skin 'layouts', which allows page layouts to be set on a per-page basis without CSS hacks.
It's still undergoing serious breaking changes on a regular basis and it's totally undocumented, but it's gradually approaching a fairly stable API and I'm working on a demo wiki for it which I hope to have up in a few weeks.
You can check out an implementation of a skin developed using it called Booty, which is a highly configurable bootstrap-3 based skin I'm working on: http://github.com/andru/booty - Again, unfinished and undocumented! So far I've only been using these myself for client projects.
I'll also be finishing up two client projects in the coming weeks which feature skins based on Booty, so there'll soon be some examples of it in the wild.
I'll announce it here when the demo/documentation wiki is up, but since this conversation is relevant I thought I'd drop in an early note about it here incase it's of any use.
andru vallance / tinymighty.com
On several pages recently, the math has not been formatted correctly, such
as in the "Selberg integral" page. It just shows lots of big red code.
Probably a good way to search for problems is to search for entries in
math with red text, if that's possible. Just letting you know,
Alex
Do you know if the two 1/4 scale SDPD tow links will be finished by this
week? Thanks....
--
Dave Humphrey -- dave(a)uesp.net
Founder/Server Admin of the Unofficial Elder Scrolls Pages -- www.uesp.netwww.viud.net - Building the world's toughest USB drive
In an old vector based skin on a 1.16 version of MW, the skin author added
custom html and css directly into the skin.php code to add a custom header
above the personal tools links.
Where do I put that code in a vector subskin in MW 1.22? Do I add it
directly to myskin.php again, or to myskin.skin.php? Do I separate the
html and css and add the html to myskin.skin.php and the css to screen.css?
Thanks
Bill
If you were thinking of applying for a scholarship from either the
Wikimania Foundation, Wikimedia Deutschland, or Wikimedia Österreich,
the deadline is end of the day UTC this coming Monday. Don't miss it!
Katie
On 08/01/2014 17:37, Katie Chan wrote:
> Hi all,
>
> Scholarship applications for Wikimania 2014 in London are now being
> accepted. Applications are open until the end of the day UTC on 17
> February.
>
> Wikimania 2014 scholarships is an award given to an individual to
> enable them to attend Wikimania in London from 6-10 August, 2014.
>
> Only a single type of scholarship will be available from the Wikimedia
> Foundation for Wikimania 2014. A Wikimedia Foundation scholarship will
> cover the cost of an individual's round-trip travel costs as arranged
> by the Wikimedia Foundation travel agency, shared accommodation as
> arranged by the Wikimedia Foundation, and registration for Wikimania.
>
> Applicants will be rated using a pre-determined selection process and
> selection criteria by the Scholarship Committee, who will determine
> which are successful. To learn more about Wikimania 2014 scholarships,
> please visit <https://wikimania2014.wikimedia.org/wiki/Scholarships>.
>
> To apply for a scholarship, fill out the application form on
> <http://scholarships.wikimedia.org/apply>. It is highly recommended
> that applicants review all of the material on the Scholarships page
> and the associated FAQ before submitting an application.
>
> If you have any question, please contact
> <wikimania-scholarships(a)wikimedia.org> or leave a message on
> <https://wikimania2014.wikimedia.org/wiki/Talk:Scholarships>.
>
> Katie Chan
> Chair, Scholarship Committee
>
--
Katie Chan
Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent the view of any organisation the author is associated with or employed by.
Experience is a good school but the fees are high.
- Heinrich Heine