Preload/Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page Template:Add new note/construct to Template:Preload/Note without leaving a redirect: name standard)
(Add description and Template:Doc/Template usage)
Line 1: Line 1:
<includeonly>{{subst:#if:{{{1|}}}|<!-- CONTINUE Notes -->
<includeonly>{{#if:{{{1|}}}|{{subst:
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}} - {{subst:CURRENTTIME}} (UTC)</dd>
<dd class="notedate">Posted on {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}} - {{subst:CURRENTTIME}} (UTC)</dd>
Line 5: Line 5:
<dd class="note">{{{1}}}</dd>
<dd class="note">{{{1}}}</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->|}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Doc/Template
===What's it for?===
|descr= Used by <tt>'''+ Add note'''</tt> buttons - '''not''' to be used directly (use <tt>{{<nowiki/>subst:Preload/Note|-your note text here-}}</tt>)
This is a constructor called by {{Template|Add new note}} that returns formatted content.
|param1= noteText
===How do I use it?===
|descr1= user note text
You don't; {{Template|Add new note}} does.
}}</noinclude>
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 03:11, 16 January 2021

Used by + Add note buttons - not to be used directly (use {{subst:Preload/Note|-your note text here-}})

This template is used on these pages.

Usage

{{Preload/Note|noteText}}

  • noteText: user note text