SUBST.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid var(--border-color-base,#a2a9b1);background-color:#ecfcf4;color
SUBST
This template may have no transclusions. This is because it is used when templates are substituted, often inside <includeonly>...</includeonly> tags. This template's name appears in the wikitext of 2,000+ pages. |
This template can be used in conditional processing in other templates to detect substitutions.
If you use Module:Unsubst, you need not use this template.
If you put <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly> into a template, it will expand into one of the following, depending how the template is being viewed.
Using this template differently may yield different results; the above is the most universal way.
if mw.isSubsting() then
-- substituting: "SUBST"
elseif mw.getCurrentFrame():getParent():getTitle() == mw.title.getCurrentTitle().fullText then
-- viewed directly: ""
else
-- transclusion: "{{subst:substcheck}}"
end
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.