Note – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add examples) |
Lou Montana (talk | contribs) (Add contributions link next to user name, view page history link on unknown user and Note template usage error category sorting on error) |
||
(8 intermediate revisions by 2 users not shown) | |||
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 class="noteauthor">{{#if:{{{user|}}}|{{User|{{{user}}}}} <small>- [[Special:Contributions/{{{user}}}|c]]</small>|Unknown author <span class="plainlinks" style="font-size: smaller">- [{{canonicalurl:{{FULLPAGENAME}}|action=history}} view page history]</span>}}</dt> | ||
< | <dd class="notedate">{{#if:{{{timestamp|}}}|Posted on {{#time: M d, Y - H:i|{{{timestamp}}}}} (UTC)|Date unknown}}</dd> | ||
<dd class="note">{{#if:{{{game|}}}|<div | <dt></dt> | ||
<dd class="note">{{#if:{{{game|}}}|<div class="float-right">{{GVI|{{{game}}}|{{{version|1.00}}}|size= 1}}</div>}} | |||
{{Trim|{{{text|-no text defined-{{TemplateCase||[[Category:Note template usage error]]}}}}}}} | |||
</dd> | |||
</dl></includeonly><noinclude>{{Doc/Template | </dl></includeonly><noinclude>{{Doc/Template | ||
|descr= Creates a user note. | |descr= Creates a user note. Adds the page to the [[:Category:Note template usage error|Note template usage error]] category if no text is provided. | ||
|param1= user | |param1= user | ||
|descr1= author's username | |descr1= author's username | ||
|param2= | |param2= timestamp | ||
|descr2 | |descr2= comment timestamp in the format of {{hl|{{<nowiki/>CURRENTTIMESTAMP}}}} (i.e. YYYYMMDDHHmmss), e.g. {{CURRENTTIMESTAMP}} | ||
|param3= text | |||
| | |descr3= comment's content | ||
| | |param4= game | ||
| | |descr4= (Optional) game (in [[Template:Name|id format]], e.g. {{hl|arma2}}) and (optional too) version (e.g. {{hl|1.00}}) | ||
| | |param5= version | ||
| | |descr5= (Optional) game version (e.g. {{hl|1.00}}) | ||
|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 | ||
| | |timestamp= 20210826230000 | ||
}}</pre> | }}</pre> | ||
|result2= {{Note|user= Lou Montana| | |result2= {{Note|user= Lou Montana|timestamp= 20210826230000}} | ||
|example3= <pre>{{Note | |example3= <pre>{{Note | ||
|user= Lou Montana | |user= Lou Montana | ||
| | |timestamp= 20210826230000 | ||
|text= Hello there! | |text= Hello there! | ||
}}</pre> | }}</pre> | ||
|result3= {{Note|user= Lou Montana| | |result3= {{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!}} | ||
|example4= <pre>{{Note | |example4= <pre>{{Note | ||
|user= Lou Montana | |user= Lou Montana | ||
| | |timestamp= 20210826230000 | ||
|text= Hello there! | |text= Hello there! | ||
|game= tkoh | |game= tkoh | ||
}}</pre> | }}</pre> | ||
|result4= {{Note|user= Lou Montana| | |result4= {{Note|user= Lou Montana|timestamp= 20210826230000|text= Hello there!|game= tkoh}} | ||
|example5= <pre>{{Note|user= Lou Montana| | |example5= <pre>{{Note|user= Lou Montana|timestamp= 20010622000000|text= Hello there!|game= ofp|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20110623000000|text= Hello there!|game= arma0|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20061110000000|text= Hello there!|game= arma1|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20090617000000|text= Hello there!|game= arma2|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20100629000000|text= Hello there!|game= arma2oa|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20130912000000|text= Hello there!|game= arma3|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20111027000000|text= Hello there!|game= tkoh|version= 1.00}}</pre> | ||
|result5= | |result5= | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20010622000000|text= Hello there!|game= ofp|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20110623000000|text= Hello there!|game= arma0|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20061110000000|text= Hello there!|game= arma1|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20090617000000|text= Hello there!|game= arma2|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20100629000000|text= Hello there!|game= arma2oa|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20130912000000|text= Hello there!|game= arma3|version= 1.00}} | ||
{{Note|user= Lou Montana| | {{Note|user= Lou Montana|timestamp= 20111027000000|text= Hello there!|game= tkoh|version= 1.00}} | ||
}}</noinclude> | }}</noinclude> |
Latest revision as of 11:25, 22 March 2024
Creates a user note. Adds the page to the Note template usage error category if no text is provided.
This template is used on these pages.
Usage
{{Note|user|timestamp|text|game|version}}
- user: author's username
- timestamp: comment timestamp in the format of {{CURRENTTIMESTAMP}} (i.e. YYYYMMDDHHmmss), e.g. 20241125220137
- 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)
Code | Result |
---|---|
{{Note}} |
|
{{Note |user= Lou Montana |timestamp= 20210826230000 }} |
|
{{Note |user= Lou Montana |timestamp= 20210826230000 |text= Hello there! }} |
|
{{Note |user= Lou Montana |timestamp= 20210826230000 |text= Hello there! |game= tkoh }} |
|
{{Note|user= Lou Montana|timestamp= 20010622000000|text= Hello there!|game= ofp|version= 1.00}} {{Note|user= Lou Montana|timestamp= 20110623000000|text= Hello there!|game= arma0|version= 1.00}} {{Note|user= Lou Montana|timestamp= 20061110000000|text= Hello there!|game= arma1|version= 1.00}} {{Note|user= Lou Montana|timestamp= 20090617000000|text= Hello there!|game= arma2|version= 1.00}} {{Note|user= Lou Montana|timestamp= 20100629000000|text= Hello there!|game= arma2oa|version= 1.00}} {{Note|user= Lou Montana|timestamp= 20130912000000|text= Hello there!|game= arma3|version= 1.00}} {{Note|user= Lou Montana|timestamp= 20111027000000|text= Hello there!|game= tkoh|version= 1.00}} |
|