Preload/Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix preload)
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{Note
<dl class="command_description">
|user= {{subst:REVISIONUSER}}
<dd class="notedate">Posted on {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}} - {{subst:CURRENTTIME}} (UTC)</dd>
|timestamp= {{subst:CURRENTTIMESTAMP}}
<dt class="note">[[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]</dt>
|text= {{{1|}}}
<dd class="note">{{{1}}}</dd>
}}</includeonly><noinclude>{{Doc/Template
</dl>
|descr= Used by the {{hl|'''Add Note'''}} button - '''not''' to be used directly (use the {{Template|Note}} template)
</includeonly><noinclude>{{Doc/Template
|descr= Used by <tt>'''+ Add note'''</tt> buttons - '''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>
|result1= {{Note
|user= Current User
|timestamp= 20010101000000
}}
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|result2= {{Note
|user= Current User
|timestamp= 20010101000000
|text= Hello There!
}}
}}</noinclude>
}}</noinclude>

Latest revision as of 11: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!