Difference between revisions of "Template:Display image of"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>category:Semantic Utility Templates'''This is a semantic utility template to display the Property:Display image of a page.'''<br/> The {{t|size}} and {{t|li...")
 
Line 2: Line 2:
 
The {{t|size}} and {{t|link}} parameters are optional, defaulting to 150px, and linking to the image.
 
The {{t|size}} and {{t|link}} parameters are optional, defaulting to 150px, and linking to the image.
 
Usage:
 
Usage:
  <nowiki>{{</nowiki>{{PAGENAME}}|pagename=''Pagename''|size=200px<nowiki>}}</nowiki></noinclude><includeonly>{{#if: {{#ask: [[-Display image::{{{pagename|}}}]]|link=none}}|[[image:{{#ask: [[-Display image::{{{pagename|}}}]]|link=none}}{{!}}{{#if: {{{size|}}}|{{{size|}}}|150px}}{{#if: {{{link|}}}|{{!}}link={{{link|}}}}}]]}}<includeonly>
+
  <nowiki>{{</nowiki>{{PAGENAME}}|pagename=''Pagename''|size=200px<nowiki>}}</nowiki></noinclude><includeonly>{{#if: {{#ask: [[-Display image::{{{pagename|}}}]]|link=none}}|[[{{#ask: [[-Display image::{{{pagename|}}}]]|link=none}}{{!}}{{#if: {{{size|}}}|{{{size|}}}|150px}}{{#if: {{{link|}}}|{{!}}link={{{link|}}}}}]]}}<includeonly>

Revision as of 00:49, 6 October 2016

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

{{Display image of|pagename=Pagename|size=200px}}