Predloga:Infopolje Hokejist

Iz Wikipedije, proste enciklopedije
Skoči na: navigacija, iskanje
Rojstvo
Documentation icon Dokumentacija predloge[predogled] [uredi] [zgodovina] [osveži]

Integracija infopolj z Wikipodatki[uredi | uredi kodo]

Prednosti in slabosti[uredi | uredi kodo]

Prednosti:

  • Zajemanje podatkov iz centralnega prostora za vse Wikipedije
  • Ustvarjanje in osveževanje podatkov na enem mestu

Slabosti:

  • Neustrezno osveževanje ali brisanje podatkov izven nadzora naše Wikipedije, ker sprememb podatkov ne vidiš direktno v članku.

Kako Wikipodatki zbirajo podatke[uredi | uredi kodo]

Podatki v Wikipodatke vnašajo uporabniki in boti. Nekateri boti podatke pridobijo iz Wikipedijinih infopolj, kategorij in člankov. Vsak članek (»item« v terminologiji Wikipodatkov) ima ustrezno stran v Wikipodatkih, kjer se nahajajo podatki. Nekateri boti dodajo »imported from _ Wikipedia« kot obvestilo o izvoru informacije. Ko se podatki prenašajo iz Wikipedije v Wikidata se le-ti ne spremenijo. Pri razvoju baze Wikipodatkov pomagajo izkušenejši Wikipedisti iz različnih projektov.

Delovanje[uredi | uredi kodo]

V določenih infopoljih se že uporabljajo podatki iz Wikipodatkov. Za katere podatke gre so na voljo informacije v samem infopolju. Podatki se zajemajo iz Wikipodatkov le v primeru, ko določeni parameter nima že vnesene lokalne vrednosti.

  • Če je v članku na vrhu vključeno prazno infopolje brez kakršnih koli parametrov, se bodo vsi podatki napolnili iz Wikipodatkov.
  • Če ima članek v Wikipodatkih vpisane tudi rojstne podatke in podatke o smrti, zato se le-ti pojavijo v infopolju. Tukaj se izvede tudi avtomatska kategorizacija v kategoriji Rojeni leta xxxx in Umrli leta yyyy. Članek se pojavi tudi v vzdrževalni kategoriji Kategorija:Članki z redefiniranimi elementi iz Wikipodatkov, ker je v Wikipodatkih na voljo tudi slika, infopolje pa uporablja lastno sliko.

Zatorej, vedno imajo prednost lokalni podatki, ki so vneseni v parametre infopolj.

Trenutno se v {{Infopolje Hokejist}} iz Wikipodatkov napolnijo |image=, |birth_name=, |birth_date=, |birth_place=, |death_date=, |death_place=, |website=.

Kako vnesti podatke v Wikipodatke[uredi | uredi kodo]

Vsak članek (objekt) ima na levi strani v menuju Orodja -> Objekt Wikipodatki možnost urejanja lastnih Wikipodatkov. Točno kako je tam treba izpolniti podatke si je najbolje ogledati kar na primeru Rob Blake v Wikidata.

Prazna predloga[uredi | uredi kodo]

{{Infopolje Hokejist
| name            =
| image           =
| image_caption   =
| image_size      =
| position        =
| shoots          =
| catches         = 
| nickname        =
| height          =
| weight          =
| team            =
| league          =
| prospect_team   =
| prospect_league =
| former_teams    =
| played_for      =
| nationality     =
| nationality_2   =
| nationality_3   =
| birth_date      =
| birth_place     =
| death_date      =
| death_place     =
| draft           =
| draft_year      =
| draft_team      =
| wha_draft       = 
| wha_draft_year  =
| wha_draft_team  =
| career_start    =
| career_end      =
| reprezentanca   =
| OImedalje       =
| SPmedalje       =
| EPmedalje       =
| nastopi         =
| točke           =
| goli            =
| podaje          =
| OI              =
| SP              =
| EP              =
| reprezentanca2  =
| OImedalje2      =
| SPmedalje2      =
| EPmedalje3      =
| nastopi2        =
| točke2          =
| goli2           =
| podaje2         =
| OI2             =
| SP2             =
| EP2             =
| reprezentanca3  =
| OImedalje3      =
| SPmedalje3      =
| EPmedalje3      =
| nastopi3        =
| točke3          =
| goli3           =
| podaje3         =
| OI3             =
| SP3             =
| EP3             =
| halloffame      =
| svkhalloffame   =
| nedhalloffame   =
| gerhalloffame   =
| frahalloffame   =
| finhalloffame   =
| czehalloffame   =
| ukhalloffame    =
| usahalloffame   =
| rusfhalloffame  = 
| slohalloffame   =
| iihfhalloffame  =
| website         =
}}

Parametri[uredi | uredi kodo]

Edinazahtevana parametra sta name in career_start. Imena parmatrov je potrebno vnesti točno tako kot je prikazano spodaj (tj.: male začetnice so pomembne!).

TemplateData[uredi | uredi kodo]

To je TemplateData dokumentacija za predlogo, ki jo uporablja novi VisualEditor.

Infopolje Hokejist

Predloga za prikaz infopolja za igralce hokeja.

Template parameters
Parameter Description Type Status
Name name

Player's name, if not given the page name is used.

Default
{{PAGENAME}}
Example
empty
Auto value
empty
string required
Halloffame halloffame

Year of induction for [[Hokejski hram slavnih lige NHL]]. (nastaviš lahko tudi svkhalloffame, nedhalloffame, gerhalloffame, frahalloffame, finhalloffame, czehalloffame, ukhalloffame, usahalloffam, rusfhalloffame, slohalloffame, iihfhalloffame)

Default
Example
empty
Auto value
empty
number optional
Image image

Image of player (file name only).

Default
Example
empty
Auto value
empty
string optional
Image_size image_size

Width in px, default is original image size. Try to use 230px, if image is too pixelated upon article preview, leave field blank and image will be shrunk to original size.

Default
Example
empty
Auto value
empty
number optional
Alt alt

Image alt text, for visually impaired readers.

Default
Example
empty
Auto value
empty
string optional
Caption caption

Image caption

Default
Example
empty
Auto value
empty
string optional
Birth_date birth_date

For living players, use {{birth date and age}}, {{birth-date and age}}, or {{birth year and age}}. For deceased players, use {{birth date}} or {{birth-date}}. Add |df=yes before the }} if you want day-month format instead of month-day.

Default
Example
empty
Auto value
empty
string optional
Birth_place birth_place

City, then comma, then [[country code]]; use [[country|country's abbreviation]] as called at time of birth.

Default
Example
empty
Auto value
empty
string optional
Death_date death_date

Use {{death date and age}} or {{death-date and age}}. Add |df=yes before the }} if you want day-month format instead of month-day.

Default
Example
empty
Auto value
empty
string optional
Death_place death_place

Place of death (if known).

Default
Example
empty
Auto value
empty
string optional
Height_cm height_cm

Player's height (centimeters). Do not use both cm and ft/in.

Default
Example
empty
Auto value
empty
number optional
Height_m height_m

Player's height (meters). Do not use both m and ft/in.

Default
Example
empty
Auto value
empty
number optional
Height_ft height_ft

Player's height (feet; use with height_in). Do not use both ft/in and m.

Default
Example
empty
Auto value
empty
number optional
Height_in height_in

Player's height (inches; use with height_ft). Do not use both ft/in and m.

Default
Example
empty
Auto value
empty
number optional
Weight_kg weight_kg

Player's weight (kilograms). Do not use both kg and lb.

Default
Example
empty
Auto value
empty
number optional
Weight_lb weight_lbweight_lbs

Player's weight (pounds). Do not use both lb and kg.

Default
Example
empty
Auto value
empty
number optional
Position position

All positions can be wikified. i.e.: use [[Centre (ice hockey)|Centre]], [[Defenceman (ice hockey)|Defence]], [[Winger (ice hockey)|Left Wing/Right Wing]], [[Goaltender]].

Default
Example
empty
Auto value
empty
string optional
Shoots shoots

Left/Right (if player is a skater; use catches for a goalie). It is HIGHLY RECOMMENDED that one of these two field choices is used in the template. The only reason that this field has been made optional is because there is discretion involved in choosing which of the two to use in the infobox, based on whether the player is a skater or a goalie.

Default
Example
empty
Auto value
empty
string optional
Catches catches

Left/Right (if player is a goalie; use shoots for a skater). It is HIGHLY RECOMMENDED that one of these two field choices is used in the template. The only reason that this field has been made optional is because there is discretion involved in choosing which of the two to use in the infobox, based on whether the player is a skater or a goalie.

Default
Example
empty
Auto value
empty
string optional
League league

Current league. Use abbreviation and link. i.e.: [[National Hockey League|NHL]], [[Kontinental Hockey League|KHL]], etc. If league name is relatively short, you can use the full name. i.e.: [[SM-liiga]]. Infobox WILL flex to accommodate the name.

Default
Example
empty
Auto value
empty
string optional
Team team

Current team (in league above). Enter FULL NAME of team with link, i.e. [[Boston Bruins]], [[HC Dynamo Moscow]], etc.

Default
Example
empty
Auto value
empty
string optional
Prospect_league prospect_league

For players who have been drafted, but have yet to play a game. Use abbreviation and link. i.e.: [[ECHL]], [[Minor Hockey League|MHL]], etc. Any entry into this field will also automatically place (P) next to the pro team listed.

Default
Example
empty
Auto value
empty
string optional
Prospect_team prospect_team

For players who have been drafted, but have yet to play a game. Enter FULL NAME of team with link, i.e. [[Ontario Reign]], [[HK Rīga]], etc.

Default
Example
empty
Auto value
empty
string optional
Former_teams former_teams

Pro teams an active player played for. Enter FULL NAME of teams in chronological order.

Default
Example
empty
Auto value
empty
string optional
Played_for played_for

Pro teams a retired player played for. Enter FULL NAME of teams.

Default
Example
empty
Auto value
empty
string optional
Sex sex

Use f for female players.

Default
Example
empty
Auto value
empty
string optional
Ntl_team ntl_team

Any national senior teams a player played for. Only enter the country name, such as Czech Republic, which generates a link to [[Czech Republic men's national ice hockey team]] (or [[Czech Republic women's national ice hockey team]] if sex=f).

Default
Example
empty
Auto value
empty
string optional
Ntl_team_2 ntl_team_2

If a player played on two national senior teams.

Default
Example
empty
Auto value
empty
string optional
Ntl_team_3 ntl_team_3

In the rare case that a player played on 3 national senior teams such as those from Russia, Soviet Union and the Unified Team, or Eastern Bloc defectors who played for Canada prior to the fall of the Iron Curtain.

Default
Example
empty
Auto value
empty
string optional
Draft draft

Position taken overall in [[NHL Entry Draft]] (1969 or later only), i.e. ''13th overall''. If not drafted AND career began in 1969 or later, put ''Undrafted''.

Default
Example
empty
Auto value
empty
string optional
Draft_year draft_year

Year of NHL Entry Draft, i.e.: 2001 (which creates a link to [[2001 NHL Entry Draft]]).

Default
Example
empty
Auto value
empty
number optional
Draft_team draft_team

Enter FULL NAME of team (NO ABBREVIATION), i.e.: [[Edmonton Oilers]].

Default
Example
empty
Auto value
empty
string optional
Wha_draft wha_draft

Position taken overall in [[WHA Amateur Draft]], i.e. ''13th overall''.

Default
Example
empty
Auto value
empty
string optional
Wha_draft_year wha_draft_year

Year of WHA Amateur Draft, i.e.: 2001 (which creates a link to [[2001 WHA Amatuer Draft]]).

Default
Example
empty
Auto value
empty
number optional
Wha_draft_team wha_draft_team

Enter FULL NAME of team (NO ABBREVIATION), i.e.: [[Cleveland Crusaders]].

Default
Example
empty
Auto value
empty
string optional
Career_start career_start

First pro year if professional, first year of top level of amateur competition if amateur.

Default
value of ''draft_year''.
Example
empty
Auto value
empty
number required
Career_end career_end

Final year of career.

Default
Example
empty
Auto value
empty
number optional
Website website

Player's official website; use {{URL}}

Default
Example
empty
Auto value
empty
string optional
Svkhalloffame svkhalloffame

Year of induction for [[Slovaški hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Nedhalloffame nedhalloffame

Year of induction for [[Nizozemski hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Gerhalloffame gerhalloffame

Year of induction for [[Nemški hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Frahalloffame frahalloffame

Year of induction for [[Francoski hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Finhalloffame finhalloffame

Year of induction for [[Finski hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Czehalloffame czehalloffame

Year of induction for [[Češki hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Ukhalloffame ukhalloffame

Year of induction for [[Britanski hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Usahalloffam usahalloffam

Year of induction for [[Ameriški hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Rusfhalloffame rusfhalloffame

Year of induction for [[Ruski hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional
Slohalloffame slohalloffame

Year of induction for [[Slovenski hokejski hram slavnih]].

Default
Example
empty
Auto value
empty
number optional

Primer uporabe[uredi | uredi kodo]

{{Infopolje Hokejist
| team = [[Avangard Omsk]]
| league = [[Kontinental Hockey League|KHL]]
| image = Jaromir Jagr Prague.jpg
| position = [[krilo (hokej na ledu)|desno krilo]] (RW)
| shoots = Leva
| height = 189
| weight = 104
| nationality = Češka
| birth_date = {{birth date and age|1972|2|15}}
| birth_place = [[Kladno]], [[Češkoslovaška]]
| draft = 5. skupno
| former_teams = '''[[National Hockey League|NHL]]:''' <br> [[New York Rangers]]<br>[[Washington Capitals]]<br>[[Pittsburgh Penguins]] 
<br> '''[[Extraliga (Češka)|Češka Extraliga]]:''' <br> [[HC Kladno]] <br> '''[[Serie A (hokej na ledu)|Serie A]]:''' <br> [[HC Bolzano]] <br> 
'''[[2. Bundesliga (hokej na ledu)|2. Bundesliga]]:''' <br> [[Schalker Haie]]
| draft_year = 1990
| draft_team = [[Pittsburgh Penguins]]
| career_start = 1988
| reprezentanca = TCH
| SPmedalje = [[Slika:Bronze medal icon.svg|15px|link=Svetovno prvenstvo v hokeju na ledu 1990]]
| SP = 1
| reprezentanca2 = CZE
| OImedalje2 = [[Slika:Gold medal.svg|15px|link=Zimske olimpijske igre 1998]] [[Slika:Bronze medal.svg|15px|link=Zimske olimpijske igre 2006]]
| SPmedalje2 = [[Slika:Gold medal icon.svg|15px|link=Svetovno prvenstvo v hokeju na ledu 2005]]
| OI2 = 3
| SP2 = 4
| czehalloffame = 2004
}}

Zgornji vstavek bi izgledal takole:

Infopolje Hokejist
Jaromir Jagr Prague.jpg
Osebni podatki
Državljanstvo Zastava Češke Češka
Rojstvo
(1972-02-15) 15. februar 1972 (43 let)
Kladno, Češkoslovaška

Položaj desno krilo (RW)
Boljša roka Leva
Višina 189 cm
Teža 104 kg
Klubska kariera
KHL klub
Bivši klubi
Avangard Omsk
NHL:
New York Rangers
Washington Capitals
Pittsburgh Penguins
Češka Extraliga:
HC Kladno
Serie A:
HC Bolzano
2. Bundesliga:
Schalker Haie
NHL nabor 5. skupno, 1990
Pittsburgh Penguins
Profesionalna kariera 1988 – danes
Reprezentančna kariera
Reprezentanca Flag of Czechoslovakia.svg Češkoslovaška
Medalje SP Bronze medal icon.svg
Svetovna prvenstva 1
Reprezentanca Flag of the Czech Republic.svg Češka
Medalje OI Gold medal.svg Bronze medal.svg
Medalje SP Gold medal icon.svg
Olimpijske igre 3
Svetovna prvenstva 4
Češki hram slavnih, 2004