Vorlage:Notiz: Unterschied zwischen den Versionen

Aus Webis
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 6: Zeile 6:


The following displays the note icon and the word 'Note:'.  You can follow this with whatever text/images/markup you like.
The following displays the note icon and the word 'Note:'.  You can follow this with whatever text/images/markup you like.
  <nowiki>{{note}}</nowiki> Here is my note.
  <nowiki>{{Notiz}}</nowiki> Here is my note.


{{note}} Here is my note.
{{Notiz}} Here is my note.


=== Method 2 ===
=== Method 2 ===
Zeile 18: Zeile 18:
{{note|Here is a long note, which is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.}}
{{note|Here is a long note, which is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.}}


{{Languages|Template:Note}}


[[Category:Templates|{{PAGENAME}}]]
[[Kategorie:Vorlagen|{{PAGENAME}}]]
</noinclude>
</noinclude>

Version vom 20. November 2008, 12:00 Uhr

{{#if: |

}}Note{{#if: |}} Note: {{#if: |

}}

Usage

Method 1

The following displays the note icon and the word 'Note:'. You can follow this with whatever text/images/markup you like.

{{Notiz}} Here is my note.

{{#if: |

}}Note{{#if: |}} Note: {{#if: |

}} Here is my note.

Method 2

The following includes the text passed to the template, and uses a table to stop the text flowing round the icon.

{{note|Here is a long note, which is sufficiently wordy to run onto a second line, 
 which would normally cause it to wrap round the icon, but because we passed it as a parameter 
 it keeps its left alignment straight.}} 

Vorlage:Note