Last modified: 2011-03-13 18:06:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13361, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11361 - Include path for templates
Include path for templates
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-16 15:36 UTC by Bernhard Fastenrath
Modified: 2011-03-13 18:06 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bernhard Fastenrath 2007-09-16 15:36:44 UTC
Include path for templates: A set of pages (e.g. a Wikibook or Wikiversity course) may share the same local templates. It is currently not possible to make the required templates sub-pages of one page and to allow the other pages to access them conveniently.

Example:
A page "Mentoring Handbook/Chapter 1" would have refer to "Mentoring Handbook/LocalTemplate"
instead of setting INCLUDE_PATH="Mentoring Handbook/" and referring just to "LocalTemplate".
Comment 1 Gurch 2007-09-16 22:00:40 UTC
You can back up a subpage level by adding two periods (..) to the front of the title -- so adding {{../LocalTemplate}} to [[Mentoring Handbook/Chapter 1]] would transclude [[Mentoring Handbook/LocalTemplate]].

Does this solve your problem?
Comment 2 Bernhard Fastenrath 2007-09-16 22:52:45 UTC
It would solve my problem, but both {{:../quote}} and {{../quote}} fail to include my template.
Comment 3 Mike.lifeguard 2007-12-09 12:42:21 UTC
There's no need for local templates at all. Put them in the Template namespace; *that's what it's for*. Alternatively, use the full path: {{Mentoring Handbook/LocalTemplate}}. I suspect the developers will WONTFIX this since this is a request for pointless functionality (if I'm understanding the request properly), but I'll let them handle the fields.
Comment 4 Brion Vibber 2007-12-18 02:26:01 UTC
A 'template path' of this sort leads to obvious problems with conflicts; eg ordering, where does the link point, etc. We have similar issues already with images and shared repositories, but in a much more restricted case.

I'd tend to agree for now that just using the full name of the template should be quite sufficient.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links