Template: Infobox city: Difference between revisions

From The Shire
Jump to: navigation, search
Taxcuts (talk | contribs)
No edit summary
Taxcuts (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 121: Line 121:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
This infobox is for cities, towns, and other settlements. Paste the code below onto a page and fill in the desired fields. Any fields left blank will not be displayed.
This infobox is for cities, towns, and other settlements. Simply paste the following snippet and fill/edit whichever fields you need. You do NOT need to fill everything on the list. They are general purpose for everyone on the server.
 
Any blank parameter (or one you delete) is simply omitted from the infobox. The currently prefilled texts are instructions. You do not need to delete them as they will not show up in the final info box.
 
For the "historical" slot, the only accepted texts are yes or no. If yes, the Historical Registry badge will show in the info box. Typing anything other than yes or no will throw an error.
 
A sample with instructions is pre-filled below.


=== Blank Syntax ===
=== Blank Syntax ===
<pre>
<pre>
{{Infobox city
{{Infobox city
| name            =  
| name            = <!--Name of your city-->
| official_name    =  
| official_name    = <!--Official name of your city (if different)-->
| image            =  
| image            = <!--Pic of your city-->
| caption          =  
| caption          = <!--Caption of the image-->
| motto            =  
| motto            = <!--Motto of your city-->
| nation          =  
| nation          = <!--Nation your city belongs to-->
| x                =  
| x                = <!--X coordinates-->
| y                =  
| y                = <!--Y coordinates-->
| z                =  
| z                = <!--Z coordinates-->
| founded          =  
| founded          = <!--Year your city was founded-->
| area            =  
| area            = <!--Size of your city-->
| population      =  
| population      = <!--Population of your city-->
| pop_year        =  
| pop_year        = <!--Year population was surveyed-->
| govt_type        =  
| govt_type        = <!--Type of city governance-->
| leader_title_1  = Mayor
| leader_title_1  = <!--Title of the first leader-->
| leader_name_1    =  
| leader_name_1    = <!--Name of said leader-->
| leader_title_2  =  
| leader_title_2  = <!--Title of second leader-->
| leader_name_2    =  
| leader_name_2    = <!--Name of said leader-->
| leader_title_3  =  
| leader_title_3  = <!--Title of third leader-->
| leader_name_3    =  
| leader_name_3    = <!--Name of said leader-->
| warp            =  
| warp            = <!--Warp location-->
| sta              =  
| sta              = <!--STA lines-->
| builders        =  
| builders        = <!--Contributors to your city-->
| built            =  
| built            = <!--Year city was built-->
| historical      =  
| historical      = <!--Yes or No only-->
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 14:19, 8 June 2025


Usage

This infobox is for cities, towns, and other settlements. Simply paste the following snippet and fill/edit whichever fields you need. You do NOT need to fill everything on the list. They are general purpose for everyone on the server.

Any blank parameter (or one you delete) is simply omitted from the infobox. The currently prefilled texts are instructions. You do not need to delete them as they will not show up in the final info box.

For the "historical" slot, the only accepted texts are yes or no. If yes, the Historical Registry badge will show in the info box. Typing anything other than yes or no will throw an error.

A sample with instructions is pre-filled below.

Blank Syntax

{{Infobox city
| name             = <!--Name of your city-->
| official_name    = <!--Official name of your city (if different)-->
| image            = <!--Pic of your city-->
| caption          = <!--Caption of the image-->
| motto            = <!--Motto of your city-->
| nation           = <!--Nation your city belongs to-->
| x                = <!--X coordinates-->
| y                = <!--Y coordinates-->
| z                = <!--Z coordinates-->
| founded          = <!--Year your city was founded-->
| area             = <!--Size of your city-->
| population       = <!--Population of your city-->
| pop_year         = <!--Year population was surveyed-->
| govt_type        = <!--Type of city governance-->
| leader_title_1   = <!--Title of the first leader-->
| leader_name_1    = <!--Name of said leader-->
| leader_title_2   = <!--Title of second leader-->
| leader_name_2    = <!--Name of said leader-->
| leader_title_3   = <!--Title of third leader-->
| leader_name_3    = <!--Name of said leader-->
| warp             = <!--Warp location-->
| sta              = <!--STA lines-->
| builders         = <!--Contributors to your city-->
| built            = <!--Year city was built-->
| historical       = <!--Yes or No only-->
}}