Difference between revisions of "Template:Image of"

From Wikispooks
Jump to navigation Jump to search
(clarify problem)
(test...)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{TemplateProblem|This does not seem to be working at all, as of June 2015 - but it is not being used anywhere. Left for reference, not for use.}}[[category:Semantic Utility Templates]]'''This is a semantic utility template to display the image of a page.'''<br/>
+
<noinclude>[[category:Semantic Utility Templates]]'''This is a semantic utility template to display the image of a page.'''<br/>
 +
The {{t|size}} and {{t|link}} parameters are optional, defaulting to 150px, and linking to the image.
 
Usage:
 
Usage:
  <nowiki>{{</nowiki>{{PAGENAME}}|''Pagename''}}<nowiki>}}</nowiki></noinclude><includeonly>{{#ask: [[-Has image::{{{1}}}]]}}<includeonly>
+
  <nowiki>{{</nowiki>{{PAGENAME}}|pagename=''Pagename''|size=200px<nowiki>}}</nowiki></noinclude><includeonly>{{#if: {{#ask: [[-Has image::{{{pagename|}}}]]|link=none}}|[[{{#ask: [[-Has image::{{{pagename|}}}]]|link=none}}{{!}}{{#if: {{{size|}}}|{{{size|}}}|150px}}{{#if: {{{link|}}}|{{!}}link={{{link|}}}}}]]}}<includeonly>

Latest revision as of 06:07, 6 October 2016

This is a semantic utility template to display the image of a page.
The size and link parameters are optional, defaulting to 150px, and linking to the image. Usage:

{{Image of|pagename=Pagename|size=200px}}