----- Original Message -----
From: <mediawiki-l-request(a)lists.wikimedia.org>
To: <mediawiki-l(a)lists.wikimedia.org>
Sent: Friday, December 21, 2012 2:00 PM
Subject: MediaWiki-l Digest, Vol 111, Issue 26
Send MediaWiki-l mailing list submissions to
mediawiki-l(a)lists.wikimedia.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
or, via email, send a message with subject or body 'help' to
mediawiki-l-request(a)lists.wikimedia.org
You can reach the person managing the list at
mediawiki-l-owner(a)lists.wikimedia.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MediaWiki-l digest..."
Today's Topics:
1. Re: Parser function to test if "this" page is being
transcluded? (Al Johnson)
----------------------------------------------------------------------
Message: 1
Date: Thu, 20 Dec 2012 20:34:17 -0800 (PST)
From: Al Johnson <alj62888(a)yahoo.com>
To: "mediawiki-l(a)lists.wikimedia.org"
<mediawiki-l(a)lists.wikimedia.org>
Subject: Re: [MediaWiki-l] Parser function to test if "this" page is
being transcluded?
Message-ID:
<1356064457.24150.YahooMailNeo(a)web163902.mail.gq1.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Thanks Boris!
________________________________
From: Boris Steipe <boris.steipe(a)utoronto.ca>
To: Al Johnson <alj62888(a)yahoo.com>
Cc: MediaWiki announcements and site admin list
<mediawiki-l(a)lists.wikimedia.org>
Sent: Thursday, December 20, 2012 5:03 PM
Subject: Re: [MediaWiki-l] Parser function to test if "this" page is being
transcluded?
Then would something like (untested):
? {{#ifeq: {{PAGENAME}} | <your source page> | |<span
style="display:none;">}} ...
? {{#ifeq: {{PAGENAME}} | <your source page> | |</span>}}
work for you?
B.
On 2012-12-20, at 6:54 PM, Al Johnson wrote:
Yes.
From: Boris Steipe <boris.steipe(a)utoronto.ca>
To: Al Johnson <alj62888(a)yahoo.com>om>; MediaWiki announcements and site
admin list <mediawiki-l(a)lists.wikimedia.org>
Sent: Thursday, December 20, 2012 4:49 PM
Subject: Re: [MediaWiki-l] Parser function to test if "this" page is
being transcluded?
... but you realize it would be visible both in the WikiSource and the
HTML source of the page, yes?
B.
On 2012-12-20, at 6:41 PM, Al Johnson wrote:
I know I'm asking some off-the-wall
questions, but I'm trying to do
something special.? Thanks ahead of time for your patience /^)
I would like to conditionally wrap a section of a page with a <span>
tag that sets the CSS style to hidden when that section is being
transcluded.? So, I want the text to be transcluded, but not visible to
the user.
Thanks,
Al
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
------------------------------
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
End of MediaWiki-l Digest, Vol 111, Issue 26
********************************************