Template:Suggestion list/Count/Doc

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Line 14: Line 14:
;;; display the template as a code example: {{templatename|args...}}
;;; display the template as a code example: {{templatename|args...}}
-
--><code>{{((}}
+
--><code>{{((}}<!--
-
:Suggestion list/Count{{#if: Suggestion list| {{!}}{{#if:||Suggestion list }} }}{{))}}</code><!--
+
 
 +
;;; if this is in any namespace but the normal Template:, include the namespace in the templatename
 +
 
 +
-->{{#ifeq: Template | {{NAMESPACE}}
 +
|
 +
| {{NAMESPACE}}: }}<!--
 +
 
 +
;;; Give the template name. If this is a Doc subpage, give the name of the parent page (the template itself).
 +
 
 +
-->{{#ifeq: Doc | {{#titleparts: {{FULLPAGENAME}} | | -1 }}
 +
| {{#titleparts: {{PAGENAME}} | -1 }}
 +
| {{PAGENAME}} }}<!--
 +
 
 +
;;; If arguments are supplied (combined as arg 1), include them.
 +
 
 +
-->{{#if: Suggestion list<!--
 +
 
 +
;;; separate the arguments from the template name with a vertical bar: |
 +
 
 +
-->| {{!}}<!--
 +
 
 +
;;; strip the argument list of leading/trailing spaces and display it
 +
 
 +
-->{{#if:||Suggestion list }} }}<!--
 +
 
 +
-->{{))}}<!--
 +
--></code><!--
;;; Include the described function of the template, if it is supplied
;;; Include the described function of the template, if it is supplied

Revision as of 18:40, 3 March 2013

The template {{Suggestion list/Count|Suggestion list}}

The template {{Suggestion list/Count|Suggestion list}} returns the number of Suggestions in the Suggestion list

Suggestion list 
(optional) the page name of the suggestion list. Default is the current page.
Personal tools