Hi, all,
I'm documenting policies and procedures using Mediawiki. Generally, when
documenting procedures using something like Word, you'd have a consistent
numbering system such as:
1.0 Purpose
2.0 Scope
3.0 Responsibility
3.1 General
3.1.1 Whatever goes here.
...and so on...
I'm using the MagicNumberedHeadings
<https://www.mediawiki.org/wiki/Extension:MagicNumberedHeadings> extension
to enable display of section numbers only on pages containing a template
designed for procedures.
I'm curious if there might be a way to use the current section number as a
prefix for ordered list numbering.
In the example above, "3.0 Responsibility" would be
==Responsibility==
===General===
and then I'd begin enumerating paragraphs with an ordered list either using
# or 'ol' and 'li' tags.
Any tricks possible to accomplish this?
I like that the section titles automatically create the TOC. I don't want
to use section markers for everything I want numbered in this manner as it
seems inappropriate to use headings for this.
I was thinking perhaps there could be some kind of magic word that injects
the current counter for the section, and it could possibly be used with the
'ol' tag's 'start' attribute to start the numbering at that of the section.
I'm sure something could be hacked together with CSS and javascript, but
I'd like to know if anyone has tackled anything like this previously.
Thanks,
Larry
<https://lists.wikimedia.org/pipermail/mediawiki-l/2015-March/044200.html>I was also
caught up trying to patch 1.23.8 to present level. No Gruntfile.js or test directory.
I appreciate the need to talk about distributions, but meanwhile it would be nice to
have a valid patch procedure for users like me who just want to get current.
Or do we have to reload the whole distribution?
Tnx Martin
Hi all,
I tried to get a cookie in an extension like this:
$request = RequestContext::getMain()->getRequest();
$cookie = $request->getCookie ( 'wiki02UserName' );
wfDebugLog( "wad", print_r($cookie,true), false );
but $cookie empty, even if print_r of $request shows all Cookies:
2015-04-01 18:20:40 vm-debian7-server2 wiki02:WebRequest Object
(
[data:protected] => Array
.
.
.
[headers:protected] => Array
(
[HOST] => wiki02
.
.
.
[COOKIE] => ui-tabs-1=0; ui-tabs-2=0; wiki02UserID=1;
wiki02UserName=Root; wiki02Token=bc16d37ee81625c62......
Has anyone an idea what I missed?
Greetings
Frank
Hello!
I'd like to announce two MediaWiki extensions that I've developed recently
and believe they are quite stable now:
SimpleTooltip: https://www.mediawiki.org/wiki/Extension:SimpleTooltip
Just a simple ToolTip Extension that has no dependencies and support
tooltips over text, images or a tooltip icon. It has special support for
Semantic Forms, so tooltips will work with multiple instances, too.
Substitutor: https://www.mediawiki.org/wiki/Extension:Substitutor
This extension does one-time string substitutions. It works similar to
magic words, but once replaced, they will not change again. This might be
useful for timestamps, random numbers, ID's.
(For a complete list of extensions see
https://www.mediawiki.org/wiki/User:Fannon - but a few of them are not
stable yet!)
Have fun :)
Simon