PathfinderWiki
Log in

Difference between revisions of "Template:Notice"

From PathfinderWiki
m (Make tantable optional)
m (-)
Line 1: Line 1:
 
<center>
 
<center>
 
{| class="{{{class|tantable pfw-policy}}}" style="{{{style|}}}"
 
{| class="{{{class|tantable pfw-policy}}}" style="{{{style|}}}"
|-
+
|- style="{{{rowstyle|}}}"
 
{{#ifeq: {{{image|}}}|none||
 
{{#ifeq: {{{image|}}}|none||
{{!}} {{{image|[[File:Information icon.jpg|64px]]}}}}}
+
{{!}} {{{imagestyle|}}} {{!}} {{{image|[[File:Information icon.jpg|64px]]}}}}}
|  
+
| {{{textstyle|}}} |
{{#if: {{{headline|}}}|'''{{{headline}}}'''<br />}}
+
{{#if: {{{headline|}}}|'''{{{headline}}}'''<br>}}
 
{{{text|}}}
 
{{{text|}}}
 
{{#if: {{{image2|}}}|
 
{{#if: {{{image2|}}}|
{{!}} style="text-align: right;" {{!}} {{{image2|}}}
+
{{!}} style="{{{image2style|}}}; text-align: right;" {{!}} {{{image2|}}}
 
}}
 
}}
 
|}</center><includeonly>{{{categories|}}}</includeonly><noinclude>
 
|}</center><includeonly>{{{categories|}}}</includeonly><noinclude>

Revision as of 00:53, 27 October 2019

Information icon.svg


Template documentation (for the above template, sometimes hidden or invisible)

Contents

{{Notice}} creates a notice box for display at the top of a page.

Usage

{{Notice
| class      = 
| style      = 
| image      = 
| headline   = 
| text       = 
| categories = 
}}
class (optional)
A list of space-delimited CSS classes to apply to the box. The default is tantable pfw-policy.
style (optional)
A list of semicolon-delimited CSS styles to apply to the box.
image (optional)
A file link to an image, such as [[File:Purple question mark.svg|30px]]. The default image is a 75-pixel blue circle with an information-symbol i.
headline (optional)
A heading for the box, formatted as bold wikitext. The default is blank.
text (optional)
The notice's body text. The default is blank.
categories (optional)
A list of categories to associate with the box, such as [[Category:categoryName]]. The default is blank.

Visit Template:Notice/doc to edit this text! (How does this work?)