Difference between revisions of "Template:Info"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
m (Fix icon)
m (Add parameters & example)
Line 1: Line 1:
{| class="ns2table" style="text-align:center; height:70px; border-spacing: 2px; border: 1px solid darkgray;"
+
<includeonly>
 +
{| class="ns2table" style="text-align:{{#if:{{{align|}}}|{{{align}}}|left}}; height:70px; border-spacing: 2px; border: 1px solid darkgray;"
 
| <span class="fa-3x fa-layers fa-fw"><span style="color:#0f4ead;"><i class="fas fa-circle" style="color:#fff"></i><i class="fa fa-info-circle" aria-hidden="true"></i></span></span>
 
| <span class="fa-3x fa-layers fa-fw"><span style="color:#0f4ead;"><i class="fas fa-circle" style="color:#fff"></i><i class="fa fa-info-circle" aria-hidden="true"></i></span></span>
| '''Information:''' {{{1|}}}
+
| {{#if:{{{title|}}}|{{{title}}}:|'''Information:'''}} {{{1|}}}
|}
+
|}</includeonly>
 +
 
 +
== Example ==
 +
<pre><nowiki>{{Info|title=Custom Title|align=center|This is some information}}</nowiki></pre> Produces:
 +
{{Info|title=Custom Title|align=center|This is some information}}

Revision as of 14:47, 16 May 2019


Example

{{Info|title=Custom Title|align=center|This is some information}}
Produces:
Info: This is some information