Questions tagged [wikitext]

Wikitext is a document written in a wiki markup language, used on Mediawiki sites such as wikipedia.org.

From MediaWiki.org:

Wikitext is a document written in a wiki markup language, such as the current one explained in Help:Editing (see also Markup spec/DTD). It is a mixture of content, markup, and metadata. The current and old versions of all pages of a wiki are stored in the database in the text table, in the form of wikitext.

73 questions
1
vote
2 answers

Convert MediaWiki Markup to Textile Markup

I have a problem :0 At my place of work we have two wiki systems and I have been charged with finding a way of migrating from a MediaWiki to a redmine wiki -- only problem is they use different markup languages (WikiText vs Textile) and a possible…
h4unt3r
  • 846
  • 10
  • 14
1
vote
2 answers

How to manually call MediaWiki to convert wiki text to HTML?

I have a MediaWiki installation and I'm writing a custom script that reads some database entries and produces a custom output for client. However, the text are in wiki format, and I need to convert them to HTML. Is there some PHP API I could call --…
Tower
  • 98,741
  • 129
  • 357
  • 507
0
votes
1 answer

Mylyn WikiText Textile parsing error?

I'm working on migrating a textile plugin for a java blogging platform from one library (textile4j) to Mylyn's WikiText. So far very promising, but I have some unit tests that are failing: public void testLinksSyntax44() { String in = "\"link…
javafueled
  • 494
  • 1
  • 5
  • 23
0
votes
1 answer

Expanding a Scribunto module that doesn't have a function

I want to get the return value of this Wikimedia Scribunto module in Python. Its source code is roughly like this: local Languages = {} Languages = { ["aa"] = { name = "afarština", dir = "ltr", name_attr_gen_pl =…
Pux
  • 421
  • 3
  • 18
0
votes
0 answers

how can I convert wikipedia dump to plaintext efficiently

this is my first post here on stack exchange. I need to do some language analysis on wikipedia, so i downloaded one of their database dumps, in particular the italian wikipedia dump. I need to extract the page data to plain text, i don't care about…
0
votes
3 answers

RegEx to format Wikipedia's infoboxes code

I am a contributor to Wikipedia and I would like to make a script with AutoHotKey that could format the wikicode of infoboxes and other similar templates. Infoboxes are templates that displays a box on the side of articles and shows the values of…
oli_vi_er
  • 57
  • 8
0
votes
1 answer

How to replace spaces from parameters in Fandom's Wikitext?

I want to create an infobox template using Fandom's Wikitext that has data which links to Wikipedia. So, if someone uses the template like: {{Person Infobox | city=Los Angeles }} it would be display in the infobox as: City: Los Angeles I…
lol1VNIO
  • 3
  • 2
0
votes
0 answers

How can I use SPARQL regex to parse Wikitext and extract values from parameters in a Wikimedia Commons template?

This query against the Wikidata SPARQL endpoint returns the Wikitext content of the first 50 files in the Wikimedia Commons category "1930s photographs in Auckland Museum". For each file, I want to extract several pieces of data from that…
Hugh
  • 73
  • 6
0
votes
1 answer

Translating wikitext (Wiktionary style) into HTML on the client side

I'm trying to parse Wiktionary Wikitext on the client side (with JavaScript). I found Wiky.js, but it has problems with some markups like {{}}, + etc. Do you know any JavaScript library which may help me with that? I found, that MediaWiki API may…
ciembor
  • 7,189
  • 13
  • 59
  • 100
0
votes
1 answer

MediaWiki API to fetch all links from the See Also section of an article

https://www.mediawiki.org/wiki/API:Query From above link please suggest me an appropriate API to fetch/get all the links of See Also section of an article. For Example: I want a list of the above 5 links. There is an API to get the external links…
Abhi
  • 614
  • 2
  • 12
  • 26
0
votes
1 answer

Can GitHub wikis use wikitext templates?

GitHub wiki pages support wiki markup syntax, and when using curly braces (which, in MediaWiki, loads the contents of another page; e.g., {{Pagename}} would transclude page "Template:Pagename") they aren't shown in the output page, but instead only…
Nixinova
  • 457
  • 7
  • 8
0
votes
1 answer

$(...).wikiEditor is not a function

I tried to customise the toolbar using a user script, following the tutorial on MediaWiki.org; however, sometimes when I load it from my common.js, I get this error in my console: jQuery.Deferred exception: $(...).wikiEditor is not a function…
0
votes
1 answer

Change wikitext from Wiktionary to readable text

How to exchange Wikitext (as seen in Witkionary sourcecode) into readable text (as seen in Wiktionary website). So this source: {{ru-verb|ходи́ть|impf|pf=сходи́ть}} Should be seen as: ходи́ть • (xodítʹ) impf (perfective сходи́ть) It is called…
phoenix84
  • 135
  • 1
  • 2
  • 5
0
votes
1 answer

Limiting Markdown to underline/bold/italic in Java converter

I am searching for a way to allow an user to format his text. The formatting is limited to: underline italic bold enumeration I would like to use Markdown and convert the Markdown to HTML on serverside. My problem is that Markdown supports a lot…
NoobieNoob
  • 887
  • 2
  • 11
  • 31
0
votes
0 answers

How do you tell the difference between HTML tags and text surrounded in <> in wikitext?

I have to interpret wikitext into readable speech, and there is quite an assortment of HTML tags available, such as or . Thus a constant issue is ascertaining what is a tag, and what is text. For example: A propositional fallacy is…
Anon
  • 2,267
  • 3
  • 34
  • 51