Template:ImageLinkTV: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
first stab at getting this to be more universal
m (Protected "Template:ImageLink": Template uses advanced coding ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(first stab at getting this to be more universal)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifeq:{{NAMESPACE}}|Category|<div id="license"><div id="ssh" >The images below come from, or are related to, the [[Doctor Who universe|''Doctor Who'' universe]] televised story, ''[[{{#replace:{{PAGENAME}}|TV story images|(TV story)}}|{{#replace:{{PAGENAME}}|TV story images|}}]]''</div>
{{#switch:{{NAMESPACE}}
<div id=ss>If you see images below which '''have ''nothing'' to do with''' ''[[{{#replace:{{PAGENAME}}|TV story images|(TV story)}}|{{#replace:{{PAGENAME}}|TV story images|}}]]'' please remove them. </div></div>|<div class="noprint" id="wiki-info">[[File:ImagesAvailable.png|25px|link=:Category:{{#replace:{{PAGENAME}}|(TV story)|}} TV story images]]</div>}}</includeonly><noinclude>{{documentation}}[[Category:category templates]][[Category:Maintenance templates]]{{lock}}</noinclude>
|Category|{{#switch:{{explode:{{PAGENAME}}| |-3}} <!--look for 3d to last word in category title-->
|TV=<div id="license"><div id="ssh" >The images below come from, or are related to, the [[Doctor Who universe|''Doctor Who'' universe]] televised story, ''[[{{#replace:{{PAGENAME}}|TV story images|(TV story)}}|{{#replace:{{PAGENAME}}|TV story images|}}]]''</div>
<div id=ss>If you see images below which '''have ''nothing'' to do with''' ''[[{{#replace:{{PAGENAME}}|TV story images|(TV story)}}|{{#replace:{{PAGENAME}}|TV story images|}}]]'' please remove them. </div></div><!--
 
-->
|CON=<div id="license"><div id="ssh" >The images below come from the ''[[Doctor Who Confidential]]'' episode, ''[[{{#replace:{{PAGENAME}}|CON episode images|(CON epsiode)}}|{{#replace:{{PAGENAME}}|CON episode images|}}]]''</div>
<div id=ss>If you see images below which '''have ''nothing'' to do with''' ''[[{{#replace:{{PAGENAME}}|CON episode images|(CON episode)}}|{{#replace:{{PAGENAME}}|CON episode images|}}]]'' please remove them. </div></div>
 
|0=<div class="noprint" id="wiki-info">[[File:ImagesAvailable.png|25px|link={{#switch:{#explode:{{PAGENAME}}|(|1}}
|TV story)|:Category:{{#replace:{{PAGENAME}}|(TV story)|}} TV story images]]</div>
|CON episode)|:Category:{{#replace:{{PAGENAME}}|(CON episode)|}} CON episode images]]</div>
}}</includeonly><noinclude>{{documentation}}[[Category:category templates]][[Category:Maintenance templates]]{{lock}}</noinclude>
85,404

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.