Preload/Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix missing dt for W3C validation, add examples)
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
Line 11: Line 11:
|example1= <nowiki>{{Preload/Note}}</nowiki>
|example1= <nowiki>{{Preload/Note}}</nowiki>
|result1= <dl class="command_description">
|result1= <dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on January 01, 2001 - 00:00 (UTC)</dd>
<dd class="notedate">Posted on January 01, 2001 - 00:00 (UTC)</dd>
<dt class="note"><span title="User:User" style="color: blue">User</span></dt>
<dt class="note"><span title="User:User" style="color: blue">User</span></dt>
Line 17: Line 18:
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|result2= <dl class="command_description">
|result2= <dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on May 15, 2005 - 57:12 (UTC)</dd>
<dd class="notedate">Posted on May 15, 2005 - 57:12 (UTC)</dd>
<dt class="note"><span title="User:General Kenobi" style="color: blue">General Kenobi</span></dt>
<dt class="note"><span title="User:General Kenobi" style="color: blue">General Kenobi</span></dt>

Revision as of 14:37, 5 April 2021

Used by the Add Note button - not to be used directly (use {{subst:Preload/Note|-your note text here-}})

This template is used on these pages.

Usage

{{Preload/Note|noteText}}

  • noteText: user note text
Examples
Code Result
{{Preload/Note}}
Posted on January 01, 2001 - 00:00 (UTC)
User
-no text provided-
{{Preload/Note|Hello There!}}
Posted on May 15, 2005 - 57:12 (UTC)
General Kenobi
Hello there!