Difference between revisions of "Template:WStemplate"

From Wikispooks
Jump to navigation Jump to search
m (Robin moved page Template:Template to Template:WStemplate without leaving a redirect: Having a template called "template" confuses the software when clicking on an unknown Template: link to create it.)
(Add SMWDefaultMarkup)
 
Line 1: Line 1:
<noinclude>{{template
+
<noinclude>{{WStemplate
 
|categories=Convenience Templates
 
|categories=Convenience Templates
|summary=This template is for standardising the appearance of Wikispooks template pages.
+
|summary=This template is for standardising the appearance and metadata of Wikispooks template pages.
|description=It has parameters for the summary, categories and description of the template. Also "object" for object templates.
+
|description=It has parameters for the summary, categories and description of the template. Also "object" for object templates. It also calls [[Template:SMWDefaultMarkup]].
 
}}
 
}}
 
</noinclude><includeonly>{{#if: {{{object|}}}|{{ObjectTemplateBanner}}[[Category:Object Templates]]}}'''{{{summary|}}}'''<br/>
 
</noinclude><includeonly>{{#if: {{{object|}}}|{{ObjectTemplateBanner}}[[Category:Object Templates]]}}'''{{{summary|}}}'''<br/>
{{{description|}}}{{#arraymap:{{{categories|}}}|,|x|[[category:x]]}}{{Explain parameters}}{{#if: {{{object|}}}|See [[{{{object|}}}]] for a list of pages that use this template.<br/>}}</includeonly>
+
{{{description|}}}{{#arraymap:{{{categories|}}}|,|x|[[category:x]]}}{{Explain parameters}}{{#if: {{{object|}}}|See [[{{{object|}}}]] for a list of pages that use this template.<br/>}}{{SMWDefaultMarkup}}</includeonly>

Latest revision as of 09:31, 16 July 2015

This template is for standardising the appearance and metadata of Wikispooks template pages.
It has parameters for the summary, categories and description of the template. Also "object" for object templates. It also calls Template:SMWDefaultMarkup.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.