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
1 answer

Wiki Template for Page Design

I'm new to Wikia, and I'm trying to develop/moderate one. This wiki is intended to cover a very specific class of information, such that the information can be explained in the context of a few clearly defined fields. So, what I want to do is…
boxcartenant
  • 271
  • 2
  • 14
1
vote
1 answer

Does Wikimedia supports other formats for storing data rather than wiki text?

I have some XML files that I need to store in Wikimedia. The obvious alternative will be to parse the content, format it with WikiText markup and store it. I would like to know if Wikimedia supports natively (or through plugins) other formats to…
nsn
  • 193
  • 10
1
vote
0 answers

how to show wiki markup text in reactjs project?

I scraped some Wikipedia pages and want to show them in my private web page. My private webpage written in reactJS, so I wonder if there is a lib/method to load and show wiki text/wiki markup in reactJS.
wei he
  • 13
  • 4
1
vote
1 answer

Triggering a JS inside JS?

I want to trigger this JS, this JS parses wikitext to HTML, by taking the value from the current text of the wikieditor. To get the current value of wikieditor, I used this $('#wpTextbox1').val() Wikieditor
1
vote
1 answer

PCRE recursive pattern with 1st level condition {{1st-level-test: anything {{ne{{s}}ted}} }}

I want to match nested Wiki functions or wiki parser functions that start with a functionname and then a colon, but as soon as I try to get the recursive pcre regex working with a 1st level test I fail to construct a regex pattern. I want to match…
1
vote
2 answers

Mediawiki: How to prevent images in wikitext from beeing rendered in html?

To offer a mobile version of an existing mediawiki installation I was looking for a practicable way to remove all images from output. The most preferred solution would be one where the generated html would no longer contain the image-tags. As I was…
andi
  • 11
  • 1
1
vote
1 answer

Extracting information from specific template on wikimedia api

I'm wondering what the easiest way to extract only the information contained withing a certain template would be using the wikimedia api. I'd like to extract the information contained in the template "Template:Mycomorphbox" for this page:…
Ray Suelzer
  • 4,026
  • 5
  • 39
  • 55
1
vote
1 answer

Escape = character in wiki section title

How to escape a "=" in a wiki Section title? And more than one? Some examples: ===== renders as a 2nd level title "=" (and not a first level "==="). ==== renders as "==" 1st level title (and not an empty 2nd level title). How to make a === as first…
nicolallias
  • 1,055
  • 2
  • 22
  • 51
1
vote
1 answer

XML Parsing for Mediawiki link

I have this link http://en.wikipedia.org/w/api.php?format=xml&action=query&titles=panadol&prop=revisions&rvprop=content I need to get the content inside tag. so I used this code private void HttpsCompleted(object sender,…
Kevin k5
  • 99
  • 1
  • 2
  • 9
1
vote
1 answer

How to specify random group position, instead of sequence, in Regular Expressions?

I’m trying to use the available Wiktionary data dump downloads, which I have been translating with Java and its regex classes, specifically Pattern and Matcher, with fair success. The word definition dumps, which are my main interest, are in raw…
Djedefrey
  • 11
  • 4
1
vote
2 answers

Is there any HTML to WikiText translator?

Is there any HTML to WikiText translator? I need to translate tables with hyperlinks and images inside.
Rella
  • 65,003
  • 109
  • 363
  • 636
1
vote
1 answer

How to render the wiki markup obtained using MediaWiki in rails 3

I have a page which uses the MediaWiki gem to extract wiki details and show it to the user. The user enters what they want to search for and then using MediaWiki gem I fetch the data and image. I am able to show the images but unable to render the…
Milind
  • 4,535
  • 2
  • 26
  • 58
1
vote
1 answer

How to run Lua code directly inline with Scribunto

I have a very short piece of lua code (example: os.date("%Z") ). I want to know if it is possible (currently or planned) to invoke that code directly on the same page, rather than creating a module with only one function, which job is to call that…
user2284570
  • 2,891
  • 3
  • 26
  • 74
1
vote
3 answers

Render wikitext with Python

I need to render wikitext (pulled from the database of a mediawiki of it's relevant) and display in some other format (ultimately to be rendered as a PDF, but basically any other format will do). I can definately hack together something that does…
richo
  • 8,717
  • 3
  • 29
  • 47
1
vote
3 answers

How to Parse Some Wiki Markup

Hey guys, given a data set in plain text such as the following: ==Events== * [[312]] – [[Constantine the Great]] is said to have received his famous [[Battle of Milvian Bridge#Vision of Constantine|Vision of the Cross]]. * [[710]] –…
Jorge Israel Peña
  • 36,800
  • 16
  • 93
  • 123