Difference between revisions of "Template:Maths banner"

From blackwiki
Jump to navigation Jump to search
(portalbox)
imported>MSGJ
(use WPBM)
Line 1: Line 1:
{| class="messagebox {{#ifeq:{{{small|}}}|yes|small|standard}}-talk" {{#ifeq:{{{ppage|}}}|yes|style="background-color: #f9f9f9; border-color: #aaa; font-size:{{#ifeq:{{{small|}}}|yes|smaller|inherit}};"|}}
+
{{WPBannerMeta
|-
+
|PROJECT            = Mathematics
| style="text-align:center;" | [[Image:Nuvola apps edu mathematics.png|35px|]]
+
|BANNER_NAME        = Template:Maths banner
| style="text-align:center;" | This page is part of '''[[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]]'''.
+
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| {{portal|Mathematics}}
+
|small={{{small|}}}
|-
+
|category={{{category|}}}
| {{#if:{{{class|}}} |{{{{{class}}}-Class}}|{{!}} }}
+
|listas={{{listas|}}}
| style="text-align:center;" | {{#if:{{{class|}}} | This page is marked as '''{{{class}}}-Class'''.
+
|IMAGE_LEFT          = Nuvola apps edu mathematics.png
[[Category:{{{class}}}-Class mathematics pages]]
+
|IMAGE_LEFT_LARGE  = 35px
[[Category:NA-Priority mathematics pages]]
+
|ASSESSMENT_CAT      =
}} {{#if:{{{shortcut|}}}|<nowiki/>
+
|ASSESSMENT_LINK    =
{{!}}-
+
|MAIN_TEXT          = <center>This page is part of '''[[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]]'''.</center>
{{!}} colspan="2"  style="text-align: right; padding-right: 1em; {{#ifeq:{{{ppage|}}}|yes|background-color: #f9f9f9; border-color: #9f9fff;|border-color: #c0c090;  background-color: #f8eaba;}}" {{!}}<hr />'''Shortcut:''' [[{{{shortcut}}}]]
+
|PORTAL              = Mathematics
}}{{#ifeq:{{NAMESPACE}}|{{ns:1}}|<nowiki/>
+
|MAIN_CAT            =
{{!}}-
+
|note 1={{#ifeq:{{NAMESPACE}}|{{ns:1}}|yes}}
{{!}} colspan="2" class="error" {{!}} Please do not use this template on article talk pages. Use [[Template:Maths rating]] instead, being sure to fill in the rating information.
+
|NOTE_1_TEXT        = {{error|Please do not use this template on article talk pages. Use [[Template:Maths rating]] instead, being sure to fill in the rating information.}}
}}
+
|note 2={{{shortcut|}}}
|}<noinclude>
+
|NOTE_2_TEXT        = '''Shortcut:''' [[{{{shortcut}}}]]
 
+
|NOTE_2_FORMAT      = style="text-align: right; padding-right: 1em; {{#ifeq:{{{ppage|}}}|yes|background-color: #f9f9f9; border-color: #9f9fff;|border-color: #c0c090;  background-color: #f8eaba;}}"
{{documentation|content=
+
}}<noinclude>
 
+
{{Documentation}}
===Description===
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
This is a banner template that can be used on project pages and talk pages.  It should not be used on articles or article talk page. The template {{tl|maths rating}} can be used on article talk pages to assign quality and importance ratings to articles.
 
 
 
===Syntax===
 
 
 
There are several optional parameters:
 
* <code>small=yes</code> will cause the banner to float right and be narrow. The default is a wide, centered banner.
 
* <code>ppage=yes</code> will cause the background color to match project pages. The default is a brown color that matches talk pages.
 
* <code>shortcut=WP:FOO</code> will add a shortcut notice.
 
* <code>class=CLASSNAME</code> will cause the template to put the page into a WP 1.0 class. For example, class=File will mark the page as File-Class.
 
 
 
}}
 
 
 
[[Category:WikiProject Mathematics]]
 
 
 
 
</noinclude>
 
</noinclude>

Revision as of 21:49, 25 November 2014

Template:WPBannerMeta

Template documentation[view] [edit] [history] [purge]

Usage

When you create or find a new non-article page within the scope of WikiProject Mathematics please add any of the following to the top of its talk page:
{{Maths banner |class= }}
{{Maths banner |class= |shortcut= |small= |listas= }}
{{Maths banner
|class    = 
|shortcut = 
|small    = 
|listas   = 
}}
Unused parameters may be omitted.

It should not be used on articles or article talk pages. The template {{maths rating}} can be used on article talk pages to assign quality and importance ratings to articles.

Optional parameters

Template:WPBannerDoc Template:WPBannerDoc

  • shortcut – creates a shortcut link, e.g. |shortcut=WP:FOO will add a shortcut notice linking to WP:FOO.

Template:WPBannerDoc Template:WPBannerDoc