Difference between revisions of "NSWiki:Advanced Templates"

From NSwiki, the NationStates encyclopedia.
Jump to: navigation, search
(formatting)
m (Infoboxes for the top of pages: - rearranged and regrouped more thematically)
Line 20: 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 cities
 +
* [[Template:Infobox Settlement]] - used for settlements smaller than cities
 +
* [[Template:River]] - used for rivers
 +
===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.
===Infobox City 2===
 
[[Template:Infobox City 2]] <br>
 
An advanced city infobox.
 
 
===CurrencyBox===
 
===CurrencyBox===
 
[[Template:CurrencyBox]] <br>
 
[[Template:CurrencyBox]] <br>
 
For use on currency pages.
 
For use on currency pages.
 +
===WarBox===
 +
[[Template:WarBox]]<br>
 +
Used for wars.
  
 
==Footer Linkboxes==
 
==Footer Linkboxes==

Revision as of 11:24, 1 February 2006

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 wars.

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 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

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.

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