From PCSAR
(Difference between revisions)
|
|
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>{{((}}{{#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. |
Revision as of 18:54, 3 March 2013
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.