Help:Nation

Revision as of 07:37, 17 February 2019 by Wisdom (talk | contribs) (Added tutorial instructions.)
Jump to navigation Jump to search
Wiki.png Demo Page - Nation

This page is a part of a series of demonstration articles on how to construct pages and templates for the Refuge Wiki. Information on this page is intended for informative purposes only and may not contain accurate information on the theme featured.

The Sinking Lure
TSLMap.png
The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.
Local Region:  Sea of Subculture
Capital: Tslonia
Official Language:
And other Languages
Ancient Hylian
English
Demonym: Lurean

Government
Government Style: Tribunal
Power Siv
Judiciary: Almighty Legal Page

Demographics
Population: 25
Currency: Rupees
Religion: Hylia, Three Golden Goddesses
Abbreviation: TSL




Nation
Wiki.png
Part of a series of tutorials for the Refuge Wiki
Tutorial Navigation
Demo Pages

Nation Template

Templates within MediaWiki function by calling on elements defined in the CSS file, in the JavaScript file, or just by using raw html. Templates exist to allow users to navigate this code without rewriting it countless times or by using elements that are too complicated to easily be understood. The Template:Infobox functions by using elements defined in the CSS file, while the Template:Navbox calls on the table forming mechanics of CSS. Since they're both templates within this wiki, knowledge about how either system works is unnecessary to fill one out.

This page will show you have to fill out the nation template for use on your pages. See Help:Templates for help on creating your own template from scratch.

The Info Box

Infoboxes are panels that are automatically placed on the side of whatever article that they are placed on in order to provide a brief and easy to read summary of the topic at hand. The templates Template:Character, Template:Nation, and Template:Item are all specialised templates that are derived from Template:Infobox so that they're easier to use and better convey the topic at hand. All three of these function in the same way, which means that they can be constructed in the same way once you get to know how the infobox is put together. For demonstration purposes, we'll work on filling out the nation template, which is demonstrated above. The complete interface for this template will be at the bottom of this page.

We can begin by navigating to the page that we want to write the article. If this page doesn't exist already, type the name of the article into the wiki search bar. If there is no article by that name, you will be asked if you would like to write one. In this example, we'll just practice filling out the template that's at the top of this page.

The Template and Name

Start by invoking the template:

{{nation

The {{ symbols mean you are starting the template. We can close it off with }} after we're done putting in our data.
The first entry we can add is |name =. This is usually the name that will display over the infobox in bold letters. Usually, this is the title of the article because it's the name of the subject that the article is about. But if ever you have the need to have the infobox be a title that's different, you can do so by writing something else here.

Each instance of | indicates an input slot that was designated in the template we're working in. So "name|" is registered as an input in Template:Nation that means we can put something there.

{{nation
|name        = The Sinking Lure

Subheader

The next section is the subheader. In traditional articles, this is used to write the name of the nation or region in the language that's native to it. In this example, Tslonia's primary language is Hylian, which is not a character set recognised by unicode, and it's secondary language is English (the same as the title), so we'll omit this section.

Image

We can add an image as the next section of the nation's display. This image can be a picture that represents the subject matter or a map of where it is located in the world. In this example, we're going to use File:TSLMap.png. We'll need to specify how we want this image to render. If no specification is added, the image will be rendered at its full resolution, in this case that would be one thousand pixels. Add this specification by attaching a vertical pipe and the number of pixels wide you would like it to be. Try not to disturb the natural shape of the template. The recommended setting is 225px.

{{nation
|name        = The Sinking Lure
|image       = [[File:TSLMap.png|border|225px]]

Notice how there is abundant whitespace in between the variables and what we've input for them. When the code is run, all of this is reduced to a single white space. Therefore, you may use as many spaces as you would like to organise your template and make it easier for you and everyone else to read.

Caption

In this section, we can add a caption to the picture above by using the |caption = input. This should describe the picture or the map in some capacity. Below this caption, there is a second image input available with the input |image2 = . If you included a picture of what life looks like in this nation with the first image input, it's highly recommended that you use this space to display some kind of map. There is no secondary caption available for the second image.

{{nation
|name       = The Sinking Lure
|image      = [[File:TSLMap.png|border|225px]]
|caption    = The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.

Region

All locations that use this template have to be described with the region that they are located in. Even if the subject has been transported to a void dimension, "Void" has to be an input here. The region section of data describes the physical traits about the article and you can use the following inputs:

|region - Where the subject is located. This displays inside the data section's header and must be filled out.
|capital - The name of the place the governs this subject. If the subject of the article is an uninhabited location, it can be omitted.
|language - The primary language spoken in the subject. If multiple languages are spoken, they can be all listed here anyway.
|demonym - The name of how the residence of the place are called. For example, the demonym of Refuge Isle is "Refugi".

For this example, we'll be using the following sections:

{{nation
|name       = The Sinking Lure
|image      = [[File:TSLMap.png|border|225px]]
|caption    = The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.

|region     = Sea of Subculture
|capital    = Tslonia
|language   = Ancient Hylian <br> English
|demonym    = Lurean

Government

The government data section deals with political facts about how the subject is governed. The following inputs are available here:

|gov - The style of government that the subject has, such as "Constitutional Monarchy".
|office - The title of the leader of the subject, such as "Arch-Administrator".
|leader - The name of the leader, such as "Alexis Cat".
|legtype - The type of legislature that the subject has, such as "Parliament".
|legname - The name of the legislative body, such as "House of Commons".
|court - The name of the court system, such as "Civil Law".

For The Sinking Lure, we'll do our best to convert these sections to our needs, because templates have the capacity to be used for things that they weren't strictly designed for.

{{nation
|name       = The Sinking Lure
|image      = [[File:TSLMap.png|border|225px]]
|caption    = The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.

|region     = Sea of Subculture
|capital    = Tslonia
|language   = Ancient Hylian <br> English
|demonym    = Lurean

|gov        = Tribunal
|office     = Power
|leader     = Siv
|court      = Almighty Legal Page

Demographics

The demographics section deals with information about the population and how they behave. The following inpus are available here:

|pop - The population of the subject.
|currency - The name of the official or de facto currency used by the subject and symbol if applicable.
|religion - The national or majority religion for the subject region.
|abb - The shorthand abbreviation for the subject, if applicable.

In this section, we'll add the following content:

{{nation
|name       = The Sinking Lure
|image      = [[File:TSLMap.png|border|225px]]
|caption    = The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.

|region     = Sea of Subculture
|capital    = Tslonia
|language   = Ancient Hylian <br> English
|demonym    = Lurean

|gov        = Tribunal
|office     = Power
|leader     = Siv
|court      = Almighty Legal Page

|pop        = 25
|currency   = Rupees
|religion   = Hylia, Three Golden Goddesses
|abb        = TSL

We can use the |notes = section to write in any content that doesn't fit anywhere else. For this page, there is no such content, so well finish up the template by closing it out with }}


Header text Header text
{{nation
|name       = The Sinking Lure
|image      = [[File:TSLMap.png|border|225px]]
|caption    = The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.

|region     = Sea of Subculture
|capital    = Tslonia
|language   = Ancient Hylian <br> English
|demonym    = Lurean

|gov        = Tribunal
|office     = Power
|leader     = Siv
|court      = Almighty Legal Page

|pop        = 25
|currency   = Rupees
|religion   = Hylia, Three Golden Goddesses
|abb        = TSL
}}
The Sinking Lure
TSLMap.png
The Sinking Lure Archipelago map overview, featuring the capital, Tslonia.
Local Region:  Sea of Subculture
Capital: Tslonia
Official Language:
And other Languages
Ancient Hylian
English
Demonym: Lurean

Government
Government Style: Tribunal
Power Siv
Judiciary: Almighty Legal Page

Demographics
Population: 25
Currency: Rupees
Religion: Hylia, Three Golden Goddesses
Abbreviation: TSL

Base Template

The complete interface for this template is below. Copy this template to your article's page and feel free to delete or leave the parts blank that you do not need to use.

{{nation
|name      = 
|sub       =
|image     =
|caption   =
|image2    =

|region    =
|capital   =
|language  =
|demonym   =

|gov       =
|office    =
|leader    =
|legtype   =
|legname   =
|court     =

|pop       =
|currency  =
|religion  =
|abb       =

|notes     =
}}