NSWiki:Advanced Templates

From NSwiki, the NationStates encyclopedia.
Revision as of 13:27, 13 January 2006 by Swilatia (Talk | contribs)

Jump to: navigation, search

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

WarBox

Template:WarBox
Used for wars.

River

Template:River
This infobox is for any river in NationStates.

School

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

Infobox exVeteran

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

Infobox DEATNation

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

Religion

Template:Religion
For use on religion pages.

Infobox City 2

Template:Infobox City 2
An advanced city infobox.

CurrencyBox

Template:CurrencyBox
For use on currency 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
Template:IOABW Nations -- Isles of a Better World nations
You can create your own region linkboxes by using modified code of the above two

Language Linkbox

Template:Languages
For use on all language 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

Language and Programming Templates

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.

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