Difference between revisions of "Template:Upcoming"

From Arks-Visiphone
Jump to navigation Jump to search
Line 1: Line 1:
 
<onlyinclude>{{#switch: {{{1|}}}
 
<onlyinclude>{{#switch: {{{1|}}}
| primary = <div class="alert alert-primary" role="alert">{{#if: {{{title|}}}|<h4 class="alert-heading">{{{title|}}}</h4>|}}{{{2|}}}</div>
+
| warning = <div class="alert alert-warning" role="alert">{{#if: {{{title|}}}|<h4 class="alert-heading">{{{title|}}}</h4>|}}{{{2|}}}</div>
 
}}</onlyinclude>
 
}}</onlyinclude>
 
<noinclude>
 
<noinclude>
 
use case (adapted from [[Template:Alerts]] because it is Administrator protected):
 
use case (adapted from [[Template:Alerts]] because it is Administrator protected):
{{Upcoming|primary|title=This is a simple title!|A simple warning alert—check it out!}}
+
{{Upcoming|warning|title=TitleName|Reasoning}}
<pre>{{Upcoming|primary|title=This is a simple title!|A simple warning alert—check it out!}}</pre>
+
<pre>{{Upcoming|warning|title=TitleName|Reasoning}}</pre>
 
__NOTOC__
 
__NOTOC__
 
[[Category: Templates]]
 
[[Category: Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 00:03, 27 July 2022


use case (adapted from Template:Alerts because it is Administrator protected):

{{Upcoming|warning|title=TitleName|Reasoning}}