Vorlage:Subst check bottom

Aus Wikivoyage

Diese Vorlage sollte substituiert werden. Bitte ersetze {{Subst check bottom}} durch {{subst:Subst check bottom}} (inklusiver möglicher Parameter).

Dokumentation für die Vorlage {{Subst check bottom}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]


Usage

Place this template and {{subst check top}} onto the main template in the following manner.

{{{{{|safesubst:}}}subst check top|[template pagename]|subst={{{subst|}}}}}

...template code...

{{{{{|safesubst:}}}subst check bottom|subst={{{subst|}}}}}

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

{{subst check top}} 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 {{subst check top}} 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.

Verwandte Vorlagen

Liste von Substitutions-Hilfsvorlagen
  • {{require subst}}: Gibt eine Fehlermeldung aus, wenn eine Vorlage nicht substituiert wird.
    • {{subst check top}}、{{subst check bottom}}: Gleicher Zweck, aber als Paar verwendet.
    • {{subst only}}: Hinweistext, für obige Vorlagen, der um eine Vorlagenersetzung bittet.
    • {{nosubst}}: Das Gegenteil {{subst only}}. Bitte darum, nicht zu ersetzen.
    • {{added by substitution}}: Setzt in einer Vorlegendokumentation einen Hinweis, dass die Vorlage nicht direkt eingebunden wird, sondern durch Ersetzung mittels einer anderen Vorlage in den Artikel aufgenommen wird.
  • {{issubst}}: Gibt ein yes zurück, wenn eine Vorlage bei der Einbindung nicht ersetzt wurde.
  • {{ifsubst}}: Verzweigt die Abarbeitung, je nachdem, ob ersetzt wurde oder nicht.
Hinweise