Template:Kolimage: Difference between revisions

From A KoL Wiki
imported>Quietust
m last one, and this is a big one
imported>Quietust
Step 1 - update the template to support the syntax {{kolimage|directory/subdirectory|filename.gif}} with optional |rename=1 so we can automatically detect renamed images. Step 2 comes later.
Line 4: Line 4:
This image is property of [http://www.kingdomofloathing.com '''The Kingdom of Loathing'''], copyright [http://asymmetric.net/ Asymmetric Publications, LLC].
This image is property of [http://www.kingdomofloathing.com '''The Kingdom of Loathing'''], copyright [http://asymmetric.net/ Asymmetric Publications, LLC].


The original location of this image was:<br />[http://images.kingdomofloathing.com/{{{1}}} <nowiki>http://images.kingdomofloathing.com/</nowiki>{{{1}}}]
The original location of this image was:<br />[http://images.kingdomofloathing.com/{{{1}}}{{#if:{{{2|}}}|/{{{2}}}}} <nowiki>http://images.kingdomofloathing.com/</nowiki>{{{1}}}{{#if:{{{2|}}}|/{{{2}}}}}]{{#if:{{{2|}}}|
 
{{#ifeq:{{{2}}}|{{lcfirst:{{PAGENAME}}}}||This image {{#ifeq:{{{renamed|0}}}|1|was [[TheKolWiki talk:Image use policy|intentionally renamed]] when it was uploaded {{#ifexist:Image:{{{2}}}|to avoid conflicting with [[:Image:{{{2}}}|{{{2}}}]].|due to filename length restrictions.}}[[Category:Renamed In-game Images]]|may have been uploaded with the wrong filename. If this was intentional, please add <nowiki>|renamed=1</nowiki>.[[Category:Misnamed In-game Images]]}}}}|[[Category:Unchecked Images]]}}
</div>
</div>
</div>
</div>
[[Category:In-game Images]]</includeonly>
[[Category:In-game Images]]</includeonly>
<noinclude>
<noinclude>
{{prot high-use}}
{{code2}}
{{code2}}


==Usage==
==Usage==
<code><nowiki>{</nowiki>{kolimage|''directory/filename.gif''}}</code>
<code><nowiki>{{</nowiki>kolimage|''directory/subdirectory''|''filename.gif''}}</code>
 
Optional parameter: ''renamed'' - specify 1 if the image was intentionally renamed during upload to avoid conflicting with an existing image.


[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>

Revision as of 02:25, 20 July 2007


This high-use template has been protected from editing to prevent inaccurate edits and/or vandalism. Please use the talk page to discuss changes, and/or to ask an administrator to make an edit for you.
<div class="boilerplate" style="margin:0.5em auto; width:80%; clear:both; background-color:#f7f8ff; border:2px solid #8888aa; padding:4px; font-size:85%;min-height:100px; vertical-align:center;" id="imageLicense">

<div style="float:left" id="imageLicenseIcon">[[Image:leftswordguy.gif]]</div> <div style="text-align:left;margin-left:84px" id="imageLicenseText"> This image is property of [http://www.kingdomofloathing.com '''The Kingdom of Loathing'''], copyright [http://asymmetric.net/ Asymmetric Publications, LLC]. The original location of this image was:<br />[http://images.kingdomofloathing.com/{{{1}}}{{#if:{{{2|}}}|/{{{2}}}}} <nowiki>http://images.kingdomofloathing.com/</nowiki>{{{1}}}{{#if:{{{2|}}}|/{{{2}}}}}]{{#if:{{{2|}}}| {{#ifeq:{{{2}}}|{{lcfirst:{{PAGENAME}}}}||This image {{#ifeq:{{{renamed|0}}}|1|was [[TheKolWiki talk:Image use policy|intentionally renamed]] when it was uploaded {{#ifexist:Image:{{{2}}}|to avoid conflicting with [[:Image:{{{2}}}|{{{2}}}]].|due to filename length restrictions.}}[[Category:Renamed In-game Images]]|may have been uploaded with the wrong filename. If this was intentional, please add <nowiki>|renamed=1</nowiki>.[[Category:Misnamed In-game Images]]}}}}|[[Category:Unchecked Images]]}} </div> </div> [[Category:In-game Images]]

Usage

{{kolimage|directory/subdirectory|filename.gif}}

Optional parameter: renamed - specify 1 if the image was intentionally renamed during upload to avoid conflicting with an existing image.