Preload/Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Note dupe fix?)
(Upgrade attempt)
Line 1: Line 1:
<includeonly>
<includeonly>{{Note
<dl class="command_description">
|user= {{subst:REVISIONUSER}}
<dt></dt>
|date= {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}}
<dd class="notedate">Posted on {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}} - {{subst:CURRENTTIME}} (UTC)</dd>
|time= {{subst:CURRENTTIME}}
<dt class="note">[[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]</dt>
|text= {{{1|}}}
<dd class="note">{{{1|-no text provided-}}}</dd>
}}</includeonly><noinclude>{{Doc/Template
</dl></includeonly><noinclude>{{Doc/Template
|descr= Used by the <tt>'''Add Note'''</tt> button - '''not''' to be used directly (use the {{Template|Note}} template)
|descr= Used by the <tt>'''Add Note'''</tt> button - '''not''' to be used directly (use <tt>{{<nowiki/>subst:Preload/Note|-your note text here-}}</tt>)
|param1= noteText
|param1= noteText
|descr1= user note text
|descr1= user note text
|example1= <nowiki>{{Preload/Note}}</nowiki>
|example1= <nowiki>{{Preload/Note}}</nowiki>
|result1= <dl class="command_description">
|result1= {{Note
<dt></dt>
|user= Current User
<dd class="notedate">Posted on January 01, 2001 - 00:00 (UTC)</dd>
|date= January 01, 2001
<dt class="note"><span title="User:User" style="color: blue">User</span></dt>
|time= 00:00
<dd class="note">-no text provided-</dd>
}}
</dl>
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|result2= <dl class="command_description">
|result2= {{Note
<dt></dt>
|user= Current User
<dd class="notedate">Posted on May 15, 2005 - 57:12 (UTC)</dd>
|date= January 01, 2001
<dt class="note"><span title="User:General Kenobi" style="color: blue">General Kenobi</span></dt>
|time= 00:00
<dd class="note">Hello there!</dd>
|text= Hello There!
</dl>
}}
}}</noinclude>
}}</noinclude>

Revision as of 22:28, 26 August 2021

Used by the Add Note button - not to be used directly (use the {{Note}} template)

This template is used on these pages.

Usage

{{Preload/Note|noteText}}

  • noteText: user note text
Examples
Code Result
{{Preload/Note}}
Current User - c
Date unknown
-no text defined-
{{Preload/Note|Hello There!}}
Current User - c
Date unknown
Hello There!