Szablon:FileUrl: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
| [wersja nieprzejrzana] | [wersja nieprzejrzana] |
Test |
corrected page |
||
| Linia 1: | Linia 1: | ||
<includeonly>{{ # | <includeonly><!-- | ||
{{ | -->{{#vardefine: FilePathLen | {{#len: {{#explode: {{filepath: Wiki.png}} | b/bc/ }} }} }}<!-- length of the constant prefix | ||
-->{{#vardefine: FilePath | {{filepath: {{PAGENAME:{{{1}}}}} | {{{2|}}} }} }}<!-- base file path | |||
-->{{#vardefine: FilePath | {{#sub: {{#var: FilePath}} | {{#var: FilePathLen}} }} }}<!-- file path minus constant prefix | |||
-->{{#vardefine: FilePath | {{#explode: {{#var: FilePath}} | /revision }} }}<!-- file path minus constant prefix and CB suffix | |||
-->{{#if: {{{2|}}}<!-- | |||
-->| {{#vardefine: FilePath| thumb/{{#var: FilePath }}/{{{2}}}-{{anchorencode: {{PAGENAME: {{{1}}} }} }} }}<!-- | |||
-->}}<!-- | |||
-->{{#vardefine: FileUrl | {{#var: FilePath}}{{#if: {{{query|}}} | ?{{{query}}} }} }}<!-- | |||
-->{{ #ifexist: File:{{PAGENAME:{{{1}}}}} }}{{ #widget: FileUrl | url = {{#var: FileUrl}} }}</includeonly><noinclude> | |||
{{documentation}} | |||
<!-- Put categories/interwiki on the documentation page --> | <!-- Put categories/interwiki on the documentation page --> | ||