Thanks for the link.
About wrapping unconditionally - well, I'd like to avoid it. I checked
over the codebase and for now it shouldn't be a problem, but who knows
what the future will bring :). (and BTW, adjacency rules like `.mbox +
.mbox` are more readable this way).
I've however prepared
Having two templates is the nicer solution, but you could just wrap them
unconditionally - being wrapped twice shouldn't be a problem.
FWIW there is a task for wrapping edit notices:
https://phabricator.wikimedia.org/T337640
___
Wikitech-l mailing list -
where you configure the editnotice
etc.).
Anyway, thanks for the answer.
Marcin
From: Thiemo Kreuz
Sent: Friday, November 29, 2024 3:11:21 PM
To: Wikitech-l
Subject: [Wikitech-l] Re: Checking if template is rendered outside page content
I don't think th
I don't think this is possible, sorry. Why not have a special template
for use on special pages? Making code more complicated just to avoid
"duplication" sounds like something we discuss in software development
all the time – and typically try to avoid.
The two templates can still share most of th