Last modified: 2012-04-16 09:16:14 UTC
To make it easier to control what gets transcluded, it could be interesting to have an additional tag "<transcludeonly>". Sample (1) One could create a template: asdf asdf <transcludeonly>123</transcludeonly> asdf asdf When transcluded, this would display: 123
Use <includeonly></includeonly>
Not really, a template asdf asdf <includeonly>123</includeonly> asdf asdf renders as: asdf asdf 123 asdf asdf
"<onlyinclude>123</onlyinclude> asdf asdf" gives "123" when transcluded. This seems to be exactly what you want.
Related documentation about it: http://www.mediawiki.org/wiki/Includeonly#Control_template_inclusion
Thanks Maarten, I thought this somehow existed, but couldn't find it. Good to read that p858snake plans to document it. I would appreciate if he would write this differently though. I find his posts in this bug highly confusing.
On the other hand, it would be useful to have some tags to allow stuff to be included only when the template is transcluded, or only when substituted (and the inverse, of course), but that would be a different bug.