Hi Jiuning,

I tried both of the markup that you pasted below.

The first one works if you use the following exactly as it appears below:
*<collapsmi ExpandByDefault="false">text to be collapsed ...
</collapsmi>

i.e. without a newline after the starting collapsmi tag.

A problem free way to do this would be as follows:
<ul>First list<li> <collapsmi ExpandByDefault="false">first text in the
list to be collapsed ...
</collapsmi>
<li> <collapsmi ExpandByDefault="false">second text in the list to be
collapsed ...
</collapsmi>
<li> <collapsmi ExpandByDefault="false">third text in the list to be
collapsed ...
</collapsmi>
</ul>

<ul>Second list<li> <collapsmi ExpandByDefault="false">first text in the
list to be collapsed ...
</collapsmi>
<li> <collapsmi ExpandByDefault="false">second text in the list to be
collapsed ...
</collapsmi>
<li> <collapsmi ExpandByDefault="false">third text in the list to be
collapsed ...
</collapsmi>
</ul>

You can also have an ordered list if you use <ol>,</ol> instead of
<ul>,</ul>

The second one also works fine if you paste it exactly as it appears below:
This is a test. The result is <collapsmi ExpandByDefault="false">text to be
collapsed ...
</collapsmi> Test at the ending ...

Please make sure you do not input a newline after the collapsmi begin tag.

Regards,
Sami

On 9 January 2012 01:47, Jiuning Hu <h...@purdue.edu> wrote:

> Hi Sami,
>
> I have some questions about your extension.
>
> If I input the following in the wiki edit window,
> * <collapsmi ExpandByDefault="false">
> text to be collapsed ...
> </collapsmi>
>
> What is finally displayed on the page is
> * [+] Expand
> text to be collapsed ...
>
> Looks like anything before <collapsmi ExpandByDefault="false"> will kill
> the functioning of the extension.
>
> Also, if I type the following:
> This is a test. The result is <collapsmi ExpandByDefault="false"> text to
> be collapsed ... </collapsmi> Test at the ending ...
>
> It is displayed as
>
> This is a test
> . The result is [+] Expand
> Test at the ending ...
> There is a dot appeared there and also those two unwanted line breaks.
>
> Do you have any idea of how to fix these? Thanks.
>
> Jiuning Hu
> --
> ECE Graduate Student, Purdue University
>
>
>
> On Sun, Jan 8, 2012 at 6:59 PM, Jiuning Hu <h...@purdue.edu> wrote:
>
> > Hi Sami,
> >
> > Thanks for letting me know your extension. It very good. But, it looks
> > that the browser would load the whole page rather than section by section
> > even I use your extension.
> >
> > Jiuning Hu
> > --
> > ECE Graduate Student, Purdue University
> >
> >
> >
> >
> > On Sun, Jan 8, 2012 at 6:07 AM, Sami Islam <sami_is...@hotmail.com>
> wrote:
> >
> >> Hello Jiuning,
> >>
> >> I am not sure if you can use the extension Collapsmi to do that, but you
> >> can give it a try.
> >> Regards,
> >> Sami
> >>
> >> On 7 January 2012 22:41, Jiuning Hu <hujiun...@gmail.com> wrote:
> >>
> >> > Hello All,
> >> >
> >> > Is there any extension or gadget that can implement "Display/render
> only
> >> > one section upon click the table of content of a long page?"
> >> >
> >> > This is quite useful. For example, for long article with many LaTeX
> >> > equations, when using mathjax to do equation rendering, it will take
> >> quite
> >> > long time to finish rendering the whole page. So, if the long article
> >> can
> >> > be displayed/rendered section by section, it will manage the rendering
> >> > resource and time more properly if people are trying to read that long
> >> page
> >> > section by section.
> >> >
> >> > I know long article can be split into short pages and then gathering
> >> them
> >> > by linking. But this is not very convenient.
> >> >
> >> > Thanks!
> >> > _______________________________________________
> >> > MediaWiki-l mailing list
> >> > MediaWiki-l@lists.wikimedia.org
> >> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >> >
> >> >
> >> _______________________________________________
> >> MediaWiki-l mailing list
> >> MediaWiki-l@lists.wikimedia.org
> >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >>
> >
> >
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to