Help:Useful Templates: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) |
Caleb Cooper (talk | contribs) |
||
Line 41:
Looks like this:<br>
Highlight {{H|words in the middle}} of a sentence
<br>
<code><nowiki>{{highlight | text | color (optional) | expiration (optional) }}</nowiki></code>
{| class="wikitable"
|-
! code !! output !! notes
|-
| <nowiki>{{highlight | text }}</nowiki> || {{highlight | text }} || The default highlight color is yellow
|-
| <nowiki>{{highlight | text | lightblue }}</nowiki> || {{highlight | text | lightblue }} || The second parameter is the highlight color
|-
| <nowiki>{{highlight | text | pink | 2011-01-01 }}</nowiki> || {{highlight | text | pink | 2011-01-01 }} || This is not highlighted since 1 January 2011 is in the past
|-
| <nowiki>{{highlight | text | pink |</nowiki> {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}} <nowiki>}}</nowiki> || {{highlight | text || {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} || There is no highlighting on the expiration date ({{Purge|purge this page's server cache}} if today's date is not shown)
|-
| <nowiki>{{highlight | text | #00FF00 | 1 January 2099 }}</nowiki> || {{highlight | text | #00FF00 | 1 January 2099 }} || This is highlighted since 1 January 2099 is in the future
|-
| <nowiki>{{highlight | text || January 1, 2099 }}</nowiki> || {{highlight | text || January 1, 2099 }} || Note the color parameter, left blank, is still represented<br> with a pipe (followed by the expiration parameter pipe)
|}
<br><br>
= Inline Comment =
<pre>Restart the Appliance {{Comment|Only for Version 3 or Higher}}</pre>
| |||