Template:Suggestion list/New suggestion

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{documentation}}</noinclude><includeonly><!--
<noinclude>{{documentation}}</noinclude><includeonly><!--
 +
 +
-->{{suggestion number<!--
Would like to increment past the last suggestion in the current list
Would like to increment past the last suggestion in the current list
-
(to handle gaps due to reassigning/deleting).
+
(to handle gaps due to reassigning/deleting).
-
However absence of string functions makes that very difficult/impossible to implement.
+
-
As a surrogate use count of current suggestions.
+
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.
-
-->{{suggestion number<!--
+
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 }}<!--
-
-->|{{#expr: {{Suggestion list/Count|{{FULLPAGENAME}}}} + 1 }}<!--
+
-->}}<!--
-->|add a new suggestion<!--
-->|add a new suggestion<!--

Revision as of 21:06, 3 March 2013

This is the documentation for the template Template:Suggestion list/New suggestion

Template:Suggestion list/New suggestion/Doc:
Related Templates
Committee suggestions Report of suggestions for a committee
Committee member suggestions Report of suggestions for member of a committee
Critique report/Suggestion Link to a suggestion within a critique report
Critique report/Suggestion list List of suggestion numbers that have been assigned to a committee in the current critique report
Suggestion Record a suggestion for improving SAR
Suggestion/Page subst: a boilerplate for a new suggestion page
Suggestion number a suggestion relative to the current page
Suggestion list list of suggestions relative to the current page

The template {{Suggestion list/New suggestion}} displays a link that creates a new suggestion in the list associated with the current page.

Supporting templates


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools