Editing Help:Substitution
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision
Your text
Line 202:
Line 202:
== Limitation == == Limitation ==
− Substitution is not available inside {{tag|ref}} and {{tag|gallery}} tags. If you write {{tnull|subst:foo}}, it is not substituted nor transcluded, but remains as-is (it's a known bug, see [[https://phabricator.wikimedia.org/T4700 phab:T4700] and [https://gerrit.wikimedia.org/r/#/c/272916/ gerrit:272916] for current status). + Substitution is not available inside {{tag|ref}} and {{tag|gallery}} tags. If you write {{tnull|subst:foo}}, it is not substituted nor transcluded, but remains as-is (it's a known bug, see {{phab|T4700}} and [https://gerrit.wikimedia.org/r/#/c/272916/ gerrit:272916] for current status).
However it is possible to bypass this limitation by using the magic word #tag. If you write, for instance, {{tnull|safesubst:<nowiki>#</nowiki>tag:ref|content of the reference}}, the ''content of the reference'' will be substituted and the {{tnull|<nowiki>#</nowiki>tag:ref<nowiki>|</nowiki>...}} will be replaced with {{tag|ref}}. A more concrete example: However it is possible to bypass this limitation by using the magic word #tag. If you write, for instance, {{tnull|safesubst:<nowiki>#</nowiki>tag:ref|content of the reference}}, the ''content of the reference'' will be substituted and the {{tnull|<nowiki>#</nowiki>tag:ref<nowiki>|</nowiki>...}} will be replaced with {{tag|ref}}. A more concrete example:
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 202: | Line 202: | ||
== Limitation == | == Limitation == | ||
− | Substitution is not available inside {{tag|ref}} and {{tag|gallery}} tags. If you write {{tnull|subst:foo}}, it is not substituted nor transcluded, but remains as-is (it's a known bug, see | + | Substitution is not available inside {{tag|ref}} and {{tag|gallery}} tags. If you write {{tnull|subst:foo}}, it is not substituted nor transcluded, but remains as-is (it's a known bug, see {{phab|T4700}} and [https://gerrit.wikimedia.org/r/#/c/272916/ gerrit:272916] for current status). |
However it is possible to bypass this limitation by using the magic word #tag. If you write, for instance, {{tnull|safesubst:<nowiki>#</nowiki>tag:ref|content of the reference}}, the ''content of the reference'' will be substituted and the {{tnull|<nowiki>#</nowiki>tag:ref<nowiki>|</nowiki>...}} will be replaced with {{tag|ref}}. A more concrete example: | However it is possible to bypass this limitation by using the magic word #tag. If you write, for instance, {{tnull|safesubst:<nowiki>#</nowiki>tag:ref|content of the reference}}, the ''content of the reference'' will be substituted and the {{tnull|<nowiki>#</nowiki>tag:ref<nowiki>|</nowiki>...}} will be replaced with {{tag|ref}}. A more concrete example: |