Test nation navbox: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=== Step-by-Step Guide to Creating and Using a Nation NavBox Template === | |||
==== '''1. Copy the Template Code from the "Test Nation Navbox" Template Page''' ==== | |||
# '''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 <code>"Template:Test nation navbox"</code>. | |||
# '''Copy the Template Code:''' | |||
#* Open the edit mode of the <code>"Template:Test nation navbox"</code> page. | |||
#* Select all the code provided in the template editor. | |||
#* Copy the entire block of code to your clipboard. | |||
==== '''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 <code>"Template:NavBox<nation name>"</code>. | |||
#* Replace <code><nation name></code> with the actual name of your nation. For example, if you're creating a navbox for France, the page should be named <code>"Template:NavBoxFrance"</code>. | |||
# '''Paste the Template Code:''' | |||
#* Enter the edit mode for your newly created template page, <code>"Template:NavBox<nation name>"</code>. | |||
#* Paste the copied template code from <code>"Test nation navbox"</code>. | |||
# '''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 <code><nowiki>[[Prehistoric France|Prehistoric period]]</nowiki></code> or <code><nowiki>[[Regions of France|Regions]]</nowiki></code>. | |||
# '''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 <code><nation name></code> with the name of your nation. For example, for France, you would add <code><nowiki>{{NavBoxFrance}}</nowiki></code>. | |||
# '''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 <code>"Template:Test nation navbox"</code> and copy the code. | |||
# '''Create the Template Page for France:''' | |||
#* Create a new page: <code>"Template:NavBoxFrance"</code>. | |||
#* Paste the copied code and customize it with links related to France (e.g., <code><nowiki>[[Regions of France|Regions]]</nowiki></code>). | |||
# '''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: | |||
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 == | |||
<pre> | <pre> | ||
{{NatTopics | {{NatTopics | ||
Line 81: | Line 129: | ||
</pre> | </pre> | ||
== EXAMPLE OF HOW IT MAY LOOK == | |||
{{Template:TestNavBox}} | {{Template:TestNavBox}} |
Revision as of 03:18, 2 September 2024
- 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:
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 |