Template:File extension/doc
Appearance
This is a documentation subpage for Template:File extension. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage
[edit]Get the extensions of the parameter:
- 1 the input. Optional. Defaults to the root page name, only in File, Index or Page namespace.
Code | Result |
---|---|
{{File extension|Filename.pdf}}
|
|
{{File extension|Filename.djvu}}
|
djvu |
{{File extension|Filename.foobar.djvu}}
|
djvu |
{{File extension|Filename}}
|
|
{{File extension|File:Filename.pdf}}
|