Difference between revisions of "Template:Missingimage"

From Twinsuniverse
Jump to: navigation, search
m
(removed the incorrect mentioning of categorization)
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{{mbox|class=notice|{{
 
{{mbox|class=notice|{{
 
     #if: {{{1|}}}
 
     #if: {{{1|}}}
     |The article image "{{{1}}}" does not exist or has no description page yet.
+
     |The article image "{{{1}}}" {{categorylink|category=Articles with a missing image|catlabel=list all|label=does not exist or has no description page yet}}.
     |This article or section might need an '''image''' to illustrate the subject.
+
     |This article or section might need an '''image''' {{categorylink|category=Articles without an image|catlabel=list all|label=to illustrate the subject}}.
}}}}<hr style="width:5px;color:black;background:grey" /></includeonly><noinclude>
+
}}}}</includeonly><noinclude>{{Infobox Template
 +
|purpose=messagebox
 +
|singletag=optional
 +
|multiline=yes
 +
|gamerelated=no
 +
|suppressible=
 +
|choice=
 +
|cat1=
 +
|var1=
 +
}}
 +
 
 
This renders the message on the article that the article image is missing.
 
This renders the message on the article that the article image is missing.
  
Line 11: Line 21:
  
 
==Syntax==
 
==Syntax==
  <nowiki>{{image|filename}}</nowiki>
+
  <nowiki>{{missingimage|filename}}</nowiki>
  
 
==Examples==
 
==Examples==
  <nowiki>{{image}}</nowiki>
+
  <nowiki>{{missingimage}}</nowiki>
  
:{{mbox|class=notice|This article or section might need an '''image''' to illustrate the subject.}}
+
:{{mbox|class=notice|This article or section might need an '''image''' {{categorylink|category=Articles without an image|catlabel=list all|label=to illustrate the subject}}.}}
  
  
  <nowiki>{{image|Nonexisting file.png}}</nowiki>
+
  <nowiki>{{missingimage|Nonexisting file.png}}</nowiki>
  
:{{mbox|class=notice|The article image "Nonexisting file.png" does not exist or has no description page yet.}}
+
:{{mbox|class=notice|The article image "Nonexisting file.png" {{categorylink|category=Articles with a missing image|catlabel=list all|label=does not exist or has no description page yet}}.}}
  
[[Category:Mbox Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:22, 4 June 2014

Missingimage
Purpose

Messagebox [list all]

Single tag

Optional [list all]

Multi-line

Yes [list all]

Protected

No [list all]

Game related

No [list all]

Categorization
Categories

none [list all]

Variables
Names

none [list all]

Subpages

This renders the message on the article that the article image is missing.

Parameters

  1. The filename of the image that is missing, or an empty string to indicate the reference is missing altogether (case sensitive, defaults to empty string)

Syntax

{{missingimage|filename}}

Examples

{{missingimage}}
  This article or section might need an image to illustrate the subject [list all].


{{missingimage|Nonexisting file.png}}
  The article image "Nonexisting file.png" does not exist or has no description page yet [list all].