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