[Mediawiki-l] Page emebed & section title

Giuseppe Briotti g.briotti at mclink.it
Mon Oct 8 16:03:13 UTC 2007


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&section=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?

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



More information about the MediaWiki-l mailing list