Difference between revisions of "Template: COA"

From A Wiki of Ice and Fire
Jump to: navigation, search
m
m
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#switch: {{{2|}}}
+
{{#ifeq:{{{1|}}}|Unknown|[[File:None.svg|link=|alt=Arms unknown|{{#switch: {{{2|}}}
  | small    = [[File:32x32 {{{1}}}.png|link={{{3|House {{{1|}}}}}}|alt={{{3|House {{{1|}}}}}}]]
+
| small  = 32px{{!}}
  | medium  = [[File:{{{1}}}.png|100px|link={{{3|}}}|alt={{{3|}}}]]
+
| medium = 100px{{!}}
  | large    = [[File:{{{1}}}.png|250px|link={{{3|}}}|alt={{{3|}}}]]
+
| large  = 250px{{!}}
  | #default = [[File:{{{1}}}.png|{{{2|}}}|link={{{3|}}}|alt={{{3|}}}]]
+
}}]]|{{#switch: {{{2|}}}
}}<noinclude>
+
  | small    = [[File:{{{1}}}.svg|32px|link={{{3|{{ucfirst:{{{1|}}} }} }}}|alt={{{3|{{ucfirst:{{{1|}}} }} }}}]]
 +
  | medium  = [[File:{{{1}}}.svg|100px|link={{{3|}}}|alt={{{3|}}}]]
 +
  | large    = [[File:{{{1}}}.svg|250px|link={{{3|}}}|alt={{{3|}}}]]
 +
  | #default = [[File:{{{1}}}.svg|{{{2|}}}|link={{{3|}}}|alt={{{3|}}}]]
 +
}}}}<noinclude>
  
 +
==Usage==
 +
For the small 32x32 icons use it with icon name, for example to add use ''32x32 Peckledon.svg'' (As long as image named in a consistent way this stays vary simple)
 +
<pre>{{COA|Peckledon|small}}</pre>
  
 +
 +
Options to use medium (the current 100px size), large (for House articles) and custom, will be added as well.
 +
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:50, 4 October 2018

[[File:{{{1}}}.svg||link=|alt=]]

Usage

For the small 32x32 icons use it with icon name, for example to add use 32x32 Peckledon.svg (As long as image named in a consistent way this stays vary simple)

{{COA|Peckledon|small}}


Options to use medium (the current 100px size), large (for House articles) and custom, will be added as well.