Page MenuHomePhabricator

Category suppression in template inclusion
Closed, ResolvedPublic

Description

Author: flamurai

Description:
Template inclusion should be extended to allow category suppression. There are
certain situations, such as including a template on a talk page or Wikipedia
namespace page where you don't want that page to wind up in the categories
defined by the template. The most logical way to do that would be to borrow the
leading colon notation from the Category tags.

For example, let's say I wanted to tell someone on a talk page about the GFDL
template and display it as an example. I obviously don't want the talk page to
wind up in Category:GFDL Images, but there's no way to avoid this. I feel that
the most natural way to do this based on the current wiki syntax would be:

{{:GFDL}}

This would suppress any category inclusion in the template.


Version: unspecified
Severity: enhancement

Details

Reference
bz1576
TitleReferenceAuthorSource BranchDest Branch
update dockerfile-frontend image tagrepos/releng/buildkit!61jeltoupdate-dockerfile-frontendwmf/v0.12
fix BUILD_VARIANT for dockerfile image buildrepos/releng/buildkit!60jeltofix-build-variantwmf/v0.12
fix syntax in buildkit Dockerfilerepos/releng/buildkit!59jeltofix-dockerfile-syntax-buildkitwmf/v0.12
fix syntax in dockerfile-frontend Dockerfilerepos/releng/buildkit!58jeltofix-dockerfile-syntaxwmf/v0.12
manage dockerfile trusted runners in add-project.py scriptrepos/releng/gitlab-trusted-runner!66jeltomanage-dockerfile-runnersmain
add Trusted Dockerfile Runner types to test and prod environmentrepos/releng/gitlab-settings!59jeltoadd-dockerfile-runnersmain
add CI pipeline for dockerfile-frontendrepos/releng/buildkit!55jeltoadd-ci-dockerfilewmf/v0.12
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:12 PM
bzimport set Reference to bz1576.
bzimport added a subscriber: Unknown Object (MLST).

rowan.collins wrote:

I know bug 835 is pretty messy in terms of comments, but it is the same issue, I
promise.

Also, a leading colon wouldn't be a good choice for this, because it already has
a meaning wrt template inclusions: {{foo}} includes [[Template:Foo]], so you
have to type {{:foo}} if you want to include just plain [[Foo]] (":" meaning
"main namespace" in the same way that "Talk:" means "discussion namespace").

*** This bug has been marked as a duplicate of 835 ***