Template:Side note: Difference between revisions

From Shifti
Jump to navigation Jump to search
m attempt to fix use-case problems
m fix a subtle bug introduced in the last fix attempt
Line 1: Line 1:
{{#ifeq:{{{1| }}} | | {{#vardefine: text|{{{1}}}}}|{{#vardefine: text|No side note text defined}}}}{{float tag|text={{{text}}}|text-background = #dddddd}}<noinclude>
{{#ifeq:{{{1| }}} | | {{#vardefine: text|{{{1}}}}}|{{#vardefine: text|No side note text defined}}}}{{float tag|text={{#var:text}}|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:

Revision as of 02:05, 9 October 2007

{{#ifeq: | | |}}

{{#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}}