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 <[email protected]>
> To: Al Johnson <[email protected]>; MediaWiki announcements and site admin
> list <[email protected]>
> 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
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
>
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l