Alterações

A UESPWiki – Sua fonte de The Elder Scrolls desde 1995

Predefinição:Parameter Check

1 630 bytes adicionados, 20h39min de 1 de janeiro de 2014
m
Inherit ns_base
<includeonly><cleanspace>
{{#inherit:image|imgdesc|description|ns_base}}
{{#local:lctype|{{lc:{{{type}}}}}}}
{{#switch:{{SUBJECTSPACE}}
|User|Template|UESPWiki=
|#default=
{{#define:types|{{{type}}}s}}{{#local:types|{{NS_NAME}}&#32;{{{types}}}}}
{{#ifeq:{{lc:{{{image}}}}}|none||
{{#if:{{{image|}}}|
{{#define:ratio|{{#switch:{{{type}}}|NPC|Creature=1:1|4:3}}}}
{{#local:ratio|square|if={{#ifeq:{{{ratio|}}}|1:1|1}}}}
{{#switch:{{{ratio}}}
|4:3 ={{#define:minratio|1.3 }}{{#define:maxratio|1.35}}
|square={{#define:minratio|0.98}}{{#define:maxratio|1.02}}}}
{{#local:startswith|{{NS_ID}}{{{lctype}}}}}
{{#local:startswith2|{{NS_ID}}interior|if={{#ifeq:{{{lctype|}}}|place|1}}}}
{{#local:startswith3|{{NS_ID}}exterior|if={{#ifeq:{{{lctype|}}}|place|1}}}}
{{#local:imgwidth|{{#mediawidth:{{{image}}}}}}}
{{#local:imgheight|{{#mediaheight:{{{image}}}}}}}
{{#local:imgratio|{{#expr:{{{imgwidth}}}/{{{imgheight}}}}}|if={{#iferror:{{#expr:{{{imgwidth}}} * 1}}|0|1}}}}
{{#ifexpr:({{{imgratio|0}}} >= {{{minratio}}}) and ({{{imgratio|0}}} <={{{maxratio}}})||[[Category:{{{types}}} with non-{{{ratio}}} Images]]}}
{{#switch:{{#explode:{{{image}}}|-|0}}{{#explode:{{{image}}}|-|1}}
|{{{startswith}}}|{{{startswith2|}}}|{{{startswith3|}}}=
|#default=[[Category:{{{types}}} with incorrectly-named Images]]}}
{{#ifeq:{{{imgdesc|}}}||[[Category:{{{types}}} Needing Image Descriptions]]}}
|{{NeedsImage}}
}}
}}
}}</cleanspace></includeonly><noinclude>{{/Doc}}</noinclude>
49 385
edições

Menu de navegação