Rise of Kingdoms Wiki
Advertisement
Rise of Kingdoms Wiki
{{define size|size={{{size|}}}}}{{#if: {{{name|}}}{{{category|}}}
 |<span 
	 class="item-rarity-{{{rarity|common}}} item-wrapper" 
	 style="background-size: {{#var:current_size}}px, {{#expr:{{#var:current_size}}*1.3}}px; 
	 	width: {{#expr:{{#var:current_size}}*1.3}}px; 
		height: {{#expr:{{#var:current_size}}*1.3}}px;
	">[[File:item_{{#if: {{{category|}}} 
			| {{{category}}}
			| {{{name}}} }}.png{{!}}
		 {{#var:current_size}}x{{#var:current_size}}px{{!}}
		 thumb{{!}}
		 link={{#if:{{{link|}}}
			| {{{link}}}
			| Items/{{#if: {{{category|}}} | {{{category}}} | {{{name}}} }}
		 }}
		]]</span><!--
	    See https://www.mediawiki.org/wiki/Help:Parser_functions_in_templates
	    If defined and maybe empty
	-->{{#ifeq:{{{link|}}}|{{{link}}}
	 |{{#if: {{{link|}}} | <span>'''{{{name}}}'''</span> | <span>[[{{{link}}} | {{{name}}}]]</span>}}
	 |<span><!--
		-->[[items/{{#if: {{{category|}}} | {{{category}}} | {{{name}}} }} | {{{name}}}]]<!--
	  --></span><!--
	-->}}
 | {{templateError|message=Name or category is required}}[[Category:Item template missing name and category parameter]]
}}<!--

-->{{#if: {{{rarity|}}} || [[Category:Item template missing rarity parameter]] }}
Advertisement