Bản mẫu:Representative/doc
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:Representative. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
Purpose[sửa mã nguồn]
{{Representative}} looks up information about an incumbent 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[sửa mã nguồn]
Positional parameters[sửa mã nguồn]
- 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[sửa mã nguồn]
- format= to specify the display format (name of formatting template)
- fmt= to specify the display format (shorthand)
Examples[sửa mã nguồn]
- {{Representative|nycd|1}}
- displays the representative of New York's 1st congressional district in the default format:
- {{Representative|caad|2|format=Representative/format/nameonly}}
- displays the representative of California's 2nd State Assembly district using {{Representative/format/nameonly}} for formatting:
- {{Representative|cacd|3|fmt=linked}}
- displays the representative of California's 3rd congressional district using {{Representative/format/linked}} for formatting:
Datasets[sửa mã nguồn]
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[sửa mã nguồn]
Some display formats are not supported for all datasets. |
See also[sửa mã nguồn]
- {{Ushr}}