Giuseppe Briotti wrote:
Hi all!
Q1:
I have a PageA with two small section. Say:
===Title 1=== yadayadayadayadayadayadayadayadayada
===Title 2=== yadayadayadayadayadayadayadayadayada
Then I embedded this page in PageB (that hasn't any section) using the syntax {{:PageA}}.
It works, (moreover, I can have for PageB a TOC accordingly if I place more sections in PageA), but with a strange (?) effect on the [Edit] link of the section originally in PageA.
In fact when I click on the Edit, I obtain such error message: "You tried to edit a section that doesn't exist. Since there is no section 1, there's no place to save your edit." Looking at the link related to edit, it states: http://www.mysite.it/wiki/index.php?title=PageB&action=edit%C2%A7ion=1
Probably this is an expected behaviour or I miss something or I made a page embedding with wrong instruments...
Any hint? A page embedding best practice?
Are you using an old mediawiki version? It's a long time i haven't seen this. Now it should point you to edit PageA section 1. The reason why it fails is simply. By embedding page A in B, it gives two new sections, which are counted for the edit link. However, when you edit http://www.mysite.it/wiki/index.php?title=PageB&action=edit%C2%A7ion=1 it searches the content of the first section on that source (you can play with the section number) so transcluded sections could make you edit a section different than the expected, or -as in your case- try to edit an inexistent one.
Q2: if I embed a PageC with no section in PageD, I embed the full page content (of course, depending on noinclude, includeonly tags if are). What I must do, if I would like the PageC title as section title of PageD (i.e. mebedding the PageC title also)?
Thanks in advance
Giuseppe