Template:ImageLinkTV: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
(taking out the double-wrapping <div id="stub-type")
Tag: sourceedit
No edit summary
Tag: visualeditor-wikitext
Line 1: Line 1:
<!--  
<!--  


A few words about philosophy.  The first part of this template -- that is, the bit that works on category pages, looks for the third-to-last word in the category page title.  This is because all these categories should be in the format "<story name> media something images".  So, TV story image, comic story images, CON episode images, whatever.  All you have to do is simply change the result based on whether it detects "TV", "CON", "comic" or what have you.  The only thing doesn't work for is the TVM.  Thus, the second switch here really is just checking for the TVM.  If later on down the line we find other exceptions, we can add them to the second switch (that is, the one immediately after Category=).  Don't think there will be other exceptions, but there's an allowance for it, anyway.
A few words about philosophy.  The first part of this template -- that is, the bit that works on category pages, looks for the third-to-last word in the category page title.  This is because all these categories should be in the format "<story name> media something images".  So, TV story image, comic story images, CON episode images, whatever.  All you have to do is simply change the result based on whether it detects "TV", "CON", "comic" or what have you.  


--><includeonly>{{#switch:{{NAMESPACE}}
--><includeonly>{{#switch:{{NAMESPACE}}
|Category={{#switch:{{PAGENAME}}
|Category={{#switch:{{PAGENAME}}
|Doctor Who (1996) TV story images=<div id="license"><div id="ssh">The images below come from, or are related to, the [[Doctor Who universe|''Doctor Who'' universe]] televised story, [[Doctor Who (1996)|''Doctor Who'' (1996)]].</div>
<div id=ss>If you see images below which '''have ''nothing'' to do with''' [[Doctor Who (1996)|''Doctor Who'' (1996)]] please remove them. </div></div>
|#default={{#switch:{{#explode:{{PAGENAME}}| |-3}}
|#default={{#switch:{{#explode:{{PAGENAME}}| |-3}}
|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>
|TV=<div id="license"><div id="ssh">The images below come from, or are related to, the [[Doctor Who universe|''Doctor Who'' universe]]-related 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>
<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 episode)}}|{{#replace:{{PAGENAME}}|CON episode images|}}]]''</div>
|CON=<div id="license"><div id="ssh">The images below come from the ''[[Doctor Who Confidential]]'' episode, ''[[{{#replace:{{PAGENAME}}|CON episode images|(CON episode)}}|{{#replace:{{PAGENAME}}|CON episode images|}}]]''</div>
Tech, emailconfirmed, Administrators
38,219

edits

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