Cool, but I don't see it on our pages.
Does it appear only on protected pages?
Is there some variable to set to enable this feature?
I didn't see a guide for this feature, nor did I see an appropriate
variable to set.
Our versions are:
- mediawiki -- 1.15.1
- PHP -- 5.1.6 (apache2handler)
- MySQL -- 5.0.95-log
- Linux distribution -- CentOS release 5.8 (Final)
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Haim (Howard) Roman
Computer Center, Jerusalem College of Technology
Phone: 052-8-592-599 (6022 from within Machon Lev)
On Sat, Jun 23, 2012 at 6:50 AM, Krinkle <krinklemail(a)gmail.com> wrote:
On Mon, Jun 18, 2012 at 5:30 AM, Chad
<innocentkiller(a)gmail.com> wrote:
On Sun, Jun 17, 2012 at 10:55 PM, Haim (Howard)
Roman <roman(a)jct.ac.il>
wrote:
> Is there a way to see the wikitext of an article in read-only mode,
i.e.,
such that
I cannot accidentally change it? This can be useful, of
course,
for copying wikitext to another article.
You could get it via the API. What you're looking for is prop=revisions
with
rvprop=content[0]. An example query for [[API]] on MediaWiki.org[1].
-Chad
[0]
http://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv
[1]
http://www.mediawiki.org/w/api.php?action=query&prop=revisions&titl…
Another way is to click "View source". Which, even in read-only mode,
will
bring up action=edit. The Edit page will show a protected text area with
the wikitext source (but no edit toolbar). The text is not editable but it
is selectable and you can copy it to use in another example, as you
describe.
For example:
http://wikitech.wikimedia.org/index.php?title=Sandbox/sysop&action=edit
-- Krinkle
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l