Template:New items: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Add class)
 
(40 intermediate revisions by 14 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:({{{1|}}})>1|  
<includeonly>{{#ifexpr:({{{1|}}})>{{Current Version}}|<div class='new-items' style='border: 2px solid #121319; border-radius: 10px; margin: 14px 0; overflow: hidden'><div style='background: #121319; color: #fff; font-weight: bold; padding: 4px 8px'>ADDED/UPDATED IN VERSION {{{2}}} {{#if:{{{4|}}}|{{r|{{{4}}}}}|}}:</div><div style='padding: 4px 8px'>{{{3}}} </div></div>| {{{3}}}}}</includeonly><noinclude>Use this template for functions/events lists. In function and event pages use <nowiki>{{New feature/item}}</nowiki>. This will prevent wrong pages appear in changelog category.
<div style='float:right;font-weight: bold;width:100%;'>FROM VERSION {{{2}}} ONWARDS</div>
=== Parameters ===
<div style='border: 2px solid black;padding: 3px;width:100%;'>
# Version float (value is compared with <code>&gt;</code> to <code><nowiki>{{Current Version}}</nowiki> = {{Current Version}}</code>)
{{{3}}}  
# Version text (only visual, example: <code>{{Current Version|full}}</code>)
</div>
# Text
| {{{3}}}}}
# Revision number (only visual)
[[Category:Changes in {{{2}}}]]
[[Category:Utility templates]]</noinclude>
</includeonly>
<noinclude>
Nothing to see here...
</noinclude>

Latest revision as of 20:08, 15 October 2024

Use this template for functions/events lists. In function and event pages use {{New feature/item}}. This will prevent wrong pages appear in changelog category.

Parameters

  1. Version float (value is compared with > to {{Current Version}} = 3.0160)
  2. Version text (only visual, example: 1.6.0)
  3. Text
  4. Revision number (only visual)