Difference between revisions of "Template:Maths banner"

From blackwiki
Jump to navigation Jump to search
imported>CBM
(Create banner template for Wikipedia:WikiProject Mathematics)
 
imported>CBM
(add shortcut parameter)
Line 2: Line 2:
 
|-
 
|-
 
|align="center"|[[Image:Nuvola apps edu mathematics.png|35px|WikiProject Mathematics]]
 
|align="center"|[[Image:Nuvola apps edu mathematics.png|35px|WikiProject Mathematics]]
|align="center"|{{#ifeq:{{{small|}}}|yes||<font size="+1">}}This page is part of '''[[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]]'''.{{#ifeq:{{{small|}}}|yes||</font>}}
+
|align="center"|{{#ifeq:{{{small|}}}|yes||<font size="+1">}}This page is part of '''[[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]]'''.{{#ifeq:{{{small|}}}|yes||</font>}}{{#if:{{{shortcut|}}}|
 +
&#13;
 +
{{!}}-
 +
{{!}} colspan="2"  style="border-top: 1pt solid; text-align: right; padding-right: 1em; {{#ifeq:{{{ppage|}}}|yes|background-color: #f9f9f9; border-color: #9f9fff;|border-color: #c0c090;  background-color: #f8eaba;}}" {{!}}'''Shortcut:''' [[{{{shortcut}}}]]
 +
}}
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 9: Line 13:
 
===Syntax===
 
===Syntax===
  
There are two optional fields:
+
There are three optional fields:
 
* <code>small=yes</code> will cause the banner to float right and be narrow. The default is a wide, centered banner.
 
* <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>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.
 
</noinclude>
 
</noinclude>

Revision as of 00:33, 23 March 2007

WikiProject Mathematics This page is part of WikiProject Mathematics.

Description

This is a banner template that can be used on project pages and talk pages. It should not be used on articles. The template {{maths rating}} can be used on article talk pages to assign quality and importance ratings to articles.

Syntax

There are three optional fields:

  • small=yes will cause the banner to float right and be narrow. The default is a wide, centered banner.
  • ppage=yes will cause the background color to match project pages. The default is a brown color that matches talk pages.
  • shortcut=WP:FOO will add a shortcut notice.