Template:Filelistentry: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
(Add hidden sorting index for filelists with directory trees)
(Only nowrap filename if there's an indent)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
|-
|-
{{#if: {{{no|}}} | {{!}} {{{no}}} |}}
{{#if: {{{no|}}} | {{!}} {{{no}}} |}}
{{#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}}}
{{#if: {{{i|}}} | {{!}}data-sort-value="{{{i}}}"|}}| {{#if: {{{indent|}}} |<span style="padding-left: {{#expr: 1.4 * {{{indent}}}}}em"> </span> {{nowrap | {{#if: {{{icon|}}} | {{icon|{{{icon}}}}} | {{icon|file}} }} {{{filename}}} }}| {{#if: {{{icon|}}} | {{icon|{{{icon}}}}} | {{icon|file}} }} {{{filename}}} }}
| {{{type}}}
{{#if: {{{game|}}} |{{!}}  {{{game}}}  |}}
{{#if: {{{date|}}} | {{!}} {{{date}}} |}}
| {{#if: {{{typebg|}}} | style{{=}}"background-color: {{colorbg| {{{type}}} }}" {{!}} |}} {{{type}}}
|data-sort-value="{{{size}}}"| {{nowrap | {{#ifexpr: {{{size}}}>=1024 |{{Filesize|{{{size}}}}} | {{{size}}} bytes }} }}  
{{#if: {{{date|}}} | {{!}} {{nowrap| {{{date}}} }} |}}
| <small title="CRC-32: {{{crc32}}}&#13;MD5: {{{md5}}}">{{{sha1}}}</small>
|data-sort-value="{{{size}}}"| {{#if: {{{size|}}}| {{nowrap | {{#ifexpr: {{{size}}}>=1024 |{{Filesize|{{{size}}}}} | {{{size}}} bytes }} }} |}}
{{#if: {{{comment|}}} | {{!}} {{{comment}}} |}}
| <small title="CRC-32: {{{crc32}}}&#13;MD5: {{{md5}}}{{#if: {{{shortsha1|}}} | &#13;SHA1: {{{sha1}}} | }}">{{#if: {{{shortsha1|}}} | {{{shortsha1}}} | {{{sha1}}} }}</small>

Latest revision as of 12:12, May 2, 2016

|-

| {{{filename}}}

| {{{type}}}

|data-sort-value="{{{size}}}"|

| {{{sha1}}}