• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:California topic

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
  • v
  • t
  • e
California
Regions
  • San Fernando Valley
Counties
  • Alameda
  • Alpine
  • Amador
  • Butte
  • Calaveras
  • Colusa
  • Contra Costa
  • Del Norte
  • El Dorado
  • Fresno
  • Glenn
  • Humboldt
  • Imperial
  • Inyo
  • Kern
  • Kings
  • Lake
  • Lassen
  • Los Angeles
  • Madera
  • Marin
  • Mariposa
  • Mendocino
  • Merced
  • Modoc
  • Mono
  • Monterey
  • Napa
  • Nevada
  • Orange
  • Placer
  • Plumas
  • Riverside
  • Sacramento
  • San Benito
  • San Bernardino
  • San Diego
  • San Francisco
  • San Joaquin
  • San Luis Obispo
  • San Mateo
  • Santa Barbara
  • Santa Clara
  • Santa Cruz
  • Shasta
  • Sierra
  • Siskiyou
  • Solano
  • Sonoma
  • Stanislaus
  • Sutter
  • Tehama
  • Trinity
  • Tulare
  • Tuolumne
  • Ventura
  • Yolo
  • Yuba
Cities and towns
  • Los Angeles
  • San Diego
  • San Jose
  • San Francisco
  • Fresno
  • Sacramento
  • Long Beach
  • Oakland
  • Bakersfield
  • Anaheim
  • Santa Ana
  • Riverside
  • Stockton
  • Chula Vista
  • Fremont
  • Irvine
  • San Bernardino
  • Modesto
  • Oxnard
  • Fontana
  • Moreno Valley
  • Glendale
  • Huntington Beach
  • Santa Clarita
  • Garden Grove
  • Santa Rosa
  • Oceanside
  • Rancho Cucamonga
  • Ontario
  • Lancaster
  • Elk Grove
  • Palmdale
  • Corona
  • Salinas
  • Pomona
  • Torrance
  • Hayward
  • Escondido
  • Sunnyvale
  • Pasadena
  • Fullerton
  • Orange
  • Thousand Oaks
  • Visalia
  • Simi Valley
  • Concord
  • Roseville
  • Santa Clara
  • Vallejo
  • Victorville
  • El Monte
  • Berkeley
  • Downey
  • Costa Mesa
  • Inglewood
  • Ventura
  • Fairfield
  • Santa Maria
  • Redding
  • Santa Monica
  • Santa Barbara
  • Chico
  • Merced
  • Napa
  • Redwood City
  • Yuba City
  • Madera
  • Santa Cruz
  • San Rafael
  • Woodland
  • Hanford
  • San Luis Obispo
  • El Centro
  • Lompoc
  • Martinez
  • Hollister
  • Eureka
  • Susanville
  • Ukiah
  • Oroville
  • Red Bluff
  • Auburn
  • Marysville
  • Piedmont
  • Placerville
  • Yreka
  • Crescent City
  • Willows
  • Colusa
  • Sonora
  • Lakeport
  • Jackson
  • Nevada City
  • Alturas
Template documentation[view] [edit] [history] [purge]
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.

Contents

  • 1 Shortcuts
  • 2 Usage
    • 2.1 1st parameter (prefix)
    • 2.2 2nd parameter (suffix)
  • 3 Parameters
    • 3.1 Mandatory
    • 3.2 Optional
      • 3.2.1 Excluding groups
      • 3.2.2 Adding groups and lists
      • 3.2.3 Styles

Shortcuts

Some examples have shortcuts which will in turn use this template.

  • History of California -> {{California history}}
  • Sheriff's Offices -> {{California Sheriff's Offices}} or {{California SO}}

Usage

1st parameter (prefix)

The most basic usage of template is with a single unnamed parameter in the format {{Continent/region topic|Topic [of/in]}}, replacing Continent/region with the name of a continent or region and Topic with the name of a topic followed by "of" or "in". For example, {{Africa topic|Geography of}} generates a navigation box titled "Geography of Africa" with a list of country names linked to articles such as Geography of Angola, etc.

Code

{{California topic|Culture of}} or {{California topic|prefix=Culture of}}

Result
  • v
  • t
  • e
Culture of California
Regions
  • San Fernando Valley
Counties
  • Alameda
  • Alpine
  • Amador
  • Butte
  • Calaveras
  • Colusa
  • Contra Costa
  • Del Norte
  • El Dorado
  • Fresno
  • Glenn
  • Humboldt
  • Imperial
  • Inyo
  • Kern
  • Kings
  • Lake
  • Lassen
  • Los Angeles
  • Madera
  • Marin
  • Mariposa
  • Mendocino
  • Merced
  • Modoc
  • Mono
  • Monterey
  • Napa
  • Nevada
  • Orange
  • Placer
  • Plumas
  • Riverside
  • Sacramento
  • San Benito
  • San Bernardino
  • San Diego
  • San Francisco
  • San Joaquin
  • San Luis Obispo
  • San Mateo
  • Santa Barbara
  • Santa Clara
  • Santa Cruz
  • Shasta
  • Sierra
  • Siskiyou
  • Solano
  • Sonoma
  • Stanislaus
  • Sutter
  • Tehama
  • Trinity
  • Tulare
  • Tuolumne
  • Ventura
  • Yolo
  • Yuba
Cities and towns
  • Los Angeles
  • San Diego
  • San Jose
  • San Francisco
  • Fresno
  • Sacramento
  • Long Beach
  • Oakland
  • Bakersfield
  • Anaheim
  • Santa Ana
  • Riverside
  • Stockton
  • Chula Vista
  • Fremont
  • Irvine
  • San Bernardino
  • Modesto
  • Oxnard
  • Fontana
  • Moreno Valley
  • Glendale
  • Huntington Beach
  • Santa Clarita
  • Garden Grove
  • Santa Rosa
  • Oceanside
  • Rancho Cucamonga
  • Ontario
  • Lancaster
  • Elk Grove
  • Palmdale
  • Corona
  • Salinas
  • Pomona
  • Torrance
  • Hayward
  • Escondido
  • Sunnyvale
  • Pasadena
  • Fullerton
  • Orange
  • Thousand Oaks
  • Visalia
  • Simi Valley
  • Concord
  • Roseville
  • Santa Clara
  • Vallejo
  • Victorville
  • El Monte
  • Berkeley
  • Downey
  • Costa Mesa
  • Inglewood
  • Ventura
  • Fairfield
  • Santa Maria
  • Redding
  • Santa Monica
  • Santa Barbara
  • Chico
  • Merced
  • Napa
  • Redwood City
  • Yuba City
  • Madera
  • Santa Cruz
  • San Rafael
  • Woodland
  • Hanford
  • San Luis Obispo
  • El Centro
  • Lompoc
  • Martinez
  • Hollister
  • Eureka
  • Susanville
  • Ukiah
  • Oroville
  • Red Bluff
  • Auburn
  • Marysville
  • Piedmont
  • Placerville
  • Yreka
  • Crescent City
  • Willows
  • Colusa
  • Sonora
  • Lakeport
  • Jackson
  • Nevada City
  • Alturas


2nd parameter (suffix)

The template accepts a second unnamed parameter for text to be placed after the country name. There is no space between the country name and the suffix, to allow for links to articles such as List of California-related topics.

Code
{{California topic|| in popular culture}}
Result
  • v
  • t
  • e
California in popular culture
Regions
  • San Fernando Valley
Counties
  • Alameda
  • Alpine
  • Amador
  • Butte
  • Calaveras
  • Colusa
  • Contra Costa
  • Del Norte
  • El Dorado
  • Fresno
  • Glenn
  • Humboldt
  • Imperial
  • Inyo
  • Kern
  • Kings
  • Lake
  • Lassen
  • Los Angeles
  • Madera
  • Marin
  • Mariposa
  • Mendocino
  • Merced
  • Modoc
  • Mono
  • Monterey
  • Napa
  • Nevada
  • Orange
  • Placer
  • Plumas
  • Riverside
  • Sacramento
  • San Benito
  • San Bernardino
  • San Diego
  • San Francisco
  • San Joaquin
  • San Luis Obispo
  • San Mateo
  • Santa Barbara
  • Santa Clara
  • Santa Cruz
  • Shasta
  • Sierra
  • Siskiyou
  • Solano
  • Sonoma
  • Stanislaus
  • Sutter
  • Tehama
  • Trinity
  • Tulare
  • Tuolumne
  • Ventura
  • Yolo
  • Yuba
Cities and towns
  • Los Angeles
  • San Diego
  • San Jose
  • San Francisco
  • Fresno
  • Sacramento
  • Long Beach
  • Oakland
  • Bakersfield
  • Anaheim
  • Santa Ana
  • Riverside
  • Stockton
  • Chula Vista
  • Fremont
  • Irvine
  • San Bernardino
  • Modesto
  • Oxnard
  • Fontana
  • Moreno Valley
  • Glendale
  • Huntington Beach
  • Santa Clarita
  • Garden Grove
  • Santa Rosa
  • Oceanside
  • Rancho Cucamonga
  • Ontario
  • Lancaster
  • Elk Grove
  • Palmdale
  • Corona
  • Salinas
  • Pomona
  • Torrance
  • Hayward
  • Escondido
  • Sunnyvale
  • Pasadena
  • Fullerton
  • Orange
  • Thousand Oaks
  • Visalia
  • Simi Valley
  • Concord
  • Roseville
  • Santa Clara
  • Vallejo
  • Victorville
  • El Monte
  • Berkeley
  • Downey
  • Costa Mesa
  • Inglewood
  • Ventura
  • Fairfield
  • Santa Maria
  • Redding
  • Santa Monica
  • Santa Barbara
  • Chico
  • Merced
  • Napa
  • Redwood City
  • Yuba City
  • Madera
  • Santa Cruz
  • San Rafael
  • Woodland
  • Hanford
  • San Luis Obispo
  • El Centro
  • Lompoc
  • Martinez
  • Hollister
  • Eureka
  • Susanville
  • Ukiah
  • Oroville
  • Red Bluff
  • Auburn
  • Marysville
  • Piedmont
  • Placerville
  • Yreka
  • Crescent City
  • Willows
  • Colusa
  • Sonora
  • Lakeport
  • Jackson
  • Nevada City
  • Alturas

Parameters

Mandatory

name
Mandatory when creating a new template (i.e. Template:Hospitals in the United States), otherwise the "view · talk · edit" links will connect to Template:United States topic. You can enter {{subst:PAGENAME}} for this value as a shortcut.

One of the following combinations is needed to create the links:

prefix
Text to be placed before the U.S. state name. The prefix text is always followed by a space. For example: prefix = List of airports in would create a title List of airports in the United States and a body containing state names linked to List of airports in Alabama, List of airports in Alaska, etc.
Note: In instances when only prefix is specified, the template inserts "the" between the prefix text and "United States", creating the title List of airports in the United States instead of List of airports in United States. In the body it does the same for the Northern Mariana Islands and the United States Virgin Islands.
suffix
Places text after the U.S. state name. For example: suffix = _National Guard would create a title United States National Guard and a body containing state names linked to Alabama National Guard, Arizona National Guard, etc.
Note: An underscore is used in place of the leading space in the suffix. This is done to allow the use of suffixes without a leading space, as in the following example. A title should be specified to avoid the underscore appearing in the title.
prefix and suffix
Places text before and after the U.S. state name. For example: prefix = Index of and suffix = -related articles would create a title Index of United States-related articles and a body containing state names linked to Index of Alabama-related articles, Index of Alaska-related articles, etc.

Optional

state
A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use collapsible. If set to collapsed, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed, the navbox will always start out in an expanded state.
Default is: autocollapse.
title
Text that appears centered in the titlebar (the top bar). This is optional because the use of either prefix, suffix or both will automatically generate a title if the title parameter is not supplied. This parameter is not automatically wiki-linked. For example: title = [[List of rivers of the United States|Rivers in the United States]] generates the title Rivers in the United States.

Excluding groups

In some instances the District of Columbia, U.S. Territories (Insular Areas) or U.S. Minor Outlying Islands may not be relevant to or have their own articles on a particular topic. To disable their inclusion in the template and avoid unnecessary red links, add any or all of the following parameters:

exclude-regions
Set to any value this excludes display of the group named "Regions" which links to San Fernando Valley, etc.
exclude-counties
Set to any value this excludes display of the group named "Counties" which links to Los Angeles County, California, Sacramento County, California, etc.
exclude-cities
Set to any value this excludes display of the group named "Cities and towns" which links to various cities and towns.
exclude-suffix
Set to any value this excludes the use of ", California" in links.

Adding groups and lists

Some templates may require a list of links not already included in the template. These can be specified as follows:

above
A full-width cell (no group header) displayed above the template's body (between the title and U.S. state links).
list1
Text or a list of links that is displayed above the region, county, and city links, but below the above section.
group1
Header text displayed in cell to left of text specified in list1.
list5
Text or a list of links that is displayed below the region, county, and city links, but above the below section.
group5
Header text displayed in cell to left of text specified in list5.
below
A full-width cell (no group header) displayed below the template's body.

Styles

titlestyle
Specifies CSS values to apply to the title. One use of this is to set the background color of the title:
titlestyle = background: #0000FF;
titlestyle = background: blue;
Default is: background: #ccccff;
bodystyle
Specifies CSS values to apply to the entire template. This will not override the following {{Navbox}} default styles:
abovestyle = background:#ddddff;
belowstyle = background:#ddddff;
groupstyle = background:#ddddff; text-align:right; white-space:nowrap;
liststyle = width:100%; font-size:95%;
abovestyle
belowstyle
Specifies CSS values to apply to the cell specified via the above and below parameters. For instance:
belowstyle = border-top: #ccccff 1px solid;
Default is: background: #ddddff;
groupstyle
Specifies CSS values to apply to the cells specified via the groupn cells. This option overrides any styles that are applied to the entire table. Example:
groupstyle = background:#6AFB92; vertical-align:top;
Default is: background: #ddddff; text-align:right; white-space:nowrap;
liststyle
Specifies CSS values to apply to the cells specified via the listn cells. This option overrides any styles that are applied to the entire table. Examples:
liststyle = padding: 5px 10px 5px 10px;
Default is: width:100%; font-size:95%;
The above documentation is transcluded from Template:California topic/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:California_topic&oldid=7114"
Categories:
  • Navboxes using background colours
  • Intricate templates
  • California navigational boxes
  • Configurable area-topic templates
Last edited on 10 January 2018, at 13:58

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 10 January 2018, at 13:58.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop