Hi Chris,
Thank you for the links. I did the change directly in the parser.php,
but it is far better to use the appropriate extension and keep the
changes in localsettings.
My question was just the step after:
1) the current editsection function is based on catching headings: 'h?'
to send parts into the tree. So how to make it use the section tag?
a)Maybe the simplest solution is just to add in the parser a <section>
tag above the header during the rendering... but where to end it?
b) if so, how to pass attribute like a class parameter to the section tag?
c) On my test, if I edit a titlesection, I have to be carefull because
it might contains the start tag of the next section...
2)If we wanted editsection to use a tag named "section" instead (or in
addition), a lot of things change.
I have tried to simply replace the 'h' by 'section' in the parser, but
of course, it only resulted in a complete break.
b) I guess building an id for the section wouldn't be that difficult,
3) Did someone come accross an idea to modify the existing editor to add
sections?
a) Is there a bright idea about a new markup? Otherwise, what is the
point of a wiki if I am the only one who understand how to edit a page ;)
I just wanted to know if somwhere, someone had already started working
on such modifications, before customizing my wiki...
Thanks again for your answer
François
Le 25/08/2014 16:27, Chris Tharp a écrit :
Hi
I've used this extension:
http://www.mediawiki.org/wiki/Extension:HTML_Tags to allow
section, article and more html tags. Alternatively if you're
looking for something a little more advanced, and don't mind only allowing sysops to
edit the template Namespace try:
http://www.mediawiki.org/wiki/Extension:NamespaceHTML
Only use the second extension if you can secure the Namespace, and need more advanced
html functions.
Sent from my iPad
On Aug 25, 2014, at 1:47 AM, FxParlant <f-x.p(a)laposte.net> wrote:
Hi all,
I wanted to know if some experiences had been made to create a wiki
based on the Html5 "section" tag (and header).
Has someone tried to change the parser to allow edit section to be made
with a "<section>" tag ?
Can you share the way you tried and which difficulties you encountered?
My (ugly) try is at :
http://proj.wiki/index.php?title=Autocollant_je_m%27arr%C3%AAte_aux_passage…
Thank you
François
---
This email is free from viruses and malware because avast! Antivirus protection is
active.
http://www.avast.com
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la
protection avast! Antivirus est active.
http://www.avast.com