Preload/Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Removed bold on username because long names overlap with content)
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{subst:#if:{{{1|}}}|<!-- CONTINUE Notes -->
<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)
<!-- DISCONTINUE Notes -->|}}</includeonly><noinclude>
|param1= noteText
===What's it for?===
|descr1= user note text
This is a constructor called by {{Template|Add new note}} that returns formatted content.
|example1= <nowiki>{{Preload/Note}}</nowiki>
===How do I use it?===
|result1= {{Note
You don't; {{Template|Add new note}} does.
|user= Current User
 
|timestamp= 20010101000000
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
}}
|example2= <nowiki>{{Preload/Note|Hello There!}}</nowiki>
|result2= {{Note
|user= Current User
|timestamp= 20010101000000
|text= Hello There!
}}
}}</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!