Test nation navbox
- Locate the Template:
- Go to the template page on your wiki that serves as the example or template base. This page is usually named something like
"Template:Test nation navbox"
.
- Go to the template page on your wiki that serves as the example or template base. This page is usually named something like
- Copy the Template Code:
- Open the edit mode of the
"Template:Test nation navbox"
page. - Select all the code provided in the template editor.
- Copy the entire block of code to your clipboard.
- Open the edit mode of the
2. Create a New Template Page for Your Nation
- Create a New Template Page:
- Go to your wiki and create a new page. The naming convention for the template page should be
"Template:NavBox<nation name>"
. - Replace
<nation name>
with the actual name of your nation. For example, if you're creating a navbox for France, the page should be named"Template:NavBoxFrance"
.
- Go to your wiki and create a new page. The naming convention for the template page should be
- Paste the Template Code:
- Enter the edit mode for your newly created template page,
"Template:NavBox<nation name>"
. - Paste the copied template code from
"Test nation navbox"
.
- Enter the edit mode for your newly created template page,
- Customize the Template:
- Edit the template to customize it for your nation. This involves changing the placeholder text and links to reflect the specific articles and subcategories relevant to your nation.
- For example, update the links to point to the appropriate pages, like
[[Prehistoric France|Prehistoric period]]
or[[Regions of France|Regions]]
.
- Save the Template Page:
- After making your changes, save the new template page. You now have a customized navigation box template for your nation.
3. Use the Template on Any Page
- Add the Template to a Page:
- To use the navbox template on any page related to your nation, simply add the following syntax at the bottom of the page:
- Replace
<nation name>
with the name of your nation. For example, for France, you would add{{NavBoxFrance}}
.
- Repeat for Multiple Pages:
- You can add the navbox template to as many pages as needed within your wiki. This makes it easy to maintain a consistent navigation structure across all related articles.
Example Walkthrough
Let’s go through an example to make it clearer:
Example: Creating and Using a NavBox for France
- Copy the Template:
- Go to
"Template:Test nation navbox"
and copy the code.
- Go to
- Create the Template Page for France:
- Create a new page:
"Template:NavBoxFrance"
. - Paste the copied code and customize it with links related to France (e.g.,
[[Regions of France|Regions]]
).
- Create a new page:
- Add the NavBox to Articles:
- On each article related to France (like "History of France", "Geography of France", etc.), add the following at the bottom:
{{NavBoxFrance}}
By following these steps, you create a reusable, centralized navigation box that can be easily maintained and updated from a single template page. This method ensures that any changes to the template are reflected across all pages using it, saving time and ensuring consistency.
TEMPLATE CODE TO COPY
{{NatTopics | top color = #BDBDBD | title color = #4169e1 | flag = France_flag.png | nation name = France | history1 = Prehistory | history_links1 = [[Prehistoric France|Prehistoric period]], [[Stone Age|Stone Age]] | history2 = Greek colonies | history_links2 = [[Massalia|Marseille]] | history3 = Roman Gaul | history_links3 = [[Gaul|Roman history]] | history4 = Kingdom of France | history_links4 = [[Frankish Kingdom|Franks]], [[Carolingian Empire]] | history5 = French Revolution | history_links5 = [[Storming of the Bastille|Bastille]], [[Reign of Terror|Terror]] | history6 = World War II | history_links6 = [[Vichy France|Vichy regime]], [[French Resistance|Resistance]] | geography1 = Administrative divisions | geography_links1 = [[Regions of France|Regions]], [[Departments of France|Departments]] | geography2 = Cities | geography_links2 = [[Paris|Capital]], [[Lyon|Lyon]] | geography3 = Climate | geography_links3 = [[Climate of France|Climate types]] | geography4 = Borders | geography_links4 = [[France–Germany border|Germany]], [[France–Italy border|Italy]] | geography5 = Rivers | geography_links5 = [[Seine River|Seine]], [[Loire River|Loire]] | geography6 = Lakes | geography_links6 = [[Lake Geneva|Geneva]] | politics1 = Constitution | politics_links1 = [[French Constitution|Constitution]] | politics2 = Elections | politics_links2 = [[French presidential election|Presidential]], [[French legislative election|Legislative]] | politics3 = Foreign relations | politics_links3 = [[France in the European Union|EU]], [[France and NATO|NATO]] | politics4 = Political parties | politics_links4 = [[La République En Marche!|LREM]], [[National Rally (France)|National Rally]] | politics5 = Judiciary | politics_links5 = [[Judiciary of France|Judicial system]] | politics6 = Military | politics_links6 = [[French Armed Forces|Armed Forces]] | economy1 = Agriculture | economy_links1 = [[Agriculture in France|Agriculture sector]] | economy2 = Automotive industry | economy_links2 = [[Renault|Renault]], [[Peugeot|Peugeot]] | economy3 = Banking | economy_links3 = [[Banque de France|Central Bank]] | economy4 = Energy | economy_links4 = [[Nuclear power in France|Nuclear power]], [[Renewable energy in France|Renewables]] | economy5 = Stock exchange | economy_links5 = [[Euronext|Stock market]] | economy6 = Transport | economy_links6 = [[Transport in France|Transport system]] | society1 = Demographics | society_links1 = [[Demographics of France|Population statistics]] | society2 = Education | society_links2 = [[Education in France|Education system]] | society3 = Health care | society_links3 = [[Health care in France|Healthcare system]] | society4 = Immigration | society_links4 = [[Immigration to France|Immigration policy]] | society5 = Religion | society_links5 = [[Religion in France|Religious demographics]] | society6 = LGBT rights | society_links6 = [[LGBT rights in France|LGBT laws]] | culture1 = Architecture | culture_links1 = [[Gothic architecture in France|Gothic]], [[Renaissance architecture in France|Renaissance]] | culture2 = Art | culture_links2 = [[Louvre|Louvre Museum]], [[Impressionism|Impressionism]] | culture3 = Cinema | culture_links3 = [[French cinema|French films]], [[Cannes Film Festival|Cannes]] | culture4 = Cuisine | culture_links4 = [[French cuisine|Cuisine]], [[French wine|Wine]] | culture5 = Literature | culture_links5 = [[French literature|Literature]] | culture6 = Music | culture_links6 = [[French music|Music genres]], [[Opera|Opera]] }}
EXAMPLE OF HOW IT MAY LOOK
History |
Prehistory: Prehistoric period, Stone Age |
---|---|
Geography |
Administrative divisions: Regions, Departments |
Politics |
Constitution: Constitution |
Economy |
Agriculture: Agriculture sector |
Society |
Demographics: Population statistics |
Culture |
Architecture: Gothic, Renaissance |