Vorlage:Subst check top/Doku: Unterschied zwischen den Versionen

Updated Documentation
imported>Thesevenseas
(Optimised Text)
imported>Thesevenseas
(Updated Documentation)
Zeile 16: Zeile 16:
{{#ifeq: {{BASEPAGENAME}} | Substchecktop | This template | {{tl|substchecktop}} }} takes in an input for the main template name as a parameter. This is shown above as <code><nowiki>[template pagename]</nowiki></code>. 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. {{#ifeq: {{BASEPAGENAME}} | Substcheckbottom | This template | {{tl|substcheckbottom}} }} does not use these parameters.
{{#ifeq: {{BASEPAGENAME}} | Substchecktop | This template | {{tl|substchecktop}} }} takes in an input for the main template name as a parameter. This is shown above as <code><nowiki>[template pagename]</nowiki></code>. 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. {{#ifeq: {{BASEPAGENAME}} | Substcheckbottom | This template | {{tl|substcheckbottom}} }} does not use these parameters.


Both {{#switch: {{BASEPAGENAME}} | Substchecktop=this template and {{tl|substcheckbottom}} | Substcheckbottom=this template and {{tl|substchecktop}} | #default=these templates }} use <code><nowiki>subst={{{subst|}}}</nowiki></code> as one of the parameters. This allows optional transclusion for demonstration purposes by setting the subst parameter on the main template to any value.
Both {{#switch: {{BASEPAGENAME}} | Substchecktop=this template and {{tl|substcheckbottom}} | Substcheckbottom=this template and {{tl|substchecktop}} | #default=these templates }} use <code><nowiki>subst={{{subst|}}}</nowiki></code> as one of the parameters. This allows optional transclusion for demonstration purposes by setting the subst parameter on the main template to nosubst.


=== See also ===
=== See also ===
Anonymer Benutzer