Template:Notice/doc: Difference between revisions

m
No edit summary
Line 51:
===Adding an image, shortcuts, etc on the righthand side===
 
To add shortcuts, images, other templates, etc. to the righthand side of the template, use {{para|imageright}}. For example, <code><nowiki>{{Notice |imageright=[[File:Wiki letter w.svg|40px]] |Lorem ipsum </nowiki>''(etc)''<nowiki>}}</nowiki></code> produces:
{{Notice|style=margin-bottom:2.0em; |Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |imageright=[[File:Wiki letter w.svg|40px]]}}
 
<code><nowiki>{{Notice |imageright={{Shortcuts|You|Me}} |Lorem ipsum </nowiki>''(etc)''<nowiki>}}</nowiki></code> includes the {{tl|Shortcut}}s template providing links to [[You]] and [[Me]]:
{{Notice|style=margin-bottom:2.0em; |imageright={{ShortcutsShortcut|You|Me}} |Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
 
====Alternate shortcut option====
Anonymous user