Wikinews talk:Template messages/Infoboxes/Countries

Latest comment: 15 years ago by Bawolff in topic Requests

Creating a country infobox edit

Note: as an alternative to these instructions, there is an alternative method of creating country infoboxes, that some people may find easier. See template:Country Infoboxes for instructions on this alternate method.

Name edit

  • The name of your template should be Template:Countryname, remembering to replace Countryname with your countries name.
Example: Template:Uruguay
  • The full url of your template should be http://en.wikinews.org/wiki/Template:Countryname, remembering to replace Countryname with your countries name.
Example: http://en.wikinews.org/wiki/Template:Uruguay

Code edit

Just copy and paste the code, making sure to replace Countryname with your countries name like Uruguay.

{{InfoboxStart|infotitle=[[w:Countryname|Countryname]]}}
{{Infosection|name=Other stories from Countryname|
<DynamicPageList>
category=Published
category=Countryname
addfirstcategorydate=true
count=5
namespace=Main
</DynamicPageList>}}
<small><div style="text-align: right;">...[[Portal:Countryname|More articles here]]</div style></small>
{{Infosection|name=Location of Countryname|
[[Image:LocationCountryname.png|196px|A map showing the location of Countryname]]}}
<center>[[Portal:Countryname|To write, edit, start or view other articles on Countryname, see the Countryname Portal]]</center>

<div style="float: center; text-align: center;">
<center>[[file:Flag of Countryname.svg|center|width=60x45px|link=Portal:Countryname}}</center>
</div style="float: center; text-align: center;">
{{InfosectionEnd}}{{InfoboxEnd}}<noinclude>
An infobox for Countryname and its news. ''Are newer articles not showing? [http://en.wikinews.org/w/index.php?title=Template:Countryname&action=purge Refresh]''
</noinclude>

[[Category:Countryname]]

Images edit

Sometimes, the image of a countries map or flag may have a different name then shown in the template above. If this is the case, please check Wikimedia Commons to see what the correct picture name is for the country you creating the template for.

Some suggestions:

  • If a country is composed of two or more words, try removing the space between the words
Example: instead of Image:LocationUnited Kingdom.png, use Image:LocationUnitedKingdom.png
  • You can even try adding a word into the file name, such as of or the
Example: instead of Image:Flag of United Kingdom.svg, use Image:Flag of the United Kingdom.svg
  • Try changing the file extension from .png to .svg and vice versa

Example edit

Here is an example of the above template being used for the country Uruguay :

{{InfoboxStart|infotitle=[[w:Uruguay|Uruguay]]}}
{{Infosection|name=Other stories from Uruguay|
<DynamicPageList>
category=Published
category=Uruguay
addfirstcategorydate=true
count=5
suppresserrors=true
namespace=Main
</DynamicPageList>}}
<small><div style="text-align: right;">...[[Portal:Uruguay|More articles here]]</div style></small>
{{Infosection|name=Location of Uruguay|
[[Image:LocationUruguay.png|196px|A map showing the location of Uruguay]]}}
<center>[[Portal:Uruguay|To write, edit, start or view other articles on Uruguay, see the Uruguay Portal]]</center>

<div style="float: center; text-align: center;">
<center>[[File:Flag of Uruguay.svg|center|width=60x45px|link=Portal:Uruguay]]</center>
</div style="float: center; text-align: center;">
{{InfosectionEnd}}{{InfoboxEnd}}<noinclude>
An infobox for Uruguay and its news. ''Are newer articles not showing? [http://en.wikinews.org/w/index.php?title=Template:Uruguay&action=purge Refresh]''
</noinclude>

[[Category:Uruguay]]


Requests edit

If you do not see a country infobox listed and would like to request that it be created and/or added to the page, please do so below.

  created Template:Isle of Man (:O) -Nima Baghaei talk · cont 18:28, 5 April 2007 (UTC)Reply
Note, I modified some of the above templates to remove stuff like orcer=addcategory, which is non-sensical. (you were probably thinking about order, but it defaults to that anyways, so its not needed.
I also tried making a different, meta-template based system, that i think might be easier. see {{Country Infobox}}, and {{New Jersey}} for a instructions, and an example respectivly. Bawolff 07:55, 19 March 2009 (UTC)Reply
Return to the project page "Template messages/Infoboxes/Countries".