Template:Subst check bottom: Difference between revisions

m (1 revision)
 
m (1 revision)
 
(No difference)

Latest revision as of 20:33, 22 November 2012

This template must be substituted. Replace {{Subst check bottom}} with {{subst:Subst check bottom}}.

[edit] [history] [purge] Documentation icon Template documentation

Usage

Place this template and {{substchecktop}} onto the main template in the following manner.

{{{{{|safesubst:}}}substchecktop|[template pagename]|subst={{{subst|}}}}}

...template code...

{{{{{|safesubst:}}}substcheckbottom|subst={{{subst|}}}}}

This template, along with {{substchecktop}}, will check the main template for substitution and give an error message if it has been accidentally transcluded by having {{substchecktop}} placed above the main template code and this template placed below the main template code.

{{substchecktop}} takes in an input for the main template name as a parameter. This is shown above as [template pagename]. This parameter should be entered so that the default error message refers to the correct main template. This default error message can be optionally replaced by a custom error message by using the message parameter. This parameter accepts templates and it is recommended that a message template be used for long messages to keep the parameter value short. This template takes in an input for categories. This is so that unsubstituted versions of the main template can still categorise pages. This can be done by adding the name of the category to the category parameter. There is also a sort parameter to allow category sorting.

Both this template and {{substchecktop}} use subst={{{subst|}}} as one of the parameters. This allows optional transclusion for demonstration purposes by setting the subst parameter on the main template to nosubst.

Related templates

List of subst helper templates

es:plantilla:substchecktop

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis