User:Orioni/Sandbox 7: Difference between revisions
m (→Add the flags: +info) |
m (→Create the countryflag shortcut: +info) |
||
Line 224: | Line 224: | ||
===Create the countryflag shortcut=== | ===Create the countryflag shortcut=== | ||
Now we | Now we set up the nice little miniature flags that are frequently used in lists. | ||
Go to https://iiwiki.us/wiki/Template:Country_data_REPLACE_THIS_WITH_THE_NATION_NAME | |||
1. Go to https://iiwiki.us/wiki/Template:Country_data_REPLACE_THIS_WITH_THE_NATION_NAME | |||
2. Change the URL to include the country name, and create the page. | |||
3. Copypaste the following information: | |||
<pre>{{ {{{1<noinclude>|country showdata</noinclude>}}} | <pre>{{ {{{1<noinclude>|country showdata</noinclude>}}} | ||
Line 234: | Line 238: | ||
| name = {{{name|}}} | | name = {{{name|}}} | ||
| variant = {{{variant|}}} <!-- only necessary if there is one or more flag alias-variant parameters, otherwise omit --> | | variant = {{{variant|}}} <!-- only necessary if there is one or more flag alias-variant parameters, otherwise omit --> | ||
}} | }}</pre> | ||
</pre> | 4. Replace the nation name. | ||
5. Click "Show preview" to test. | |||
6. Click "Save changes" when everything looks alright. (Or ask for help when something doesn't look right.) | |||
You can now use the following shortcode to show your country flag next to your country name. This is useful for lists. | |||
<pre>{{flag|REPLACE_THIS_WITH_THE_NATION_NAME}}</pre> | |||
===Create the country category=== | ===Create the country category=== |
Revision as of 06:34, 8 August 2023
This page explains how to easily add a new country and integrate it with the existing Eurth lore. There is also a shorter tutorial on how to remove any retired countries.
Before you begin
It is very much recommended that new members read through the MoS and the Wikimedia help page before creating pages.
Adding a country
Create the country page
We use the default {{template:infobox_country}} made available by iiWiki. I've added some shortcuts and lore hints to help players move forward.
Add the flags
If you used the template in step 1, you'll now see a link to your flag in the infobox sidebar.
- Clicking that will take you to the image uploader, where you can add your flag in the right place.
- Preferably your image will be in the PNG or SVG format. These make the prettiest images.
- Last step before saving your: make sure the image is added to the category with the country name. This keeps everything about your country neat and tidy in one single country category. It will save you some searching later. Use the following code snippet in the image description, and replace our dummy text with your actual country name:
[[Category:REPLACE_THIS_WITH_THE_NATION_NAME]]
All done. Should ever want to update your flag, you can replace it on the image description page. Click on the text link "Upload a new version of this file". Once you've replaced your image, it will also automatically update the image everywhere you used it. So no more going back and re-doing all your other pages.
Create the countryflag shortcut
Now we set up the nice little miniature flags that are frequently used in lists.
1. Go to https://iiwiki.us/wiki/Template:Country_data_REPLACE_THIS_WITH_THE_NATION_NAME
2. Change the URL to include the country name, and create the page.
3. Copypaste the following information:
{{ {{{1<noinclude>|country showdata</noinclude>}}} | alias = REPLACE_THIS_WITH_THE_NATION_NAME | flag alias = Flag of REPLACE_THIS_WITH_THE_NATION_NAME.png | size = {{{size|}}} | name = {{{name|}}} | variant = {{{variant|}}} <!-- only necessary if there is one or more flag alias-variant parameters, otherwise omit --> }}
4. Replace the nation name.
5. Click "Show preview" to test.
6. Click "Save changes" when everything looks alright. (Or ask for help when something doesn't look right.)
You can now use the following shortcode to show your country flag next to your country name. This is useful for lists.
{{flag|REPLACE_THIS_WITH_THE_NATION_NAME}}
Create the country category
Make sure to create the country category, and save it with this information. This will help us keep all information collected in one place.
{{main|REPLACE_THIS_WITH_THE_NATION_NAME}} [[Category:Countries (Eurth)]]
Add the country to our most common lists
Make sure you respect the list rules and keep everything sorted. Usually these lists are in alphabetical order.
Removing a country
- Remove the country from all the common lists mentioned above.
- Use the Special:WhatLinksHere feature to check any remaining links.
- Change the parent category from [[Category:Countries (Eurth)]] to:
[[Category:Retired countries (Eurth)]]