Template:Filename to sort key: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
{{Filename to sort key| {{PAGENAME}} }} | {{Filename to sort key| {{PAGENAME}} }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude><includeonly>{{#switch: {{#len: {{#explode: {{#explode: {{#explode: {{#explode: {{#explode: {{#explode: {{#explode: {{{1}}} |,|1}} |r|0}} |v|0}} |a|0}} |b|0}} |-|0}} |.|0}} }} | ||
{{#switch: {{#len: {{#explode: {{#explode: {{#explode: {{#explode: {{#explode: {{#explode: {{#explode: {{{1}}} |,|1}} |r|0}} |v|0}} |a|0}} |b|0}} |-|0}} |.|0}} }} | |||
| 1 = {{#explode:{{{1}}}|,|0}},00{{#explode:{{{1}}}|,|1}} | | 1 = {{#explode:{{{1}}}|,|0}},00{{#explode:{{{1}}}|,|1}} | ||
| 2 = {{#explode:{{{1}}}|,|0}},0{{#explode:{{{1}}}|,|1}} | | 2 = {{#explode:{{{1}}}|,|0}},0{{#explode:{{{1}}}|,|1}} | ||
| {{{1}}} | | {{{1}}} | ||
}} | }}</includeonly> |
Latest revision as of 15:05, 12 January 2025
This template is used in Template:Graphic to automatically populate the Property:Has sort key based on the name of the file page. See also Template:Ts-212 sort keys.
{{Filename to sort key| {{PAGENAME}} }}