Note – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add examples)
(Add timestamp support, Remove date/time parameters)
Line 1: Line 1:
<includeonly><dl class="command_description{{#if:{{{game|}}}|<nowiki/> usernote_{{{game}}}}}">
<includeonly><dl class="command_description{{#if:{{{game|}}}|<nowiki/> usernote_{{{game}}}}}">
<dt><dt><dd class="notedate">{{#if:{{{date|}}}|Posted on {{{date}}}{{#if:{{{time|}}}|<nowiki/> - {{{time}}} (UTC)}}|Date unknown}}</dd>
<dt><dt><dd class="notedate">{{#if:{{{timestamp|}}}|Posted on {{#time: Y-m-d H:i|{{{timestamp}}}}} (UTC)|Date unknown}}</dd>
<dt class="note">{{#if:{{{user|}}}|{{User|{{{user}}}}}|Unknown author}}</dt>
<dt class="note">{{#if:{{{user|}}}|{{User|{{{user}}}}}|Unknown author}}</dt>
<dd class="note">{{#if:{{{game|}}}|<div style="float: right; margin: 0 0 0.5em 1.5em">{{GVI|{{{game}}}|{{{version|1.00}}}|size= 1}}</div>}}{{{text|-no text defined-}}}</dd>
<dd class="note">{{#if:{{{game|}}}|<div style="float: right; margin: 0 0 0.5em 1.5em">{{GVI|{{{game}}}|{{{version|1.00}}}|size= 1}}</div>}}{{{text|-no text defined-}}}</dd>
Line 7: Line 7:
|param1= user
|param1= user
|descr1= author's username
|descr1= author's username
|param2= date
|param2= timestamp
|descr2= text
|descr2= comment timestamp in format <tt>{{<nowiki/>CURRENTTIMESTAMP}}</tt>, yyyymmddhhiiss, e.g {{CURRENTTIMESTAMP}}
|param3= comment's content
|param3= text
|descr3= (Optional) date
|descr3= comment's content
|param4= time
|param4= game
|descr4= (Optional) time
|descr4= (Optional) game (in [[Template:Name|id format]], e.g <tt>arma2</tt>) and (optional too) version (e.g <tt>1.00</tt>)
|param5= game
|param5= version
|descr6= (Optional) game (in [[Template:Name|id format]], e.g <tt>arma2</tt>) and (optional too) version (e.g <tt>1.00</tt>)
|descr5= (Optional) game version (e.g <tt>1.00</tt>)
 
|example1= <pre>{{Note}}</pre>
|example1= <pre>{{Note}}</pre>
|result1= <div style="min-width: 40em">{{Note}}</div>
|result1= <div style="min-width: 40em">{{Note}}</div>
|example2= <pre>{{Note
|example2= <pre>{{Note
|user= Lou Montana
|user= Lou Montana
|date= 2021-08-26
|timestamp= 20210826230000
|time= 23:00
}}</pre>
}}</pre>
|result2= {{Note|user= Lou Montana|date= 2021-08-26|time= 23:00}}
|result2= {{Note|user= Lou Montana|timestamp= 20210826230000}}
|example3= <pre>{{Note
|example3= <pre>{{Note
|user= Lou Montana
|user= Lou Montana
|date= 2021-08-26
|timestamp= 20210826230000
|time= 23:00
|text= Hello there!
|text= Hello there!
}}</pre>
}}</pre>
|result3= {{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!}}
|result3= {{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!}}
|example4= <pre>{{Note
|example4= <pre>{{Note
|user= Lou Montana
|user= Lou Montana
|date= 2021-08-26
|timestamp= 20210826230000
|time= 23:00
|text= Hello there!
|text= Hello there!
|game= tkoh
|game= tkoh
}}</pre>
}}</pre>
|result4= {{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= tkoh}}
|result4= {{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= tkoh}}
|example5= <pre>{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= ofp |version= 1.00}}
|example5= <pre>{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= ofp|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma0 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma0|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma1 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma1|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma2 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma2|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma2oa |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma2oa|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma3 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma3|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= tkoh |version= 1.00}}</pre>
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= tkoh|version= 1.00}}</pre>
|result5=
|result5=
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= ofp |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= ofp|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma0 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma0|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma1 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma1|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma2 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma2|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma2oa |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma2oa|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= arma3 |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma3|version= 1.00}}
{{Note|user= Lou Montana|date= 2021-08-26|time= 23:00|text= Hello there!|game= tkoh |version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= tkoh|version= 1.00}}
}}</noinclude>
}}</noinclude>

Revision as of 21:42, 27 August 2021

Creates a user note.

This template is used on these pages.

Usage

{{Note|user|timestamp|text|game|version}}

  • user: author's username
  • timestamp: comment timestamp in format {{CURRENTTIMESTAMP}}, yyyymmddhhiiss, e.g 20241122125658
  • text: comment's content
  • game: (Optional) game (in id format, e.g arma2) and (optional too) version (e.g 1.00)
  • version: (Optional) game version (e.g 1.00)
Examples
Code Result
{{Note}}
Date unknown
Unknown author
-no text defined-
{{Note
|user= Lou Montana
|timestamp= 20210826230000
}}
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
-no text defined-
{{Note
|user= Lou Montana
|timestamp= 20210826230000
|text= Hello there!
}}
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
{{Note
|user= Lou Montana
|timestamp= 20210826230000
|text= Hello there!
|game= tkoh
}}
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= ofp|version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma0|version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma1|version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma2|version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma2oa|version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= arma3|version= 1.00}}
{{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= tkoh|version= 1.00}}
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!
Posted on 2021-08-26 23:00 (UTC)
Lou Montana
Hello there!