- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Pass: Difference between revisions
Jump to navigation
Jump to search
imported>Bbb23sucks No edit summary |
imported>Bbb23sucks No edit summary |
||
Line 5: | Line 5: | ||
Returns first argument with no modification. It can be used to remove templates with a simple replace command. Example by replace "<nowiki>{{SomeTemplate|SomeContent}}</nowiki>" with "<nowiki>{{</nowiki>'''subst:'''<nowiki>pass|SomeContent}}</nowiki>", it will become "SomeContent" when saved. | Returns first argument with no modification. It can be used to remove templates with a simple replace command. Example by replace "<nowiki>{{SomeTemplate|SomeContent}}</nowiki>" with "<nowiki>{{</nowiki>'''subst:'''<nowiki>pass|SomeContent}}</nowiki>", it will become "SomeContent" when saved. | ||
Note: In some specific cases, the replacement will not occur (see [https://phabricator.wikimedia.org/T4700 here] for more information). In this case, just change "subst:pass" to "pass" after the first edit. | Note: In some specific cases, the replacement will not occur (see [https://phabricator.wikimedia.org/T4700 here] for more information). In this case, just change "subst:pass" to "pass" after the first edit.</noinclude> |
Revision as of 13:36, 4 December 2023
{{{1}}}
Usage
Returns first argument with no modification. It can be used to remove templates with a simple replace command. Example by replace "{{SomeTemplate|SomeContent}}" with "{{subst:pass|SomeContent}}", it will become "SomeContent" when saved.
Note: In some specific cases, the replacement will not occur (see here for more information). In this case, just change "subst:pass" to "pass" after the first edit.