Template:Representative/doc

{{Representative}} looks up information about a member of a representative body. When this information is replicated across many articles,

Template:Representative/doc

Purpose

{{Representative}} looks up information about a member of a representative body. When this information is replicated across many articles, corrections and updates become laborious. Gathering it together on a single wiki page (herein called a 'dataset') eases the maintenance burden.

Parameters

Positional parameters

  • The first positional parameter indicates which dataset to use for lookup.
  • The second positional parameter, usually a numeric value, indicates which district or seat.

Named parameters

  • format= to specify the display format (name of formatting template)
  • fmt= to specify the display format (shorthand)

Examples

  • {{Representative|nycd|1}}
displays the representative of New York's 1st congressional district in the default format:
Nick LaLota (R)
  • {{Representative|caad|2|format=Representative/format/nameonly}}
displays the representative of California's 2nd State Assembly district using {{Representative/format/nameonly}} for formatting:
Chris Rogers
  • {{Representative|cacd|3|fmt=linked}}
displays the representative of California's 3rd congressional district using {{Representative/format/linked}} for formatting:
Kevin Kiley

Datasets

Updates and corrections to data (such as the representative's name or political affiliation) should be made to the "dataset template". There are six dataset templates:

California
Parameter value Scope Dataset template default fmt=
cacd current U.S. representatives from California {{Representative/current/California congressional}} us
caad current members of the California State Assembly {{Representative/current/California assembly}} linked
casd current members of the California State Senate {{Representative/current/California state senate}} linked
New York
Parameter value Scope Dataset template default fmt=
nycd current U.S. representatives from New York {{Representative/current/New York congressional}} us
nyad current members of the New York State Assembly {{Representative/current/New York assembly}} linked
nysd current members of the New York State Senate {{Representative/current/New York state senate}} linked

Display formats

fmt= Sample output Information displayed Formatting template
adistrict the 25th Assembly District, represented by Democrat Ash Kalra state assembly district, party affiliation, and rep's name {{Representative/format/adistrict}}
block    Ash Kalra (D) colored block, linked name, and party affiliation (single letter) {{Representative/format/block}}
district California's 25th congressional district, represented by Democrat Raul Ruiz congressional district, party affiliation, and rep's name {{Representative/format/district}}
linked Raul Ruiz rep's full name, linked {{Representative/format/linked}}
nameonly Raul Ruiz rep's full name without link {{Representative/format/nameonly}}
party Democratic party affiliation without link {{Representative/format/party}}
pfl Democrat Raul Ruiz party affiliation and rep's name {{Representative/format/pfl}}
residence Indio place of residence without link {{Representative/format/residence}}
sdistrict the 25th Senate District, represented by Democrat Sasha Renée Pérez state senate district, party affiliation, and rep's name {{Representative/format/sdistrict}}
sleader Raul Ruiz (D) rep's name and state party affiliation {{Representative/format/sleader}}
spfl Democrat Raul Ruiz state party affiliation and rep's name {{Representative/format/spfl}}
us Raul Ruiz (DIndio) rep's name, party affiliation, and place of residence {{Representative/format/us}}
usleader Raul Ruiz (D) rep's name and party affiliation (single letter) {{Representative/format/usleader}}
usleader3 Raul Ruiz (Dem) rep's name and party affiliation (3-letter abbreviation) {{Representative/format/usleader3}}


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.