Template:Kolimage: Difference between revisions

From A KoL Wiki
imported>Dehstil
mNo edit summary
m Fix typo
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><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">
<includeonly><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">[[File: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].
<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}}} <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|}}}|<br /><br />{{#ifeq:{{{2}}}|{{lcfirst:{{PAGENAMEE}}}}||{{#ifeq:{{{renamed|0}}}|1|This image was [[A KoL Wiki:Filename issues table|intentionally renamed]] when it was uploaded {{#ifexist:File:{{{2}}}|to avoid conflicting with [[:File:{{{2}}}|{{{2}}}]].|due to filename length restrictions.}}[[Category:Renamed In-game Images]]|{{#ifeq:{{{casesensitive|0}}}|1||This image may have been uploaded with the wrong filename. If this was intentional, please add <nowiki>|renamed=1</nowiki>. If the name is actually correct you may need to add <nowiki>|casesensitive=1</nowiki>.[[Category:Misnamed In-game Images]]}}}}}}|{{#ifeq:{{{nodirs|0}}}|0|[[Category:Misnamed In-game Images]]|}}}}
</div>
{{#ifeq:{{filepath:{{PAGENAME}}}}|https://wiki.kingdomofloathing.com/images/a/ad/{{PAGENAME}}|'''If you do not see this image, it is likely being blocked by an advertisement filter.'''[[Category:Ad-filtered Images]]}}</div></div>[[Category:In-game Images]]</includeonly>
</div>
[[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.
:''nodirs'' - specify 1 if the image has no directories other than the base image directory, or it will be interpreted as a [[:Category:Misnamed In-game Images|misnamed image]].
:''casesensitive'' - specify 1 if the image is detected as misnamed by this template due to having an upper-case first letter, and so should not be categorized in [[:Category:Misnamed In-game Images]].


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

Latest revision as of 10:14, 5 September 2025


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">[[File: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|}}}|<br /><br />{{#ifeq:{{{2}}}|{{lcfirst:{{PAGENAMEE}}}}||{{#ifeq:{{{renamed|0}}}|1|This image was [[A KoL Wiki:Filename issues table|intentionally renamed]] when it was uploaded {{#ifexist:File:{{{2}}}|to avoid conflicting with [[:File:{{{2}}}|{{{2}}}]].|due to filename length restrictions.}}[[Category:Renamed In-game Images]]|{{#ifeq:{{{casesensitive|0}}}|1||This image may have been uploaded with the wrong filename. If this was intentional, please add <nowiki>|renamed=1</nowiki>. If the name is actually correct you may need to add <nowiki>|casesensitive=1</nowiki>.[[Category:Misnamed In-game Images]]}}}}}}|{{#ifeq:{{{nodirs|0}}}|0|[[Category:Misnamed In-game Images]]|}}}} {{#ifeq:{{filepath:{{PAGENAME}}}}|https://wiki.kingdomofloathing.com/images/a/ad/{{PAGENAME}}|'''If you do not see this image, it is likely being blocked by an advertisement filter.'''[[Category:Ad-filtered 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.
nodirs - specify 1 if the image has no directories other than the base image directory, or it will be interpreted as a misnamed image.
casesensitive - specify 1 if the image is detected as misnamed by this template due to having an upper-case first letter, and so should not be categorized in Category:Misnamed In-game Images.