Template:Suggestion list/Count/Doc

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Current revision (19:56, 3 March 2013) (edit) (undo)
 
(12 intermediate revisions not shown.)
Line 1: Line 1:
-
<!--
 
-
 
-
;;; "The template"
 
-
;;; if this is a "Doc" subpage, "template" links to the template.
 
-
 
-
-->The {{#ifeq: Doc | {{#titleparts: {{FULLPAGENAME}} | | -1 }}
 
-
| [[ {{#titleparts: {{FULLPAGENAME}} | -1 }} |template]]
 
-
| template }}<!--
 
-
 
-
;;; space between words
 
-
 
-
-->{{~}}<!--
 
-
 
-
;;; display the template as a code example: {{templatename|args...}}
 
-
 
-
--><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
 
-
 
-
-->{{#if: | {{~}}{{{2}}} }}<!--
 
-
 
-
-->
 
-
 
{{template doc|Suggestion list}}
{{template doc|Suggestion list}}
returns the number of Suggestions in the 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.
; Suggestion list : (optional) the page name of the suggestion list. Default is the current page.

Current revision

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