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 - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{Note
<dl class="command_description">
|user= {{subst:REVISIONUSER}}
<dt></dt>
|timestamp= {{subst:CURRENTTIMESTAMP}}
<dd class="notedate">Posted on {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}} - {{subst:CURRENTTIME}} (UTC)</dd>
|text= {{{1|}}}
<dt class="note">[[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]</dt>
}}</includeonly><noinclude>{{Doc/Template
<dd class="note">{{#if:{{{1|}}}|{{{1}}}|-no text provided-}}</dd>
|descr= Used by the {{hl|'''Add Note'''}} button - '''not''' to be used directly (use the {{Template|Note}} template)
</dl></includeonly><noinclude>{{Doc/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
<dd class="notedate">Posted on January 01, 2001 - 00:00 (UTC)</dd>
|user= Current User
<dt class="note"><span title="User:User" style="color: blue">User</span></dt>
|timestamp= 20010101000000
<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
<dd class="notedate">Posted on May 15, 2005 - 57:12 (UTC)</dd>
|user= Current User
<dt class="note"><span title="User:General Kenobi" style="color: blue">General Kenobi</span></dt>
|timestamp= 20010101000000
<dd class="note">Hello there!</dd>
|text= Hello There!
</dl>
}}
}}</noinclude>
}}</noinclude>

Latest revision as of 10:33, 16 November 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
Posted on Jan 01, 2001 - 00:00 (UTC)
-no text defined-
{{Preload/Note|Hello There!}}
Current User - c
Posted on Jan 01, 2001 - 00:00 (UTC)
Hello There!