"ढाँचा:Non-free use rationale" का संशोधनहरू बिचको अन्तर

categorize redirect only in file namespace; code layout, optimize
पङ्क्ति १:
<table class="toccolours licensetpl fileinfotpl fileinfotpl-type-fairuse" style="width: 100%">
<tr><th colspan=2 style="background: #d8e0ff; text-align: center; vertical-align: top; padding-right: 0.4em; width: 15%; font-size: 12pt">Non-free media information and [[Wikipedia:Non-free use rationale guideline|use rationale]] {{{Special_header|}}} <span class="licensetpl_nonfree" style="display:none">true</span> {{
#if:{{{Article|}}} | {{
#ifexist: {{{Article}}} | for [[{{{Article}}}]] <includeonly>{{
#ifeq:{{NAMESPACE}} | {{ns:file}} | {{
#ifeq:{{#invoke:redirect|isRedirect|{{{Article}}}}}|yes
| [[Category:Wikipedia non-free files with redirect backlink]]
}} <includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:file}}|[[Category:Wikipedia non-free files with valid backlink|{{PAGENAME}}]]
}}</includeonly>
| ''– WARNING: <code>{{{Article}}}</code> does not appear to exist!''<div style="font-size:smaller">Check capitalization. Enter only the exact title of a ''single'' article with ''no'' <nowiki>[[link brackets]]</nowiki> or other formatting. It is also possible the indicated article was deleted.</div> <includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:file}}|[[Category:Wikipedia
non-free files with red backlink|{{PAGENAME}}]]}}</includeonly>}}|''– NEEDS ARTICLE NAME'' <includeonly>{{#ifeq: {{NAMESPACE}} | {{ns:file}}|[[Category:Wikipedia non-free files lacking article backlink|{{PAGENAME}}]]}}</includeonly>}}<noinclude><!--
| [[Category:Wikipedia non-free files with red backlink|{{PAGENAME}}]]
}}</includeonly>
}}
| ''– NEEDS ARTICLE NAME'' <includeonly>{{
#ifeq: {{NAMESPACE}} | {{ns:file}}
| [[Category:Wikipedia non-free files lacking article backlink|{{PAGENAME}}]]
}}</includeonly>
}}<noinclude><!--
--><div style="font-size:smaller">Please read [[Wikipedia:Non-free use rationale guideline]] before using this template.</div></noinclude></th></tr>
<tr><th style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc">Description</th><td>