Template:InlineAnnotation: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="border: solid 1px; display: inline-block;"><div style="float: left; width: 32px;">[[File:tutorial_template_icon_{{{1|note}}}.png|Warning|32px|link=]]</div><div style="margin-left: 38px;">{{{2}}}</div></div></includeonly>
<includeonly><div style="border-radius: 4px; display: inline-block; padding: 4px; {{#if: {{{3|}}}|border: 1px solid {{#switch: {{{1}}} | note = #D3A12A | idea = #D3A12A | info = #64A2E7 | help = #696CC3 | tip = #CEEF76 | experiment = #9FD361 | development = #F28D48 | caution = #DD3745 | technical = #99A6AD | recovery = #DD656B | warning = #F2C327 | danger = #000000 | stop = #4DA9D1 | idea = #F5C569 | #D3A12A}}}}"><div style="float: left; width: 32px;">[[File:tutorial_template_icon_{{{1|note}}}.png|Warning|32px|link=]]</div><div style="padding-top: 0.5em; padding-right: 4px; margin-left: 38px;">{{{2}}}</div></div></includeonly><!--
<noinclude>
--><noinclude>
This is some text.
==Inline Annotations ==
This is some text with a note: {{InlineAnnotation|note|Hello there.}}
Inline annotations can be on their own line:
This is some more text.
{{InlineAnnotation|info|Such as this one.}}
{{InlineAnnotation|stop|Inline annotation on it's own line.}}
Or, if you want, something different,
More text.
They can be part of a line {{InlineAnnotation|note|like this.}}
{{InlineAnnotation|stop|An inline annotation will wrap the text nicely so that the text won't go under the icon on the left which wouldn't look very nice. If the text went under the icon it would look sloppy.}}
You can also give an inline annotation {{InlineAnnotation|experiment|a nice little border|border}} like this.
They can also be used on their own line with a border, as below:
{{InlineAnnotation|caution|Notice how the border doesn't go all the way to the edge of the page. This might be quite useful.|border}}
They are quite flexible.
</noinclude>
</noinclude>

Latest revision as of 15:37, 11 February 2015

Inline Annotations

Inline annotations can be on their own line:

Warning
Such as this one.

Or, if you want, something different,

They can be part of a line

Warning
like this.
Warning
An inline annotation will wrap the text nicely so that the text won't go under the icon on the left which wouldn't look very nice. If the text went under the icon it would look sloppy.

You can also give an inline annotation

Warning
a nice little border

like this.

They can also be used on their own line with a border, as below:

Warning
Notice how the border doesn't go all the way to the edge of the page. This might be quite useful.

They are quite flexible.