Difference between revisions of "Template:Alternative text missing/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Jafeluv
blackwiki>Jafeluv
(template has been moved to {{alt text missing}})
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
<pre>{{Alttext missing|optionalpar1|optionalpar2|optionalpar3}}</pre>
+
<pre>{{Alt text missing|optionalpar1|optionalpar2|optionalpar3}}</pre>
  
 
=== Parameters ===
 
=== Parameters ===
Line 19: Line 19:
 
== Calling this template from other templates ==
 
== Calling this template from other templates ==
 
When called from within another template this template MUST be called with the demospace option set to main i.e.
 
When called from within another template this template MUST be called with the demospace option set to main i.e.
:<pre>{{Alttext missing|optionalpar1|optionalpar2|optionalpar3|demospace=main}}</pre>
+
:<pre>{{Alt text missing|optionalpar1|optionalpar2|optionalpar3|demospace=main}}</pre>
  
 
Or cut and paste the following:
 
Or cut and paste the following:
Line 30: Line 30:
 
|<!-- then --><!-- do nothing -->
 
|<!-- then --><!-- do nothing -->
 
|<!-- else -->{{#if: {{{static_image|}}}
 
|<!-- else -->{{#if: {{{static_image|}}}
|<!-- then -->{{alttext missing|{{{country}}}|{{{shire_county/state}}}
+
|<!-- then -->{{alt text missing|{{{country}}}|{{{shire_county/state}}}
 
|Unclassified|demospace=main}} }} }}
 
|Unclassified|demospace=main}} }} }}
 
{{#if: {{{static_image_alt_2|}}}
 
{{#if: {{{static_image_alt_2|}}}
 
|<!-- then --><!-- do nothing -->
 
|<!-- then --><!-- do nothing -->
 
|<!-- else -->{{#if: {{{static_image_2|}}}
 
|<!-- else -->{{#if: {{{static_image_2|}}}
|<!-- then -->{{alttext missing|{{{country}}}|{{{shire_county/state}}}
+
|<!-- then -->{{alt text missing|{{{country}}}|{{{shire_county/state}}}
 
|Unclassified|demospace=main}} }} }}
 
|Unclassified|demospace=main}} }} }}
 
</pre>
 
</pre>

Revision as of 21:20, 16 August 2009

This template is used to mark articles which are missing the alternate text for images (see WP:ALT). The template is based on Template:Coord missing which uses an identical structure to flag those articles needing geographical coordinates added.

Usage

{{Alt text missing|optionalpar1|optionalpar2|optionalpar3}}

Parameters

If no parameters are present then the article will be added to Category:Unclassified articles missing image alternate text.

If parameters are present then the article with be added to Category:optionalpar articles missing image alternate text. That category may need to be created as this template only creates the link – it does not create the category.

The categories should be hidden categories using Template:hiddencat. To view hidden categories, one needs to activate them in Special:Preferences. Under "Misc", there is "Show hidden categories".

Removal of template

The template should be removed when the alternate text has been added to the article.

Calling this template from other templates

When called from within another template this template MUST be called with the demospace option set to main i.e.

{{Alt text missing|optionalpar1|optionalpar2|optionalpar3|demospace=main}}

Or cut and paste the following:

<!--

***** flag those images that need alt text adding *****

-->{{#if: {{{static_image_alt|}}}
|<!-- then --><!-- do nothing -->
|<!-- else -->{{#if: {{{static_image|}}}
|<!-- then -->{{alt text missing|{{{country}}}|{{{shire_county/state}}}
|Unclassified|demospace=main}} }} }}
{{#if: {{{static_image_alt_2|}}}
|<!-- then --><!-- do nothing -->
|<!-- else -->{{#if: {{{static_image_2|}}}
|<!-- then -->{{alt text missing|{{{country}}}|{{{shire_county/state}}}
|Unclassified|demospace=main}} }} }}

See also