Template:Side note: Difference between revisions

From Shifti
Jump to navigation Jump to search
m fix a subtle bug introduced in the last fix attempt
m Reverted edits by ShadowWolf (Talk); changed back to last version by Bryan
 
Line 1: Line 1:
{{#ifeq:{{{1| }}} | | {{#vardefine: text|{{{1}}}}}|{{#vardefine: text|No side note text defined}}}}{{float tag|text={{#var:text}}|text-background = #dddddd}}<noinclude>
{{float tag|text={{{1|No side note text defined}}}|text-background = #dddddd}}<noinclude>


This is a very simple template intended to put an arbitrary bit of text in a floating box off to the side of the story. It takes an unnamed parameter, like so:
This is a very simple template intended to put an arbitrary bit of text in a floating box off to the side of the story. It takes an unnamed parameter, like so:

Latest revision as of 02:06, 9 October 2007

{{#if:|}}
[[Image:{{{icon}}}|30px|center|Icon]] No side note text defined

This is a very simple template intended to put an arbitrary bit of text in a floating box off to the side of the story. It takes an unnamed parameter, like so:

{{side note|insert text to display here}}