Template:NameSortTest: Difference between revisions
From Jenny Everywhere Wiki
No edit summary |
m (15 revisions imported) Tags: Mobile edit Mobile web edit |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
{{#switch:{{#rpos:{{PAGENAME}}| }} | {{#switch:{{#rpos:{{PAGENAME}}| }} | ||
|-1 = {{PAGENAME}} <!--if there are no spaces, then just go by the PAGENAME--> | |-1 = {{PAGENAME}} <!--if there are no spaces, then just go by the PAGENAME--> | ||
|#default ={{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7 | |#default ={{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}<!-- if there are | ||
spaces, then do something clever--> | spaces, then do something clever--> | ||
}} <!--first switch close--> | }} <!-- first switch close--> | ||
|#default = {{#explode:{{#sub:{{PAGENAME}}|0|{{#expr:{{#rpos:{{PAGENAME}}|(}}-1}}}}| |-1}} | |#default = {{#explode:{{#sub:{{PAGENAME}}|0|{{#expr:{{#rpos:{{PAGENAME}}|(}}-1}}}}| |-1}} | ||
Latest revision as of 01:33, 13 August 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
This is a testing ground for expanding the powers of {{NameSort}}. It is in no way complete. Please do not attempt to edit it.
- John Smith (actor)
Smith
Smith