Difference between revisions of "NSWiki:Linking"
(Created page with "I have created this short page to explain the easiest ways to link to Nations and Regions on NSWiki. ==Simple Linking== The simplest way to link to a nation is to do as follo...") |
(→National/Regional Flag Linking) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | This short page explains the easiest ways to link to Nations and Regions on NSWiki. | |
+ | |||
+ | ==Very simple linking== | ||
+ | NSWiki uses the same linking format as most other popular wikis, that is: | ||
+ | <pre><nowiki>[[Main Page]]</nowiki></pre> | ||
+ | returning [[Main Page]] | ||
+ | |||
+ | You can also give your links different titles and point them to the same page by using this format: | ||
+ | <pre><nowiki>[[Main Page|a link to the NSWiki Main Page]]</nowiki></pre> | ||
+ | returning [[Main Page|a link to the NSWiki Main Page]] | ||
==Simple Linking== | ==Simple Linking== | ||
Line 8: | Line 17: | ||
{{nation|Jenlom}} | {{nation|Jenlom}} | ||
− | |||
The same also applies to regions, with: | The same also applies to regions, with: | ||
Line 17: | Line 25: | ||
{{region|The North Pacific}} | {{region|The North Pacific}} | ||
− | ==Flag Linking== | + | ==National/Regional Flag Linking== |
You can also include a small flag image (to make the link look like a nation link from NationStates), like this: | You can also include a small flag image (to make the link look like a nation link from NationStates), like this: | ||
− | <pre><nowiki>{{nation| | + | <pre><nowiki>{{nation|Anhur|Anhur}}</nowiki></pre> |
− | {{nation| | + | {{nation|Anhur|Anhur}} |
The same again goes for regions, which can be linked like so: | The same again goes for regions, which can be linked like so: | ||
Line 28: | Line 36: | ||
{{region|Europeia|Europeia}} | {{region|Europeia|Europeia}} | ||
− | =='''Important'''== | + | ==='''Important'''=== |
− | '''If the nation you are linking to has spaces in it''', for simple | + | '''If the nation you are linking to has spaces in it''', for simple linking, this is no problem. Simply type normally and your link will appear. |
− | For flag | + | For flag linking, the second name must have underscores ("_") in, otherwise the flag image will not appear. |
<pre><nowiki>{{nation|The Campbell Nation|The_Campbell_Nation}}</nowiki></pre> | <pre><nowiki>{{nation|The Campbell Nation|The_Campbell_Nation}}</nowiki></pre> | ||
Line 42: | Line 50: | ||
<pre><nowiki>{{region|The North Pacific|The North Pacific}}</nowiki></pre> | <pre><nowiki>{{region|The North Pacific|The North Pacific}}</nowiki></pre> | ||
{{region|The North Pacific|The North Pacific}} | {{region|The North Pacific|The North Pacific}} | ||
+ | |||
+ | == Other Flag Linking == | ||
+ | |||
+ | In some situations, you may want to link something other than a nation or region to a flag (for example in sporting situations where athletes have their national or regional flag next to their name). To achieve this, use: | ||
+ | <pre><nowiki>{{flag|An Athlete|region|The_North_Pacific}}</nowiki></pre> | ||
+ | {{flag|An Athlete|region|The_North_Pacific}} | ||
+ | <pre><nowiki>{{flag|Another Athlete|nation|Jenlom}}</nowiki></pre> | ||
+ | {{flag|Another Athlete|nation|Jenlom}} | ||
+ | |||
+ | Here, "An Athlete" may refer to the name of any article on NSWiki, "region" or "nation" defines whether it is a regional or national flag that should be displayed, and the final variable is the name of that flag. '''Note that again you are required to use underscores in the final variable'''. |
Latest revision as of 05:57, 29 January 2014
This short page explains the easiest ways to link to Nations and Regions on NSWiki.
Contents
Very simple linking
NSWiki uses the same linking format as most other popular wikis, that is:
[[Main Page]]
returning Main Page
You can also give your links different titles and point them to the same page by using this format:
[[Main Page|a link to the NSWiki Main Page]]
returning a link to the NSWiki Main Page
Simple Linking
The simplest way to link to a nation is to do as follows:
{{nation|Jenlom}}
This will return a link like this:
The same also applies to regions, with:
{{region|The North Pacific}}
Returning:
National/Regional Flag Linking
You can also include a small flag image (to make the link look like a nation link from NationStates), like this:
{{nation|Anhur|Anhur}}
The same again goes for regions, which can be linked like so:
{{region|Europeia|Europeia}}
Important
If the nation you are linking to has spaces in it, for simple linking, this is no problem. Simply type normally and your link will appear.
For flag linking, the second name must have underscores ("_") in, otherwise the flag image will not appear.
{{nation|The Campbell Nation|The_Campbell_Nation}}
{{region|The North Pacific|The_North_Pacific}}
If you do not type this in, your flag image will simply not appear.
{{region|The North Pacific|The North Pacific}}
Other Flag Linking
In some situations, you may want to link something other than a nation or region to a flag (for example in sporting situations where athletes have their national or regional flag next to their name). To achieve this, use:
{{flag|An Athlete|region|The_North_Pacific}}
Template:Country data An Athlete
{{flag|Another Athlete|nation|Jenlom}}
Template:Country data Another Athlete
Here, "An Athlete" may refer to the name of any article on NSWiki, "region" or "nation" defines whether it is a regional or national flag that should be displayed, and the final variable is the name of that flag. Note that again you are required to use underscores in the final variable.