Difference between revisions of "NSWiki:Advanced Templates"

From NSwiki, the NationStates encyclopedia.
Jump to: navigation, search
(added some userboxes)
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
 
This page lists templates that aren't listed on [[NSwiki:Info boxes]] or [[NSwiki:Template messages]]. These are generally more advanced, larger, or used for more obscure types of pages.
 
This page lists templates that aren't listed on [[NSwiki:Info boxes]] or [[NSwiki:Template messages]]. These are generally more advanced, larger, or used for more obscure types of pages.
  
Line 21: Line 20:
 
*[[Template:Nation Infobox]]
 
*[[Template:Nation Infobox]]
 
*[[Template:Infobox NationEx]]
 
*[[Template:Infobox NationEx]]
===WarBox===
+
===exVeteran===
[[Template:WarBox]]<br>
+
Used for wars.
+
===River===
+
[[Template:River]]<br>
+
This infobox is for any river in NationStates.
+
===School===
+
[[Template:School]]<br>
+
This infobox is for any school (elementary, secondary, tertiary) in NationStates.
+
===Infobox exVeteran===
+
 
[[Template:Infobox exVeteran]]<br>
 
[[Template:Infobox exVeteran]]<br>
 
For use on dead and respected nationpages.
 
For use on dead and respected nationpages.
===Infobox DEATNation===
+
===DEATNation===
 
[[Template:Infobox DEATNation]]<br>
 
[[Template:Infobox DEATNation]]<br>
 
For use on moderator-deleted nationpages.
 
For use on moderator-deleted nationpages.
 +
===Geographical infoboxes===
 +
* [[Template:Infobox City 2]] - a more advanced infobox used for city pages
 +
* [[Template:Infobox Settlement]] - used for pages about settlements smaller than cities
 +
* [[Template:River]] - used for river pages
 +
===School===
 +
[[Template:School]]<br>
 +
This infobox is for any school (elementary, secondary, tertiary) in NationStates.
 
===Religion===
 
===Religion===
 
[[Template:Religion]]<br>
 
[[Template:Religion]]<br>
 
For use on religion pages.
 
For use on religion pages.
 +
===CurrencyBox===
 +
[[Template:CurrencyBox]] <br>
 +
For use on currency pages.
 +
===WarBox===
 +
[[Template:WarBox]]<br>
 +
Used for war pages.
 +
===TLD===
 +
[[Template:TLD]]<br>
 +
Used on Internet TLD pages.
 +
 +
===Political Parties===
 +
[[Template:Infobox_Political_Party]]<br>
 +
Used on political party pages.
 +
 
==Footer Linkboxes==
 
==Footer Linkboxes==
 
Put these at the ''bottom'' of appropriate pages. They'll add a box with links to all boxes in a certain category.
 
Put these at the ''bottom'' of appropriate pages. They'll add a box with links to all boxes in a certain category.
 
===Region Linkboxes===
 
===Region Linkboxes===
 
[[Template:MI Nations]] -- [[Malibu Islands]] nations<br>
 
[[Template:MI Nations]] -- [[Malibu Islands]] nations<br>
[[Template:IOABW Nations]] -- [[Isles of a Better World]] nations<br>
+
You can create your own region linkboxes by using modified code of the above linkbox.
You can create your own region linkboxes by using modified code of the above two
+
 
 
===Language Linkbox===
 
===Language Linkbox===
 
[[Template:Languages]]<br>
 
[[Template:Languages]]<br>
 
For use on all language pages.
 
For use on all language pages.
 +
===Alliance Linkboxes===
 +
[[Template:LoSR]] ---League of Small Regions Organization
 +
===Currency Linkbox===
 +
[[Template:Currencies]] <br>
 +
For use on all currency pages
 +
 
==Userboxes==
 
==Userboxes==
 
These boxes are for use on user pages. To use them, type <nowiki>{{Babel-x|xx|xx|xx|xx|xx|}}</nowiki>, where x is the number of "xx"s you've used. Each "xx" is the name of the userbox ''after'' the "user" part. For example, if the userbox was named Template: User py-1, you'd type "py-1" in place of the xx. For more advanced use, type <nowiki>{{subst:Babel-x|xx|xx|xx|xx|xx|}}</nowiki>. Then, after you save, the source code will change to the code used in the Babel box, so you can make your own userboxes.
 
These boxes are for use on user pages. To use them, type <nowiki>{{Babel-x|xx|xx|xx|xx|xx|}}</nowiki>, where x is the number of "xx"s you've used. Each "xx" is the name of the userbox ''after'' the "user" part. For example, if the userbox was named Template: User py-1, you'd type "py-1" in place of the xx. For more advanced use, type <nowiki>{{subst:Babel-x|xx|xx|xx|xx|xx|}}</nowiki>. Then, after you save, the source code will change to the code used in the Babel box, so you can make your own userboxes.
Line 53: Line 70:
 
<nowiki>{{Userbox|''leftwriting/code''|''hexcodeleft''|''hexcoderight''|''rightwriting''}}</nowiki> The left writing or code should be a short abbreviation for what the box stands for. The right side is more detailed information.
 
<nowiki>{{Userbox|''leftwriting/code''|''hexcodeleft''|''hexcoderight''|''rightwriting''}}</nowiki> The left writing or code should be a short abbreviation for what the box stands for. The right side is more detailed information.
 
===List of Templates===
 
===List of Templates===
====Language and Programming Templates====
+
====Languge and Programming Userboxes====
So far, there are templates to show that the user speaks/programs in several different languages. To use, replace "xx" in the Babel box with the abbreviation, a typed dash, and then a 0, 1, 2, 3, 4 for your skill level: 0 being "not knowing at all" and 4 being "advanced level". For spoken (not programming) languages, use no number at all if you are a native speaker of that language. Don't use a 0 on every program or language you don't know, just on ones that people might think you know but you don't.
+
So far, there are templates to show that the user speaks/programs in several different languages. To use, replace "xx" in the Babel box with the abbreviation, a typed dash, and then a 0, 1, 2, 3, 4 for your skill level: 0 being "not knowing at all" and 4 being "advanced level". For spoken (not programming) languages, use no number at all if you are a native speaker of that language. Do not use a 0 on every program or language you don't know, just on ones that people might think you know but you do not.
=====Supported Programs and Languages=====
+
=====Supported Languages=====
 
{| class="toccolours" border="1" cellpadding="4" style=" margin: 0 0 0em 0em; width: 100%; border-collapse: collapse; font-size: 95%;"
 
{| class="toccolours" border="1" cellpadding="4" style=" margin: 0 0 0em 0em; width: 100%; border-collapse: collapse; font-size: 95%;"
 
!Language
 
!Language
Line 72: Line 89:
 
|pac
 
|pac
 
|-
 
|-
 +
|}
 +
=====Supported Programming Languages=====
 +
{| class="toccolours" border="1" cellpadding="4" style=" margin: 0 0 0em 0em; width: 100%; border-collapse: collapse; font-size: 95%;"
 
!Programming Language
 
!Programming Language
 
!Code
 
!Code
Line 78: Line 98:
 
|c
 
|c
 
|-
 
|-
|C++
+
|C
 
|cpp
 
|cpp
 
|-
 
|-
Line 89: Line 109:
 
|Java
 
|Java
 
|java
 
|java
 +
|}
 +
 +
====Browser Userboxes====
 +
There are some userboxes that show what brower a user uses to contribute. These are added only with the userbox code. There should not be a dash and number after the code
 +
=====Supported Browsers=====
 +
{| class="toccolours" border="1" cellpadding="4" style=" margin: 0 0 0em 0em; width: 100%; border-collapse: collapse; font-size: 95%;"
 +
!Browser
 +
!Code
 +
|-
 +
|Internet Explorer
 +
|ie
 +
|-
 +
|Mozilla Firefox
 +
|fox
 +
|-
 +
|Konqueror
 +
|khtml
 
|}
 
|}

Latest revision as of 12:43, 19 June 2007

This page lists templates that aren't listed on NSwiki:Info boxes or NSwiki:Template messages. These are generally more advanced, larger, or used for more obscure types of pages.

Generic Method of Inserting a Template

Use the following code:

 {{TEMPLATE NAME |
 fieldname=data |
 fieldname2=data2 |
 fieldname3=data3
 }}
 

Notes:

  • Replace "TEMPLATE NAME" with the name of the template.
  • Replace each fieldname (add more if necessary) with each name enclosed in triple curly braces ( {} ).
  • Replace each data with the text or link you want to put in that field.

Infoboxes for the top of pages

All Infoboxes for Living Nations

exVeteran

Template:Infobox exVeteran
For use on dead and respected nationpages.

DEATNation

Template:Infobox DEATNation
For use on moderator-deleted nationpages.

Geographical infoboxes

School

Template:School
This infobox is for any school (elementary, secondary, tertiary) in NationStates.

Religion

Template:Religion
For use on religion pages.

CurrencyBox

Template:CurrencyBox
For use on currency pages.

WarBox

Template:WarBox
Used for war pages.

TLD

Template:TLD
Used on Internet TLD pages.

Political Parties

Template:Infobox_Political_Party
Used on political party pages.

Footer Linkboxes

Put these at the bottom of appropriate pages. They'll add a box with links to all boxes in a certain category.

Region Linkboxes

Template:MI Nations -- Malibu Islands nations
You can create your own region linkboxes by using modified code of the above linkbox.

Language Linkbox

Template:Languages
For use on all language pages.

Alliance Linkboxes

Template:LoSR ---League of Small Regions Organization

Currency Linkbox

Template:Currencies
For use on all currency pages

Userboxes

These boxes are for use on user pages. To use them, type {{Babel-x|xx|xx|xx|xx|xx|}}, where x is the number of "xx"s you've used. Each "xx" is the name of the userbox after the "user" part. For example, if the userbox was named Template: User py-1, you'd type "py-1" in place of the xx. For more advanced use, type {{subst:Babel-x|xx|xx|xx|xx|xx|}}. Then, after you save, the source code will change to the code used in the Babel box, so you can make your own userboxes.

Source Code to Make a Userbox

{{Userbox|''leftwriting/code''|''hexcodeleft''|''hexcoderight''|''rightwriting''}} The left writing or code should be a short abbreviation for what the box stands for. The right side is more detailed information.

List of Templates

Languge and Programming Userboxes

So far, there are templates to show that the user speaks/programs in several different languages. To use, replace "xx" in the Babel box with the abbreviation, a typed dash, and then a 0, 1, 2, 3, 4 for your skill level: 0 being "not knowing at all" and 4 being "advanced level". For spoken (not programming) languages, use no number at all if you are a native speaker of that language. Do not use a 0 on every program or language you don't know, just on ones that people might think you know but you do not.

Supported Languages
Language Code
English en
Spanish es
French fr
Pacitalian pac
Supported Programming Languages
Programming Language Code
C c
C cpp
Python py
SQL sql
Java java

Browser Userboxes

There are some userboxes that show what brower a user uses to contribute. These are added only with the userbox code. There should not be a dash and number after the code

Supported Browsers
Browser Code
Internet Explorer ie
Mozilla Firefox fox
Konqueror khtml