Sandbox
From PCSAR
(Difference between revisions)
(→Suggestion list) |
(→Suggestion list) |
||
| Line 2: | Line 2: | ||
{{Suggestion list}} | {{Suggestion list}} | ||
| - | {{ | + | <!-- |
| + | |||
| + | -->{{suggestion number<!-- | ||
| + | |||
| + | Would like to increment past the last suggestion in the current list | ||
| + | (to handle gaps due to reassigning/deleting). | ||
| + | |||
| + | However absence of string functions makes that very | ||
| + | difficult/impossible to implement with old style of segment names | ||
| + | "Sug1". In those cases, use as a surrogate use count of current | ||
| + | suggestions. | ||
| + | |||
| + | New style name "Sug/0001" can just strip off last segment. | ||
| + | |||
| + | -->|{{#iferror:<!-- | ||
| + | |||
| + | -->{{#expr:<!-- | ||
| + | |||
| + | -->{{#titleparts:<!-- | ||
| + | |||
| + | -->{{#ask: [[Category:suggestion]]<!-- | ||
| + | |||
| + | -->[[Suggestion list::{{FULLPAGENAME}}]]<!-- | ||
| + | |||
| + | -->|format=list<!-- | ||
| + | |||
| + | -->|searchlabel=<!-- | ||
| + | |||
| + | -->|link=none<!-- | ||
| + | |||
| + | -->|order=reverse<!-- | ||
| + | |||
| + | -->|limit=1<!-- | ||
| + | |||
| + | -->}}<!-- | ||
| + | |||
| + | |||
| + | get just the last segment of the suggestion page name | ||
| + | |||
| + | -->||-1}}<!-- | ||
| + | |||
| + | -->+1}}<!-- | ||
| + | |||
| + | default if error: (caused by "Sug" in segment name not being a simple | ||
| + | number) | ||
| + | |||
| + | -->|{{#expr: {{Suggestion list/Count|{{FULLPAGENAME}}}} + 1 }}<!-- | ||
| + | |||
| + | -->}}<!-- | ||
| + | |||
| + | -->|add a new suggestion<!-- | ||
| + | |||
| + | -->}}<!-- | ||
| + | |||
| + | --> | ||
Revision as of 21:14, 3 March 2013
Suggestion list
| # | Suggestion | Referred to |
|---|

