Vorlage:Subst check top/Doku: Unterschied zwischen den Versionen
imported>Thesevenseas (Optimised Code) |
imported>Thesevenseas (Added Links) |
||
Zeile 20: | Zeile 20: | ||
=== See also === | === See also === | ||
* [[Template:Ifsubst|Ifsubst]] | |||
* [[Template:Issubst|Issubst]] | |||
* [[Template:Require subst|Require subst]] | |||
*{{#ifeq: {{BASEPAGENAME}} | Substchecktop || [[Template:Substchecktop|Substchecktop]] }} | *{{#ifeq: {{BASEPAGENAME}} | Substchecktop || [[Template:Substchecktop|Substchecktop]] }} | ||
*{{#ifeq: {{BASEPAGENAME}} | Substcheckbottom || [[Template:Substcheckbottom|Substcheckbottom]] }} | *{{#ifeq: {{BASEPAGENAME}} | Substcheckbottom || [[Template:Substcheckbottom|Substcheckbottom]] }} | ||
Zeile 25: | Zeile 28: | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Wikipedia metatemplates]] | |||
</includeonly> | </includeonly> |
Version vom 2. August 2010, 00:40 Uhr
Dies ist eine nachgeordnete Seite der Dokumentation von Vorlage:Subst check top. Sie enthält Informationen zur Verwendung, Kategorisierung und zu anderem Inhalt, der nicht Bestandteil der originalen Vorlage-Seite ist. |
Usage
Place these templates onto the main template in the following manner.
{{{{{|safesubst:}}}substchecktop|[template pagename]|subst={{{subst|}}}}}
...template code...
{{{{{|safesubst:}}}substcheckbottom|subst={{{subst|}}}}}
These templates will the main template for substitution and give an error message if it has been accidentally transcluded. {{substchecktop}} is placed above the template code and {{substcheckbottom}} is placed below the 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 refer 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. These parameters are not used in {{substcheckbottom}}.
Both these templates 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 any value.
See also