From Fedora Project Wiki

(move the tempdoc contents here)
 
(clean up the examples to use {{code)
Line 1: Line 1:
This template is intended to be '''SUBSTITUTED''' (not transcluded) into [[Common_bugs]] pages at the time of their initial creation, while the release they document is still a pre-release. The use of <nowiki><includeonly>safesubst:</includeonly></nowiki> is to make nested substitution work correctly: the specified templates will not be expanded when the template page is saved or viewed, and will be transcluded instead of substituted if the template is (incorrectly) transcluded rather than substituted. This is as documented on [https://en.wikipedia.org/wiki/Help:Substitution#Recursive_substitution Mediawiki's substitution page]. The higher-level FedoraVersion and FedoraVersionNumber templates are not used here as they are not designed to work with substitution - they nest other templates using transclusion, so when substituted, the entire nested template is dumped into the page, which looks messy and does not result in the version being static, as intended. Usage: <nowiki>{{subst:Common_bugs_header_prerelease}}</nowiki> at the top of a common bugs page.
This template is intended to be '''SUBSTITUTED''' (not transcluded) into [[Common_bugs]] pages at the time of their initial creation, while the release they document is still a pre-release. The use of {{code|<nowiki><includeonly>safesubst:</includeonly></nowiki>}} is to make nested substitution work correctly: the specified templates will not be expanded when the template page is saved or viewed, and will be transcluded instead of substituted if the template is (incorrectly) transcluded rather than substituted. This is as documented on [https://en.wikipedia.org/wiki/Help:Substitution#Recursive_substitution Mediawiki's substitution page]. The higher-level FedoraVersion and FedoraVersionNumber templates are not used here as they are not designed to work with substitution - they nest other templates using transclusion, so when substituted, the entire nested template is dumped into the page, which looks messy and does not result in the version being static, as intended. Usage: {{code|<nowiki>{{subst:Common_bugs_header_prerelease}}</nowiki>}} at the top of a common bugs page.

Revision as of 01:40, 10 March 2015

This template is intended to be SUBSTITUTED (not transcluded) into Common_bugs pages at the time of their initial creation, while the release they document is still a pre-release. The use of <includeonly>safesubst:</includeonly> is to make nested substitution work correctly: the specified templates will not be expanded when the template page is saved or viewed, and will be transcluded instead of substituted if the template is (incorrectly) transcluded rather than substituted. This is as documented on Mediawiki's substitution page. The higher-level FedoraVersion and FedoraVersionNumber templates are not used here as they are not designed to work with substitution - they nest other templates using transclusion, so when substituted, the entire nested template is dumped into the page, which looks messy and does not result in the version being static, as intended. Usage: {{subst:Common_bugs_header_prerelease}} at the top of a common bugs page.