Template:ImageLinkTV: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
<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 epsiode)}}|{{#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 epsiode)}}|{{#replace:{{PAGENAME}}|CON episode images|}}]]''</div> | ||
<div id=ss>If you see images below which ''' | <div id=ss>If you see images below which '''did not''' come from ''[[{{#replace:{{PAGENAME}}|CON episode images|(CON episode)}}|{{#replace:{{PAGENAME}}|CON episode images|}}]]'' please remove them. </div></div> | ||
}} | }} | ||
|#default=<div class="noprint" id="wiki-info"> | |#default=<div class="noprint" id="wiki-info"> | ||
|TV story)=:Category:{{#replace:{{PAGENAME}}|(TV story)|}} TV story images]] | {{#switch:{{#explode:{{PAGENAME}}|(|1}} | ||
|CON episode)=:Category:{{#replace:{{PAGENAME}}|(CON episode)|}} CON episode images]] | |TV story)=[[File:ImagesAvailable.png|25px|link=:Category:{{#replace:{{PAGENAME}}|(TV story)|}} TV story images]] | ||
}}< | |CON episode)=[[File:ImagesAvailable.png|25px|link=:Category:{{#replace:{{PAGENAME}}|(CON episode)|}} CON episode images]] | ||
}}</div>}}</includeonly><noinclude>{{documentation}}[[Category:category templates]][[Category:Maintenance templates]]{{lock}}</noinclude> |
Revision as of 16:40, 26 March 2012
Instructions for {{ImageLinkTV}}
{{ImageLinkTV}}, formerly known as {{StoryImages}}, is a template that works differently in different namespaces. In the category namespace it provides a link to the story page from which the images are drawn. In the main namespace, it provides a little tag that looks. Users can then click on that image and go to the relevant category of images.
Usage
Usage is easy. Just place {{ImageLinkTV}} on both the story page and the related category page. So, you'd put {{ImageLinkTV}} on both Castrovalva (TV story) and Category:Castrovalva TV story images.
Example
It's impossible to show all that this template does in the template namespace, because it's not designed to work in this namespace. But the tag which is displayed on a story page is shown at right.
Template classification
This template is deliberately classified as "unknown" so that it will show up on a variety of devices, including phones. This is different from the policy used for the similar-looking stub tags, which we class as "notice" templates.
See also
- {{ImageLink}}, a similar template that works for people, things and concepts.
- {{ImageLinkComics}}, a similar template that works for comic stories