Difference between revisions of "Template:Imageexists"

From Hidden Palace
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#ifexist: Media:{{{file}}} |{{#if: {{{property|}}} | [[{{{property|}}}::Media:{{{file}}}|]] |}}[[Media:{{{file}}}{{
+
<includeonly>{{#ifexist: Media:{{{file}}} |{{#if: {{{property|}}} | [[{{{property|}}}::Media:{{{file}}}|]] |}}[[File:{{{file}}}{{
 
  #if: {{{maxwidth|}}} | {{#ifexpr: {{#mediawidth:Media:{{{file}}}}}>={{{maxwidth}}} | {{!}}{{{maxwidth}}}px |}}|}}{{
 
  #if: {{{maxwidth|}}} | {{#ifexpr: {{#mediawidth:Media:{{{file}}}}}>={{{maxwidth}}} | {{!}}{{{maxwidth}}}px |}}|}}{{
 
  #if: {{{link|}}} | {{!}}link={{{link}}} |}}{{
 
  #if: {{{link|}}} | {{!}}link={{{link}}} |}}{{
 
  #if: {{{caption|}}} | {{!}}{{{caption}}} | }}]] | [[File:NoImage.png|link={{fullurl:Special:Upload|wpDestFile={{{file}}}}}|Click to upload a new image...]] {{#if: {{{missingcat|}}} | [[Category:{{{missingcat}}}|{{PAGENAME}}]] | }}<span style="display: none;">[[Media:{{{file}}}|Dummy link]]</span>}}</includeonly><noinclude>
 
  #if: {{{caption|}}} | {{!}}{{{caption}}} | }}]] | [[File:NoImage.png|link={{fullurl:Special:Upload|wpDestFile={{{file}}}}}|Click to upload a new image...]] {{#if: {{{missingcat|}}} | [[Category:{{{missingcat}}}|{{PAGENAME}}]] | }}<span style="display: none;">[[Media:{{{file}}}|Dummy link]]</span>}}</includeonly><noinclude>
 
Lovingly lifted from TCRF, somewhat edited.</noinclude>
 
Lovingly lifted from TCRF, somewhat edited.</noinclude>

Revision as of 01:17, December 26, 2022

Lovingly lifted from TCRF, somewhat edited.