Hello,
Is it possible to change a specific section of existing page using API? Is it possible to have seperate TOC for list of figures or list of tables?
Thanx in advance
2010/2/3 Herulee heramb.forums@googlemail.com:
Hello,
Is it possible to change a specific section of existing page using API?
Use the section parameter, see http://www.mediawiki.org/wiki/API:Edit_-_Create%26Edit_pages#Parameters . The section parameter is the number of the section to edit; if you need a TOC to decide on this number, you can grab one with action=parse, see http://www.mediawiki.org/wiki/API:Expanding_templates_and_rendering#parse .
Having a separate TOC automatically generated for images or tables is not possible with MediaWiki core: you'll need to maintain one by hand or find/write an extension for it.
Roan Kattouw (Catrope)
Thanx for the reply
Do you know hoe one can make the specific section noneditable
Roan Kattouw-2 wrote:
2010/2/3 Herulee heramb.forums@googlemail.com:
Hello,
Is it possible to change a specific section of existing page using API?
Use the section parameter, see http://www.mediawiki.org/wiki/API:Edit_-_Create%26Edit_pages#Parameters . The section parameter is the number of the section to edit; if you need a TOC to decide on this number, you can grab one with action=parse, see http://www.mediawiki.org/wiki/API:Expanding_templates_and_rendering#parse .
Having a separate TOC automatically generated for images or tables is not possible with MediaWiki core: you'll need to maintain one by hand or find/write an extension for it.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/5 Herulee heramb.forums@googlemail.com:
Thanx for the reply
Do you know hoe one can make the specific section noneditable
You can't lock down individual sections of pages with MediaWiki core; maybe there's an extension for that.
Roan Kattouw (Catrope)
can we lock down the whole page?
Roan Kattouw-2 wrote:
2010/2/5 Herulee heramb.forums@googlemail.com:
Thanx for the reply
Do you know hoe one can make the specific section noneditable
You can't lock down individual sections of pages with MediaWiki core; maybe there's an extension for that.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Yes, you can.
On Feb 5, 2010 6:20 AM, "Herulee" heramb.forums@googlemail.com wrote:
can we lock down the whole page?
Roan Kattouw-2 wrote:
2010/2/5 Herulee heramb.forums@googlemail.com:
Thanx for the re...
-- View this message in context: http://old.nabble.com/Section-editing-tp27435551p27466442.html
Sent from the WikiMedia API mailing list archive at Nabble.com.
__________________________________...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/lis...
Thx for the reply How can we do that?
John-569 wrote:
Yes, you can.
On Feb 5, 2010 6:20 AM, "Herulee" heramb.forums@googlemail.com wrote:
can we lock down the whole page?
Roan Kattouw-2 wrote:
2010/2/5 Herulee heramb.forums@googlemail.com:
Thanx for the re...
-- View this message in context: http://old.nabble.com/Section-editing-tp27435551p27466442.html
Sent from the WikiMedia API mailing list archive at Nabble.com.
__________________________________...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/lis...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On 05.02.2010, 14:43 Herulee wrote:
How can we do that?
By visiting http://www.mediawiki.org
Why don't you spend 5 minutes on reading the documentation instead of asking zillions of obvious questions?
ahh ok Thanx for the help
Sorry for posting some obvious questions
Max Semenik wrote:
On 05.02.2010, 14:43 Herulee wrote:
How can we do that?
By visiting http://www.mediawiki.org
Why don't you spend 5 minutes on reading the documentation instead of asking zillions of obvious questions?
-- Best regards, Max Semenik ([[User:MaxSem]])
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hello,
I am still confused about creating the section
does api.php?action=edit need to be used for creating page and also section?
e.g I want to create a page with the title "ABC" and want to add section "ABC1" and then subsection "ABC11" so if one eidt the page the contents of the page will be
==ABC1== ===ABC11===
So what are the steps
1. Will it create the empty page givin only 'title ' and not giving anything in the 'section' 2. Then seperately create a section in the page 3. Then subsection under esction
How would I creat subsection under section?
Herulee wrote:
ahh ok Thanx for the help
Sorry for posting some obvious questions
Max Semenik wrote:
On 05.02.2010, 14:43 Herulee wrote:
How can we do that?
By visiting http://www.mediawiki.org
Why don't you spend 5 minutes on reading the documentation instead of asking zillions of obvious questions?
-- Best regards, Max Semenik ([[User:MaxSem]])
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/9 Herulee heramb.forums@googlemail.com:
Hello,
I am still confused about creating the section
does api.php?action=edit need to be used for creating page and also section?
e.g I want to create a page with the title "ABC" and want to add section "ABC1" and then subsection "ABC11" so if one eidt the page the contents of the page will be
==ABC1== ===ABC11===
So what are the steps
- Will it create the empty page givin only 'title ' and not giving anything
in the 'section' 2. Then seperately create a section in the page 3. Then subsection under esction
How would I creat subsection under section?
You create sections by just inserting == Section name == in the text.
Roan Kattouw (Catrope)
Thanx for the reply
It means that putting section name in the text will create the section Is there any way to get numbers of that section after creating them?
and I dont need to put anything in the section..to create the page?
Roan Kattouw-2 wrote:
2010/2/9 Herulee heramb.forums@googlemail.com:
Hello,
I am still confused about creating the section
does api.php?action=edit need to be used for creating page and also section?
e.g I want to create a page with the title "ABC" and want to add section "ABC1" and then subsection "ABC11" so if one eidt the page the contents of the page will be
==ABC1== ===ABC11===
So what are the steps
- Will it create the empty page givin only 'title ' and not giving
anything in the 'section' 2. Then seperately create a section in the page 3. Then subsection under esction
How would I creat subsection under section?
You create sections by just inserting == Section name == in the text.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/9 Herulee heramb.forums@googlemail.com:
Thanx for the reply
It means that putting section name in the text will create the section Is there any way to get numbers of that section after creating them?
api.php?action=parse&page=Pagename&prop=sections will give you a list of sections and their numbers. The numbers are really just sequential, though, and start at 1.
and I dont need to put anything in the section..to create the page?
No, all you need to do is put == Section name == in the page. You can put the content in there as well while you're at it, of course.
Roan Kattouw (Catrope)
Thank you Roan
Is it the normal behaviour when There are lets say 3 sections on the page If I try to edit the first section with contents "editing first section" Then all the contents of the page are overwritten with this single line "editing first section" Headings of the section 1 also disappeared
If it is the normal behaviour then is there any way to edit only the contents of the specific section
Roan Kattouw-2 wrote:
2010/2/9 Herulee heramb.forums@googlemail.com:
Thanx for the reply
It means that putting section name in the text will create the section Is there any way to get numbers of that section after creating them?
api.php?action=parse&page=Pagename&prop=sections will give you a list of sections and their numbers. The numbers are really just sequential, though, and start at 1.
and I dont need to put anything in the section..to create the page?
No, all you need to do is put == Section name == in the page. You can put the content in there as well while you're at it, of course.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/11 Herulee heramb.forums@googlemail.com:
Thank you Roan
Is it the normal behaviour when There are lets say 3 sections on the page If I try to edit the first section with contents "editing first section" Then all the contents of the page are overwritten with this single line "editing first section" Headings of the section 1 also disappeared
If it is the normal behaviour then is there any way to edit only the contents of the specific section
Pass the section=3 parameter to edit the 3rd section. Note that the section header is part of the section: if you remove it, your section will get tacked onto the preceding section and the numbering will change.
Roan Kattouw (Catrope)
Thax for the reply Yes right to edit 3rd section pass section=3 parameter
But if I want to edit first section with some contents section=1 then all following section 2,3.. gets overwritten with whatever the contents I pass in text parameter of section = 1
So do I need to fetch the contents of that page before and inser the text under section 1 heading?
Roan Kattouw-2 wrote:
2010/2/11 Herulee heramb.forums@googlemail.com:
Thank you Roan
Is it the normal behaviour when There are lets say 3 sections on the page If I try to edit the first section with contents "editing first section" Then all the contents of the page are overwritten with this single line "editing first section" Headings of the section 1 also disappeared
If it is the normal behaviour then is there any way to edit only the contents of the specific section
Pass the section=3 parameter to edit the 3rd section. Note that the section header is part of the section: if you remove it, your section will get tacked onto the preceding section and the numbering will change.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Herulee wrote:
Thax for the reply Yes right to edit 3rd section pass section=3 parameter
But if I want to edit first section with some contents section=1 then all following section 2,3.. gets overwritten with whatever the contents I pass in text parameter of section = 1
So do I need to fetch the contents of that page before and inser the text under section 1 heading?
Heading of section 1 belong to section 1, so if you replace the section 1 with text which doesn't have the heading, you are removing the heading. That's normail. OTOH changing section 1 shouldn't remove text belonging to different sections.
2010/2/11 Platonides platonides@gmail.com:
OTOH changing section 1 shouldn't remove text belonging to different sections.
It will if section 2 happens to be a subsection of section 1.
Roan Kattouw (Catrope)
ahh Ok I got it I need to add section heading again while editing the section?
On Thu, Feb 11, 2010 at 4:36 PM, Roan Kattouw roan.kattouw@gmail.comwrote:
2010/2/11 Platonides platonides@gmail.com:
OTOH changing section 1 shouldn't remove text belonging to different sections.
It will if section 2 happens to be a subsection of section 1.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org