Template:TitleParts/Reverse

From A KoL Wiki
{{Template:TitleParts/Reverse/1|{{Template:TitleParts/SizeOf|{{{1}}}}}<!--

-->|{{#titleparts:{{{1}}}|1|1}}|{{#titleparts:{{{1}}}|1|2}}|{{#titleparts:{{{1}}}|1|3}}|{{#titleparts:{{{1}}}|1|4}}|{{#titleparts:{{{1}}}|1|5}}|{{#titleparts:{{{1}}}|1|6}}|{{#titleparts:{{{1}}}|1|7}}|{{#titleparts:{{{1}}}|1|8}}|{{#titleparts:{{{1}}}|1|9}}|{{#titleparts:{{{1}}}|1|10}}|{{#titleparts:{{{1}}}|1|11}}|{{#titleparts:{{{1}}}|1|12}}|{{#titleparts:{{{1}}}|1|13}}|{{#titleparts:{{{1}}}|1|14}}|{{#titleparts:{{{1}}}|1|15}}|{{#titleparts:{{{1}}}|1|16}}|{{#titleparts:{{{1}}}|1|17}}|{{#titleparts:{{{1}}}|1|18}}|{{#titleparts:{{{1}}}|1|19}}|{{#titleparts:{{{1}}}|1|20}}|{{#titleparts:{{{1}}}|1|21}}|{{#titleparts:{{{1}}}|1|22}}|{{#titleparts:{{{1}}}|1|23}}|{{#titleparts:{{{1}}}|1|24}}|{{#titleparts:{{{1}}}|1|25}}<!--

-->}}

This is a helper template that allows you to reverse the elements in a #titleparts formatted string-array

Example

  • "{{Template:TitleParts/Reverse|A/B/C/D/E/F/G}}"
    • "G/F/E/D/C/B/A"
  • "{{Template:TitleParts/Reverse|A/B/C/D/}}"
    • "/D/C/B/A"
  • "{{Template:TitleParts/Reverse|A/B}}"
    • "B/A"
  • "{{Template:TitleParts/Reverse|A}}"
    • "A"
  • "{{Template:TitleParts/Reverse|}}"
    • ""

Limitations

Do note that data expressed with #titleparts is very limited. For a number of reasons:

  • The data has a 255 character limit since #titleparts was designed to work with your address bar.
  • There can only be 25 slashes in the string. Any more will be truncated.
  • The first character of the string will be changed to uppercase.

More Info

For more information on #titleparts, check the "ParserFunctions" section of your MediaWiki manual.