[Mediawiki-l] Part of a page in another page

Josiah Ritchie josiah.ritchie at gmail.com
Mon Feb 20 16:29:46 UTC 2006


On 2/19/06, Tim Doyle <tim at greenscourt.com> wrote:
> To add to my reply, you could also create a template, perhaps called
> "abstract", and call it from the main page like this:
>
> {{abstract|page title here}}
>
> The page "Template:Abstract" might contain something like this:
>
> <!-- Print the article title as a header and make it a link to the full
> article -->
> == [[$1]] ==
> <!-- Include the article, only displaying the portion not included in the
> <noinclude> section -->
> {{:$1}}
>
> <!-- Provide a right-aligned, non-printable link to the full article -->
> <div align="right" class="noprint">
> '''[[$1|Read more...]]'''
> </div>

I'll have to play with that and see how it works. I can't say I
understand exactly what is happening. :-) It sounds like it may fit
the need just right.

Thanks,
JSR/


More information about the MediaWiki-l mailing list