Predloga:Infopolje Hokejist

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search
Rojstvo
Documentation icon Dokumentacija predloge[predogled] [uredi] [zgodovina] [osveži]

Integracija infopolj z Wikipodatki[uredi kodo]

Prednosti in slabosti[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 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 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 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 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 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 kodo]

To je TemplateData dokumentacija za predlogo, ki jo uporablja VisualEditor in druga orodja;glejte mesečno napakovno poročilo za to predlogo.

TemplateData za Infopolje Hokejist

Predloga za prikaz infopolja za igralce hokeja.

Template parameters

ParameterDescriptionTypeStatus
Namename

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

Default
{{PAGENAME}}
Stringrequired
Halloffamehalloffame

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

Default
Numberoptional
Imageimage

Image of player (file name only).

Default
Stringoptional
Image_sizeimage_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
Numberoptional
Altalt

Image alt text, for visually impaired readers.

Default
Stringoptional
Captioncaption

Image caption

Default
Stringoptional
Birth_datebirth_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
Stringoptional
Birth_placebirth_place

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

Default
Stringoptional
Death_datedeath_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
Stringoptional
Death_placedeath_place

Place of death (if known).

Default
Stringoptional
Height_cmheight_cm

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

Default
Numberoptional
Height_mheight_m

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

Default
Numberoptional
Height_ftheight_ft

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

Default
Numberoptional
Height_inheight_in

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

Default
Numberoptional
Weight_kgweight_kg

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

Default
Numberoptional
Weight_lbweight_lbweight_lbs

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

Default
Numberoptional
Positionposition

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
Stringoptional
Shootsshoots

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
Stringoptional
Catchescatches

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
Stringoptional
Leagueleague

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
Stringoptional
Teamteam

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

Default
Stringoptional
Prospect_leagueprospect_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
Stringoptional
Prospect_teamprospect_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
Stringoptional
Former_teamsformer_teams

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

Default
Stringoptional
Played_forplayed_for

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

Default
Stringoptional
Sexsex

Use f for female players.

Default
Stringoptional
Ntl_teamntl_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
Stringoptional
Ntl_team_2ntl_team_2

If a player played on two national senior teams.

Default
Stringoptional
Ntl_team_3ntl_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
Stringoptional
Draftdraft

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
Stringoptional
Draft_yeardraft_year

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

Default
Numberoptional
Draft_teamdraft_team

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

Default
Stringoptional
Wha_draftwha_draft

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

Default
Stringoptional
Wha_draft_yearwha_draft_year

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

Default
Numberoptional
Wha_draft_teamwha_draft_team

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

Default
Stringoptional
Career_startcareer_start

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

Default
value of ''draft_year''.
Numberrequired
Career_endcareer_end

Final year of career.

Default
Numberoptional
Websitewebsite

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

Default
Stringoptional
Svkhalloffamesvkhalloffame

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

Default
Numberoptional
Nedhalloffamenedhalloffame

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

Default
Numberoptional
Gerhalloffamegerhalloffame

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

Default
Numberoptional
Frahalloffamefrahalloffame

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

Default
Numberoptional
Finhalloffamefinhalloffame

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

Default
Numberoptional
Czehalloffameczehalloffame

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

Default
Numberoptional
Ukhalloffameukhalloffame

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

Default
Numberoptional
Usahalloffamusahalloffam

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

Default
Numberoptional
Rusfhalloffamerusfhalloffame

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

Default
Numberoptional
Slohalloffameslohalloffame

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

Default
Numberoptional

Primer uporabe[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 (46 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 the Czech Republic.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