Difference between revisions of "NSWiki:Info boxes"

From NSwiki, the NationStates encyclopedia.
Jump to: navigation, search
(Template:Infobox_City: name thingies)
m
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<big>Please don't rename or alter the first '''<nowiki>{{Infobox_Nation |</nowiki>''' line! </big>
+
<div style="background-color:#eeddff; border:1px dashed #aaaaaa; padding:0.5em;">Please don't rename or alter the first '''<nowiki>{{Infobox Nation |</nowiki>''' line!</div>
+
 
==Template:Infobox_Nation==
+
==Template:Infobox Nation==
{{Infobox_Nation |}}
+
{{Infobox Nation}}
 
=== New Nation Page ===
 
=== New Nation Page ===
 
In order to standardize page formats and place standard data on certain pages, the following infoboxes have been created.  Please place these at the top of the appropriate pages.   
 
In order to standardize page formats and place standard data on certain pages, the following infoboxes have been created.  Please place these at the top of the appropriate pages.   
  
The template is named Infobox_Nation, '''NOT''' Infobox_''YourNation'sName''.  Change only the data after an equals ( = ) sign, and the template will work as intended. Don't remove lines that aren't relevant, just blank them after the '''=''' and leave the '''|'''.  Missing lines mess up the template.
+
The template is named Infobox Nation, <big><u>'''NOT'''</u> Infobox ''YourNation'sName''</big>.  Change only the data after an equals ( = ) sign, and the template will work as intended. Don't remove lines that aren't relevant, just blank them after the '''=''' and leave the '''|'''.  Missing lines mess up the template.
  
 
+
To create your '''starter nation page''', click the link below. Go to the Address Bar of your browser and change ''NationName'' to your nation's name, '''exactly''' as it appears in NationStates, '''without''' the pretitle (so ''Maxtopia'', not ''The Republic of Maxtopia''), and hit Enter on your keyboard. Then paste the standardized Infobox code below into the newly opened Edit window, and add appropriate information afterwards.
To create your '''starter nation page''', click the link below. Go to the Address Bar of your browser and change ''NationName'' to your nation's name, '''exactly''' as it appears in NationStates, and hit Enter on your keyboard. Then paste the standardized Infobox code below into the newly opened Edit window, and add appropriate information afterwards.
+
  
 
:http://ns.goobergunch.net/wiki/index.php/NationName
 
:http://ns.goobergunch.net/wiki/index.php/NationName
Line 16: Line 15:
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
  
 
+
'''<nowiki>{{Infobox Nation |</nowiki><br>
'''<nowiki>{{Infobox_Nation |</nowiki><br>
+
 
'''<nowiki>flag=Flag URL |</nowiki><br>
 
'''<nowiki>flag=Flag URL |</nowiki><br>
 
'''<nowiki>region=[[Region]] |</nowiki><br>
 
'''<nowiki>region=[[Region]] |</nowiki><br>
 
'''<nowiki>motto=Motto |</nowiki><br>
 
'''<nowiki>motto=Motto |</nowiki><br>
'''<nowiki>map=[Map URL], or No Map Available Yet |</nowiki><br>
+
'''<nowiki>map=[Map URL], or No Map Available |</nowiki><br>
 
'''<nowiki>language=Language(s) |</nowiki><br>
 
'''<nowiki>language=Language(s) |</nowiki><br>
 
'''<nowiki>capital=Capital |</nowiki><br>
 
'''<nowiki>capital=Capital |</nowiki><br>
Line 29: Line 27:
 
'''<nowiki>}}</nowiki><br>
 
'''<nowiki>}}</nowiki><br>
  
----
+
<br style="clear:both;">
  
==Template:Infobox_Region==
+
==Template:Infobox Region==
{{Infobox_Region |}}
+
{{Infobox Region}}
 
=== New Region Page ===
 
=== New Region Page ===
 
In order to standardize page formats and place standard data on certain pages, the following infoboxes have been created.  Please place these at the top of the appropriate pages.
 
In order to standardize page formats and place standard data on certain pages, the following infoboxes have been created.  Please place these at the top of the appropriate pages.
Line 39: Line 37:
  
 
:http://ns.goobergunch.net/wiki/index.php/RegionName
 
:http://ns.goobergunch.net/wiki/index.php/RegionName
 +
  
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
  
'''<nowiki>{{Infobox_Region |</nowiki><br>
+
'''<nowiki>{{Infobox Region |</nowiki><br>
 
'''<nowiki>founder=[[Founder Name]] |</nowiki><br>
 
'''<nowiki>founder=[[Founder Name]] |</nowiki><br>
 
'''<nowiki>delegate=[[Delegate Name]] |</nowiki><br>
 
'''<nowiki>delegate=[[Delegate Name]] |</nowiki><br>
Line 49: Line 48:
 
'''<nowiki>}}</nowiki>
 
'''<nowiki>}}</nowiki>
  
----
+
<br style="clear:both;">
==Template:Infobox_Alliance==
+
  
{| align="right" border="1" cellpadding="2" width="300" style="margin-left:0.5em;"
+
==Template:Infobox Alliance==
|-
+
{{Infobox Alliance}}
!style="background:#F08080" | <big>{{{subject_name}}}</big>
+
|-
+
|
+
{| border="0" cellpadding="1" width="100%"
+
|-
+
! align="right" | Headquarters:
+
| {{{hq}}}
+
|-
+
! align="right" | Members:
+
| {{{pop}}}
+
|-
+
! align="right" | Type:
+
| {{{type}}}
+
|-
+
! align="right" | Forum:
+
| {{{forum}}}
+
|}
+
|}
+
 
=== New Alliance Page ===
 
=== New Alliance Page ===
 
To create your '''Alliance page''', alter this URL to your Alliance name, and add the standardized Infobox code below.
 
To create your '''Alliance page''', alter this URL to your Alliance name, and add the standardized Infobox code below.
  
 
:http://ns.goobergunch.net/wiki/index.php/Alliance_Name  
 
:http://ns.goobergunch.net/wiki/index.php/Alliance_Name  
 +
  
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
  
'''<nowiki>{{Infobox_Alliance |</nowiki><br>
+
'''<nowiki>{{Infobox Alliance |</nowiki><br>
 
'''<nowiki>subject_name=Alliance name |</nowiki><br>
 
'''<nowiki>subject_name=Alliance name |</nowiki><br>
 
'''<nowiki>hq=[[HQ location]] |</nowiki><br>
 
'''<nowiki>hq=[[HQ location]] |</nowiki><br>
Line 87: Line 68:
 
'''<nowiki>}}</nowiki>
 
'''<nowiki>}}</nowiki>
  
----
+
<br style="clear:both;">
 
+
==Template:Infobox_Corporation==
+
  
{| align="right" border="1" cellpadding="2" width="300" style="margin-left:0.5em;"
+
==Template:Infobox Corporation==
|-
+
{{Infobox Corporation}}
!style="background:#EEE685" | <big>{{{subject_name}}}</big>
+
|-
+
|
+
{| border="0" cellpadding="1" width="100%"
+
|-
+
! align="right" | Headquarters:
+
| {{{hq}}}
+
|-
+
! align="right" | Nationality:
+
| {{{nation}}}
+
|-
+
! align="right" | Specialty:
+
| {{{product}}}
+
|-
+
! align="right" | Storefront:
+
| {{{forum}}}
+
|}
+
|}
+
 
=== New Corporation Page ===
 
=== New Corporation Page ===
 
To create your '''Corporation page''', alter this URL to your Corporation name, and add the standardized Infobox code below.
 
To create your '''Corporation page''', alter this URL to your Corporation name, and add the standardized Infobox code below.
  
 
:http://ns.goobergunch.net/wiki/index.php/Corporation_Name  
 
:http://ns.goobergunch.net/wiki/index.php/Corporation_Name  
 +
  
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
 
The infobox to the right is created by copying and pasting the following '''bold''' text:
  
'''<nowiki>{{Infobox_Corporation |</nowiki><br>
+
'''<nowiki>{{Infobox Corporation |</nowiki><br>
 
'''<nowiki>subject_name=Corporation name |</nowiki><br>
 
'''<nowiki>subject_name=Corporation name |</nowiki><br>
 +
'''<nowiki>logo=Logo URL |</nowiki><br>
 
'''<nowiki>hq=[[HQ location]] |</nowiki><br>
 
'''<nowiki>hq=[[HQ location]] |</nowiki><br>
 
'''<nowiki>nation=[[Nation]] |</nowiki><br>
 
'''<nowiki>nation=[[Nation]] |</nowiki><br>
Line 126: Line 89:
 
'''<nowiki>}}</nowiki>
 
'''<nowiki>}}</nowiki>
  
----
+
<br style="clear:both;">
  
== Template:Infobox_Character ==
+
== Template:Infobox Character ==
 
{{Infobox_Character |
 
{{Infobox_Character |
 
subject_name=[[SalusaSecondus]] |
 
subject_name=[[SalusaSecondus]] |
Line 149: Line 112:
  
 
<big><tt>
 
<big><tt>
'''<nowiki>{{Infobox_Character |</nowiki><br>
+
'''<nowiki>{{Infobox Character |</nowiki><br>
 
'''<nowiki>subject_name=  | photo=  | </nowiki><br>
 
'''<nowiki>subject_name=  | photo=  | </nowiki><br>
 
'''<nowiki>caption1=  | field1=  | </nowiki><br>
 
'''<nowiki>caption1=  | field1=  | </nowiki><br>
Line 157: Line 120:
 
</tt></big>
 
</tt></big>
  
 +
<br style="clear:both;">
  
 
+
==Template:Infobox Province==
 
+
----
+
 
+
==Template:Infobox_Province==
+
 
{{Infobox Province}}
 
{{Infobox Province}}
 
 
'''Provinces''' are subdivisions of individual nations.  To create your Province page, alter this URL to your Province name, and add the standardized Infobox code below.
 
'''Provinces''' are subdivisions of individual nations.  To create your Province page, alter this URL to your Province name, and add the standardized Infobox code below.
  
Line 171: Line 130:
  
 
'''<nowiki>{{Infobox Province |</nowiki><br>
 
'''<nowiki>{{Infobox Province |</nowiki><br>
'''<nowiki>[[nation]]=[[Nation]] |</nowiki><br>
+
'''<nowiki>nation=[[Nation]] |</nowiki><br>
 
'''<nowiki>capital=Capital |</nowiki><br>
 
'''<nowiki>capital=Capital |</nowiki><br>
 
'''<nowiki>leader=Leader] |</nowiki><br>
 
'''<nowiki>leader=Leader] |</nowiki><br>
 
'''<nowiki>}}</nowiki>
 
'''<nowiki>}}</nowiki>
  
----
+
<br style="clear:both;">
  
==Template:Infobox_City==
+
==Template:Infobox City==
 
{{Infobox City}}
 
{{Infobox City}}
 
 
'''[[City|Cities]]''' are places where people live together in large concentrations in individual nations.  To create your City page, alter this URL to your City name, and add the standardized Infobox code below.
 
'''[[City|Cities]]''' are places where people live together in large concentrations in individual nations.  To create your City page, alter this URL to your City name, and add the standardized Infobox code below.
  
Line 186: Line 144:
  
  
'''<nowiki>{{Infobox_City |</nowiki><br>
+
'''<nowiki>{{Infobox City |</nowiki><br>
 
'''<nowiki>nation=[[Nation]] |</nowiki><br>
 
'''<nowiki>nation=[[Nation]] |</nowiki><br>
 
'''<nowiki>cityfunction= Function |</nowiki><br>
 
'''<nowiki>cityfunction= Function |</nowiki><br>
Line 193: Line 151:
 
'''<nowiki>}}</nowiki>
 
'''<nowiki>}}</nowiki>
  
----
+
<br style="clear:both;">
  
 
== Advanced Users ==
 
== Advanced Users ==
See the [[NSwiki:GenericInfoBox|Generic Infobox]] Template for more options.
+
See the [[NSwiki:GenericInfoBox|Generic Infobox]] Template for more options. Also see [[NSwiki:Advanced Templates]] for other templates to use.
  
 
[[Category:NS MetaWiki|{{PAGENAME}}]]
 
[[Category:NS MetaWiki|{{PAGENAME}}]]
 
[[Category:Help pages|{{PAGENAME}}]]
 
[[Category:Help pages|{{PAGENAME}}]]
 
__NOTOC__
 
__NOTOC__

Latest revision as of 07:30, 4 October 2006

Please don't rename or alter the first {{Infobox Nation | line!

Template:Infobox Nation

Info boxes
{{{flag}}}
Flag of Info boxes
Motto: {{{motto}}}
Region {{{region}}}
Capital {{{capital}}}
Official Language(s) {{{language}}}
Government
Population {{{population}}}
Currency {{{currency}}} 
NS Sunset XML

New Nation Page

In order to standardize page formats and place standard data on certain pages, the following infoboxes have been created. Please place these at the top of the appropriate pages.

The template is named Infobox Nation, NOT Infobox YourNation'sName. Change only the data after an equals ( = ) sign, and the template will work as intended. Don't remove lines that aren't relevant, just blank them after the = and leave the |. Missing lines mess up the template.

To create your starter nation page, click the link below. Go to the Address Bar of your browser and change NationName to your nation's name, exactly as it appears in NationStates, without the pretitle (so Maxtopia, not The Republic of Maxtopia), and hit Enter on your keyboard. Then paste the standardized Infobox code below into the newly opened Edit window, and add appropriate information afterwards.

http://ns.goobergunch.net/wiki/index.php/NationName


The infobox to the right is created by copying and pasting the following bold text:

{{Infobox Nation |
flag=Flag URL |
region=[[Region]] |
motto=Motto |
map=[Map URL], or No Map Available |
language=Language(s) |
capital=Capital |
population=Population |
currency=Currency |
leader=National Leader
}}


Template:Infobox Region

Info boxes
Forum: {{{forum}}}
Population: {{{pop}}}
Delegate: {{{delegate}}}
Founder: {{{founder}}}
Info: NSEconomy RC XML

New Region Page

In order to standardize page formats and place standard data on certain pages, the following infoboxes have been created. Please place these at the top of the appropriate pages.

To create your starter region page, click the link below. Go to the Address Bar of your browser and change RegionName to your region's name and hit Enter on your keyboard. Then paste the standardized Infobox code below into the newly opened Edit window, and add appropriate information afterwards. Note: The template automatically links to your Region, so be certain the name is identical to how it appears on NationStates.

http://ns.goobergunch.net/wiki/index.php/RegionName


The infobox to the right is created by copying and pasting the following bold text:

{{Infobox Region |
founder=[[Founder Name]] |
delegate=[[Delegate Name]] |
forum=[URL Forum Name] |
pop=XXX nations
}}


Template:Infobox Alliance

{{{subject_name}}}
Headquarters: {{{hq}}}
Members: {{{pop}}}
Type: {{{type}}}
Forum: {{{forum}}}

New Alliance Page

To create your Alliance page, alter this URL to your Alliance name, and add the standardized Infobox code below.

http://ns.goobergunch.net/wiki/index.php/Alliance_Name


The infobox to the right is created by copying and pasting the following bold text:

{{Infobox Alliance |
subject_name=Alliance name |
hq=[[HQ location]] |
type=Type of Alliance |
forum=[URL Forum Name] |
pop=XXX members
}}


Template:Infobox Corporation

{{{subject_name}}}
{{{logo}}}
Headquarters: {{{hq}}}
Nationality: {{{nation}}}
Specialty: {{{product}}}
Storefront: {{{forum}}}

New Corporation Page

To create your Corporation page, alter this URL to your Corporation name, and add the standardized Infobox code below.

http://ns.goobergunch.net/wiki/index.php/Corporation_Name


The infobox to the right is created by copying and pasting the following bold text:

{{Infobox Corporation |
subject_name=Corporation name |
logo=Logo URL |
hq=[[HQ location]] |
nation=[[Nation]] |
product=Product line(s) |
forum=[URL Forum Name] |
}}


Template:Infobox Character

SalusaSecondus
salusasecondus2.jpg
Title
Game Administrator
Position / Apparent Mental State
Left Field
Height / Weight
for some odd reason, often speculated but never confirmed, Sal likes to keep this hidden from the rest of us ordinary mortals
Primary Interest
Code Monkey

Characters are player representatives in roleplay (Speaker-Rrit, Dick Tator) or characters assumed in gameplay (Margaret, The Smoking Man), not the players themselves. You should not use the Character infobox on your user page, as that is for NSwiki user and/or NS player information. Yes, we know you're a character too, but leave the box off anyway.

Here's some code for the Character Infobox. There are four totally customizable fields in this one, since everyone seems to have a different conception of what's important to their character. As you can see in the Salusa example, you have a bit of flexibility with regards to field length. Captions are right-justified and small, Fields are centered.

Leave {{Infobox_Character | untouched, and add your choice of captions and fields between the = and the | or }}. Any fields not used will just not show up, but leave the blanks there anyway. The template needs them.


{{Infobox Character |
subject_name= | photo= |
caption1= | field1= |
caption2= | field2= |
caption3= | field3= |
caption4= | field4= }}


Template:Infobox Province

Info boxes
Nation: {{{nation}}}
Capital: {{{capital}}}
Leader: {{{leader}}}

Provinces are subdivisions of individual nations. To create your Province page, alter this URL to your Province name, and add the standardized Infobox code below.

http://ns.goobergunch.net/wiki/index.php/Province_Name


{{Infobox Province |
nation=[[Nation]] |
capital=Capital |
leader=Leader] |
}}


Template:Infobox City

Info boxes
Nation: {{{nation}}}
Function: {{{cityfunction}}}
Population: {{{population}}}
Leader: {{{leader}}}

Cities are places where people live together in large concentrations in individual nations. To create your City page, alter this URL to your City name, and add the standardized Infobox code below.

http://ns.goobergunch.net/wiki/index.php/City_Name


{{Infobox City |
nation=[[Nation]] |
cityfunction= Function |
population= Population |
leader= [[Mayor name]] | }}


Advanced Users

See the Generic Infobox Template for more options. Also see NSwiki:Advanced Templates for other templates to use.