Template:Validextension/doc: Difference between revisions
Template page
More actions
m format |
m +cat |
||
| Line 8: | Line 8: | ||
<nowiki>{{#invoke:File|woExtension|file=</nowiki>''filename''<nowiki>}}</nowiki><br> | <nowiki>{{#invoke:File|woExtension|file=</nowiki>''filename''<nowiki>}}</nowiki><br> | ||
<nowiki>{{#invoke:FileName|removeExtension|</nowiki>''filename''<nowiki>}}</nowiki><br> | <nowiki>{{#invoke:FileName|removeExtension|</nowiki>''filename''<nowiki>}}</nowiki><br> | ||
<small>or the result of such a function</small> | :<small>or the result of such a function</small> | ||
|2stat=required | |2stat=required | ||
|3=3 | |3=3 | ||
|3d="Extension" when the valid extension should be returned ("e" is enough) | |3d="Extension" when the valid extension should be returned ("e" is enough) | ||
|3stat=optional- | |3stat=optional- | ||
|4=4 | |||
|4d=default value for extension to be returned when invalid extension | |||
|4stat=optional- | |||
|name=Validextension | |name=Validextension | ||
| Line 19: | Line 22: | ||
|usergroup=all | |usergroup=all | ||
|i18n-desc=The template does not generate any localizable text. | |i18n-desc=The template does not generate any localizable text. | ||
|i18n-method=- | |||
|usage-notes=As long the module does not distinguish between valid extensions and other cruft, this template can be used to verify the output of the module. | |usage-notes=As long the module does not distinguish between valid extensions and other cruft, this template can be used to verify the output of the module. | ||
}} | }} | ||