Preload/Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Upgrade attempt)
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{Note
<includeonly>{{Note
|user= {{subst:REVISIONUSER}}
|user= {{subst:REVISIONUSER}}
|date= {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}}
|timestamp= {{subst:CURRENTTIMESTAMP}}
|time= {{subst:CURRENTTIME}}
|text= {{{1|}}}
|text= {{{1|}}}
}}</includeonly><noinclude>{{Doc/Template
}}</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 {{hl|'''Add Note'''}} button - '''not''' to be used directly (use the {{Template|Note}} template)
|param1= noteText
|param1= noteText
|descr1= user note text
|descr1= user note text
Line 11: Line 10:
|result1= {{Note
|result1= {{Note
|user= Current User
|user= Current User
|date= January 01, 2001
|timestamp= 20010101000000
|time= 00:00
}}
}}
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|result2= {{Note
|result2= {{Note
|user= Current User
|user= Current User
|date= January 01, 2001
|timestamp= 20010101000000
|time= 00:00
|text= Hello There!
|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!