Difference between revisions of "Template:Aspect"

From The Fansus
Jump to: navigation, search
(Added sizing option and documentation)
 
Line 1: Line 1:
<span style="background-color: #1d444c; border: solid 1px #358e8e; color: #bcd0d0; display: inline-block; font-family: Georgia, serif; font-weight: bold; height: 20px; line-height: 1;">[[File:{{{1}}}.png|frameless|20x20px|link=:Category:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|<span style="display: inline-block; text-align: center; width: 20px;">{{{2}}}</span>}}</span>
+
<includeonly><span style="background-color: #1d444c; border: solid 1px #358e8e; color: #bcd0d0; display: inline-block; font-family: Georgia, serif; font-weight: bold; height: {{{3|20}}}px; line-height: 1;">[[File:{{{1}}}.png|frameless|{{{3|20}}}x{{{3|20}}}px|link=:Category:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|<span style="display: inline-block; text-align: center; width: 20px;">{{{2}}}</span>}}</span></includeonly><noinclude>A simple template to show an aspect, with optional quantity.
 +
 
 +
'''Examples:'''
 +
 
 +
<pre>
 +
{{Aspect|Winter}}
 +
</pre>
 +
 
 +
{{Aspect|Winter}}
 +
 
 +
<pre>
 +
{{Aspect|Winter|10}}
 +
</pre>
 +
 
 +
{{Aspect|Winter|10}}
 +
 
 +
<pre>
 +
{{Aspect|Winter||60}}
 +
</pre>
 +
 
 +
{{Aspect|Winter||60}}</noinclude>

Latest revision as of 15:27, 16 July 2018

A simple template to show an aspect, with optional quantity.

Examples:

{{Aspect|Winter}}

Winter

{{Aspect|Winter|10}}

Winter10

{{Aspect|Winter||60}}

Winter