[Mediawiki-l] Transcluding only initial portion of an article
Platonides
Platonides at gmail.com
Mon Oct 15 12:14:50 UTC 2007
Jack Eapen C wrote:
> Hi All,
>
> I want to display first para of an article on my home page box-featured
> article. Can I set some parameter like no. of characters or so, such
> that I can translude, say 100 chars from an article on the home page and
> then provide a "read more..." link?
>
> Regards,
No. Also, take into account that first 100 chars might not even make
sense, or be a Infobox.
On Wikipedias it's done manually by pasting on a template the first lines.
You could border the first article lines with <onlyinclude>
</onlyinclude> and transclude the article, but it's a bit intrusive.
More information about the MediaWiki-l
mailing list