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

Tim Doyle tim at greenscourt.com
Sun Feb 19 16:33:38 UTC 2006


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>

Tim

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Tim Doyle
Sent: Sunday, February 19, 2006 10:20 AM
To: 'MediaWiki announcements and site admin list'
Subject: Re: [Mediawiki-l] Part of a page in another page


Another solution, which may or may not meet your needs is to use
<noinclude></noinclude> around the portion of the page which you do NOT want
to include on the front page. If you then include the whole page, only that
portion not within those tags will be displayed on the front page, but when
viewing the page directly, you'll see everything.

Tim

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Josiah Ritchie
Sent: Sunday, February 19, 2006 8:51 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Part of a page in another page


On 2/19/06, FxParlant <f-x.p at laposte.net> wrote:
> Hello Josiah,
>
> I'm pretty sure this could be achieved through a little extension.
>
> Tell us more how it would work.
> *if it is the first paragraph, then there is maybe three titles
> included...wouldn't you like better when you call a paragraph 
> "abstract" and this resumé is included in other page *do you want to 
> call the abstract, page by page, or a lot of them: just the page abc 
> or all the page linking to the current page.
>
> Beware in any case on the performance issues of page loading.

I'd like to call several abstracts to a front page. This would somewhat
emualate a newspaper where you would read a certain amount of an article on
the front to get you hooked and then it would take you to the full articly
via a link at the bottom. However, on the front page you'd have the option
of a number of articles in a number of subjects to catch the eye.

Ideally, I'm dreaming here, I'd be calling a certain number of words to the
front page. Maybe it could be an extension with syntax like [[PageName:##]]
where ## indicates the number of words or paragraphs. To get real fancy ##w
or ##p to indicate words or paragraphs respectively. Also, I'd not expect a
link to the full article to be automatically created at the end because I'd
want to handle that myself using custom text.

The reason I don't want to do this manually is because it seems to defeat
the purpose of a wiki if I have to change it in 2 places when I make
changes, though that is probably how we will accomplish this for now.

Thanks,
JSR/
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l




More information about the MediaWiki-l mailing list