Board Thread:Support Requests - Getting Technical/@comment-27007907-20191028212242

I'm trying to make it so a specific element is not included if it's in a page that is transcluded to a specific page.

Let's say that Page1 has, amongst other content, a template (Template1, for this example) that displays a div that says. Page2 has the contents of Page1 transcluded onto it. I don't want that div to appear on Page2.

Here's the catch: I know it would be easiest to use to accomplish this, but I'm trying to make Template1 as user friendly as possible. I don't want users to have to remember to wrap Template1 in tags if I can accomplish the same thing behind the scenes within Template1.

Right now I have, but that doesn't seem to work.

Is such a thing possible? Even better, is it possible without css (so it doesn't break on mobile)? Or should I just consign myself to needing to apply tags if a user uses that template and forgets. 