Difference between revisions of "Template:How to request photo in/doc"

From blackwiki
Jump to navigation Jump to search
imported>TheGrappler
(Finally write some documentation)
 
imported>TheGrappler
(Better documentation of parameters)
Line 1: Line 1:
This template is used to give a common text to all the regional subcategories [[:Category:Wikipedia requested photographs of places]]. Just include <nowiki>{{Howtoreqphotoin}}</nowiki> at the top of the category page.
+
This template is used to give a common text to all the regional subcategories [[:Category:Wikipedia requested photographs of places]]. Just include <nowiki>{{Howtoreqphotoin|first parameter|second parameter}}</nowiki> at the top of the category page.
 +
 
 +
The '''first parameter''' is generally the full name for the region as is used to create category names e.g. "the United Kingdom".
 +
 
 +
The '''second parameter''' is optional and only needs to be put in if there is a shorter form that makes more sense in the main text e.g. "the United Kingdom-related" would sound much worse than "United Kingdom-related" so a second parameter is needed ("United Kingdom").
 +
 
 +
Once [[mw:Extension:StringFunctions]] is enabled on Wikipedia it will be possible to work out what country or region is being specified without using parameters, see [[Template talk:Howtoreqphotoin]]

Revision as of 19:32, 1 November 2007

This template is used to give a common text to all the regional subcategories Category:Wikipedia requested photographs of places. Just include {{Howtoreqphotoin|first parameter|second parameter}} at the top of the category page.

The first parameter is generally the full name for the region as is used to create category names e.g. "the United Kingdom".

The second parameter is optional and only needs to be put in if there is a shorter form that makes more sense in the main text e.g. "the United Kingdom-related" would sound much worse than "United Kingdom-related" so a second parameter is needed ("United Kingdom").

Once mw:Extension:StringFunctions is enabled on Wikipedia it will be possible to work out what country or region is being specified without using parameters, see Template talk:Howtoreqphotoin