Page MenuHomePhabricator

Document a way to add a category to pages that directly transclude a template
Open, Needs TriagePublic

Description

If I have [[Template:Foo]] and in this template I have a parameter ({{{bar}}}) that I'm deprecating, it would be nice to have documentation on how to use template-foo to transclude [[Category:Pages using deprecated bar parameter in template:foo]] on pages that directly transclude {{Foo|bar=baz}}.

Event Timeline

Technical13 raised the priority of this task from to Needs Triage.
Technical13 updated the task description. (Show Details)
Technical13 subscribed.

So you implicitly state that using template-foo to transclude [[Category:Pages using deprecated bar parameter in template:foo]] on pages that directly transclude {{Foo|bar=baz}} is possible, am I right?

Where exactly would you expect to find such documentation?

I'm thinking MW:Help:Templates, MW:Help:Transclusion, or the page on MW wiki that explains what/how <includeonly>,<onlyinclude>, and <noinclude> are for/used.  I remember seeing it as being possible using a clever combination of those include tags, HTML comments, and/or <nowiki> tags but I don't remember exactly how or where I saw it.

Sent from Yahoo Mail on Android