Template:Notice/doc: Difference between revisions

no edit summary
(replaced See also with template)
No edit summary
Line 45:
===External links and equals signs===
 
In most cases, external links can be used in the template without any complications. If a link{{aside| – or any text}} – contains one or more equals signs ("{{padlr| =}} "), however, everything before the first sign will be interpreted as the name of a parameter. To prevent this, name the text carrying the link as the first numbered parameter:
: <code><nowiki>{{Notice |1=Any text/links including "=" should now be interpreted correctly.}}</nowiki></code> produces:
{{Notice|style=margin-bottom:2.0em; |1=Any text/links including "=" should now be interpreted correctly.}}
Line 58:
 
====Alternate shortcut option====
As an alternative to imageright, the {{para|shortcut}} (or {{para|shortcut1}}) and {{para|shortcut{{padr|''N''}}&ensp;}} parameters (where {{nowrap|''N'' {{=}} 2}} to 5) may be used to display shortcuts. For instance, {{plaincode|<nowiki>{{Notice |shortcut1=Me |shortcut2=You |shortcut3=Them |shortcut4=Us |shortcut5=Everyone |Lorem ipsum </nowiki>''(etc)''<nowiki>}}</nowiki>}} produces:
{{Notice|style=margin-bottom:2.0em; |shortcut1=Me |shortcut2=You |shortcut3=Them |shortcut4=Us |shortcut5=Everyone |Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
 
Anonymous user