Template:Filelistentry: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
(Add proper sort value for file sizes)
(Add hidden sorting index for filelists with directory trees)
Line 1: Line 1:
|-
|-
{{#if: {{{no|}}} | {{!}} {{{no}}} |}}
{{#if: {{{no|}}} | {{!}} {{{no}}} |}}
| {{#if: {{{indent|}}} |<span style="padding-left: {{#expr: 1.4 * {{{indent}}}}}em"> </span>|}}{{#if: {{{icon|}}} | {{icon|{{{icon}}}}} | {{icon|file}} }} {{{filename}}}
{{#if: {{{i|}}} | {{!}}data-sort-value="{{{i}}}"|}}| {{#if: {{{indent|}}} |<span style="padding-left: {{#expr: 1.4 * {{{indent}}}}}em"> </span>|}}{{#if: {{{icon|}}} | {{icon|{{{icon}}}}} | {{icon|file}} }} {{{filename}}}
| {{{type}}}
| {{{type}}}
{{#if: {{{date|}}} | {{!}} {{{date}}} |}}
{{#if: {{{date|}}} | {{!}} {{{date}}} |}}
|data-sort-value="{{{size}}}"| {{nowrap | {{#ifexpr: {{{size}}}>=1024 |{{Filesize|{{{size}}}}} | {{{size}}} bytes }} }}  
|data-sort-value="{{{size}}}"| {{nowrap | {{#ifexpr: {{{size}}}>=1024 |{{Filesize|{{{size}}}}} | {{{size}}} bytes }} }}  
| <small title="CRC-32: {{{crc32}}}&#13;MD5: {{{md5}}}">{{{sha1}}}</small>
| <small title="CRC-32: {{{crc32}}}&#13;MD5: {{{md5}}}">{{{sha1}}}</small>

Revision as of 23:41, April 8, 2016

|-

| {{{filename}}} | {{{type}}}

|data-sort-value="{{{size}}}"| Expression error: Unrecognized punctuation character "{". | {{{sha1}}}