Template:ImageLinkDoc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(fix)
Tag: sourceedit
m (Giving these templates their own CSS ID.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{NAMESPACE}}
<includeonly>{{#switch:{{NAMESPACE}}
|Category=<div id="license">The images below are of, or are related to, the documentary, ''[[{{#replace:{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|({{{1|}}}documentary)}}| images|}}|{{#replace:{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|}}|images|}}]]''.  If you see images below which '''have ''nothing'' to do with '''''[[{{#replace:{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|({{{1|}}}documentary)}}| images|}}|{{#replace:{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|}}|images|}}]]'' please remove them.</div>
|Category=<div id="license">The images below are of, or are related to, the documentary, ''[[{{#ifexist:{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|({{{1|}}}documentary)}}|{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|({{{1|}}}documentary)}}|{{#replace:{{PAGENAME}}|documentary images|}}}}|{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|}}]]''.  If you see images below which '''have ''nothing'' to do with '''''[[{{#ifexist:{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|({{{1|}}}documentary)}}|{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|({{{1|}}}documentary)}}|{{#replace:{{PAGENAME}}|documentary images|}}}}|{{#replace:{{PAGENAME}}|{{{1|}}}documentary images|}}]]'' please remove them.</div>
|#default=<div class="stub-type">[[File:ImagesAvailable.png|link=:Category:{{da smw|{{PAGENAME}}}} {{{1|}}}documentary images]]</div>
|#default=<div class="stub-type" id="image-link">[[File:ImagesAvailable.png|link=:Category:{{da smw|{{PAGENAME}}}} {{{1|}}}documentary images]]</div>
}}</includeonly><noinclude>[[Category:category templates]][[category:image link templates]]{{documentation}}</noinclude>
}}</includeonly><noinclude>[[Category:category templates]][[category:image link templates]]{{documentation}}</noinclude>

Latest revision as of 20:23, 2 April 2024

Instructions for {{ImageLinkDoc}}
See Template:ImageLinkTV for an understanding of the basic philosophy behind this template. Most of the time, however, you simply place {{ImageLinkDoc}} on the documentary's page, and the category page, and walk away. The category name will always have "documentary" in the title, and the category page will always link to the correct title—either dabbed or undabbed.

The only complicated bit is how to handle those handful of documentaries that have something more than just (documentary) as their dab term. For instance, what do you do when you encounter something like The Science of Doctor Who (2013 documentary)?

Easy. You place the following on both the story page and the category page:

{{ImageLinkDoc|2013 }}

Note that the single space between "2013" and the closing curly braces is required.