[go: up one dir, main page]
More Web Proxy on the site http://driver.im/Hopp til innhold

Diskusjon:Eredivisie 2019/20

Sideinnholdet støttes ikke på andre språk.
Fra Wikipedia, den frie encyklopedi

Question

[rediger kilde]

@Blyngre, The8: Hi, I don't speak Norwegian, so I've to d this in English. I'm pinging you 2 because it seems you 2 work most on the football season pages and Tustervatn 99 doesn't answer my question. Maybe 1 of you 2 can answer it.

The question you can read here: Brukerdiskusjon:Tustervatn 99#Mal:Eredivisie 2019-2020 tabell

Let me add, it doesn't make much sense anyway to create a separate template page if only 1 page is referring to it.

If you answer, please include a "ping" so I know someone answered.

--Sb008 (diskusjon) 22. jun. 2020 kl. 00:55 (CEST)[svar]

@Sb008:: Interesting knowledge how to use it in other settings from main page. Difficult to generalize for all contributers in all sports at no-wiki, but for standings in leagues we usally use templates in norwegian wikipedia. At least for Norwegian leagues where the standings often are linked in the team articles. A personal opinion is that its also not so much editing on the main page with templates as an advantage. Is your issue by using templates that we use more pages or you want to advice to make it easier? Blyngre (diskusjon) 22. jun. 2020 kl. 12:33 (CEST)[svar]

@Blyngre:

Transcluding full pages

[rediger kilde]

Transcluding a page from the main space (an aticle)

[rediger kilde]

Use: {{:<pagename>}} (See the colon (:) after "{{")
Example: {{:Sondre Brunstad Fet}}
Result: I'm not showing the result here because this page will end up in the same categories as the categories listed in the transcluded page. You can see however how it works by copying {{:Sondre Brunstad Fet}} to any page and press "show preview (Førehansvis)". Do not press "publish changes (Publiser endringar)". It's not that important because you don't want to transclude a full article anyway.

Transcluding a page from the template space (a template)

[rediger kilde]

This is what is done on all the football season pages.
Use: {{<pagename>}} (No colon (:) after "{{")
Example: {{Eliteserien 2020 tabell}}
Result:

Eliteserien i fotball for menn 2020
# Lag K S U T Mål ± P
1 Bodø/Glimt 30 26 3 1 103–32 71 81
2 Molde 30 20 2 8 77–36 41 62
3 Vålerenga 30 15 10 5 51–33 18 55
4 Rosenborg 30 15 7 8 50–35 15 52
5 Kristiansund 30 12 12 6 57–45 12 48
6 Viking 30 12 8 10 54–52 2 44
7 Odd 30 13 4 13 52–51 1 43
8 Stabæk 30 9 12 9 41–45 −4 39
9 Haugesund 30 11 6 13 39–51 −12 39
10 Brann 30 8 9 12 40–49 −9 36
11 Sandefjord 30 9 8 13 31–43 −12 35
12 Sarpsborg 08 30 8 8 14 33–43 −10 32
13 Strømsgodset 30 7 10 13 41–57 −16 31
14 Mjøndalen 30 8 3 19 26–45 −19 27
15 Start 30 6 9 15 33–56 −23 27
16 Aalesund 30 2 5 23 30–85 −55 11
Sist oppdatert: 22. desember 2020  · Kilde  ·

At the end of the template page <noinclude> and </noinclude> are used to avoid the page where the template page is transcluded to, will end up in the same categories as well. In the example above (transcluding an article), you can use <noinclude> and </noinclude> in the same way.

Transcluding part of a pages

[rediger kilde]

Basically there are 2 ways to do so:

  • Section transclusion
  • Labeled (section) transclusion

Section transclusion

[rediger kilde]

On my user page Bruker:Sb008 there're a lot of tables. One is for the Eredivisie and another if for the Bundesliga. Both tables are created using the module Modul:Sports table. This module allows the tables to be given a section name using the parameter "section". for the Eredivisie this is "|section=Eredivisie standings" and for the Bundesliga "|section=Bundesliga standings". I can use these names for sectin transclusion.

Use: {{<pagename>|transcludesection=<>section name}}
Example 1: {{:Bruker:Sb008|transcludesection=Bundesliga standings}}
Result:

Babel-brukerinformasjon
li-N Deze gebroeker haet 't Limburgs es zien moderspraok.
nl-N Deze gebruiker heeft het Nederlands als moedertaal.
de-4 Dieser Benutzer beherrscht Deutsch auf muttersprachlichem Niveau.
en-3 This user has advanced knowledge of English.
fr-2 Cet utilisateur dispose de connaissances intermédiaires en français.
sl-1 Uporabnik pozna osnove slovenskega jezika.
hr-1 Ovaj suradnik ima osnovno znanje hrvatskog jezika.
sr-1 Овај корисник има основно знање српског језика.
bs-1 Ovaj korisnik ima osnovno znanje bosanskog jezika.
Brukere etter språk

Example 2: {{:Bruker:Sb008|transcludesection=Eredivisie standings}}
Result:

Babel-brukerinformasjon
li-N Deze gebroeker haet 't Limburgs es zien moderspraok.
nl-N Deze gebruiker heeft het Nederlands als moedertaal.
de-4 Dieser Benutzer beherrscht Deutsch auf muttersprachlichem Niveau.
en-3 This user has advanced knowledge of English.
fr-2 Cet utilisateur dispose de connaissances intermédiaires en français.
sl-1 Uporabnik pozna osnove slovenskega jezika.
hr-1 Ovaj suradnik ima osnovno znanje hrvatskog jezika.
sr-1 Овај корисник има основно знање српског језика.
bs-1 Ovaj korisnik ima osnovno znanje bosanskog jezika.
Brukere etter språk

As I said, both tables are on the same page. It is possible to put the standings tables of all leagues, or the tables of all seasons in the same league, on the same page. As long as you give them all a different different "section name.

Example: Suppose I put the standings tables (using "Sports table") of all seasons of the Norwegian league on the same page. For the standings table of 2020 I use "|section=Eliteserien 2020 tabell", for the table of 2019 ("|section=Eliteserien 2019 tabell"), for the table of 2018 ("|section=Eliteserien 2018 tabell") etc etc

Now if I use {{:Bruker:Sb008|transcludesection=Eliteserien 2019 tabell}} on the Eliteserien i fotball for menn 2019 page it will only transclude the table of 2019. Likewise, if I use {{:Bruker:Sb008|transcludesection=Eliteserien 2011 tabell}} on the Tippeligaen_2011 page it will only transclude the table of 2011.

This only works if I create tables using the nodule "Sports table" because it allows me to set a section name. It will not work for tables created with created with {{Serietabell start}} ....... {Serietabell| 6 .......}} ........ {{Serietabell slutt}} because you cannot set a section name.

Labelled (section) transclusion

[rediger kilde]

If I cannot use "section transclusion" I can use "Labelled (section) transclusion".

The Bundesliga table is listed below the page section (don't confuse this with named section) "German Tabell" (== German Tabell ==). I can use this section as "label".

General: {{#section-h:<page name>|<page section>}} or {{#lsth:<page name>|<page section>}}
Example 1: {{#section-h:Eliteserien i fotball for menn 2019|Tabell}}
Result

Eliteserien i fotball for menn 2019
# Lag K S U T Mål ± P
1 Molde 30 21 5 4 72–31 41 68
2 Bodø/Glimt 30 15 9 6 64–44 20 54
3 Rosenborg 30 14 10 6 53–41 12 52
4 Odd 30 15 7 8 45–40 5 52
5 Viking 30 13 8 9 55–42 13 47
6 Kristiansund 30 11 8 11 41–41 0 41
7 Haugesund 30 9 13 8 44–37 7 40
8 Stabæk 30 10 10 10 38–36 2 40
9 Brann 30 10 10 10 32–37 −5 40
10 Vålerenga 30 8 10 12 39–44 −5 34
11 Strømsgodset 30 8 8 14 41–54 −13 32
12 Sarpsborg 08 30 5 15 10 30–40 −10 30
13 Mjøndalen 30 6 12 12 38–52 −14 30
14 Lillestrøm 30 7 9 14 32–47 −15 30
15 Tromsø 30 8 6 16 39–58 −19 30
16 Ranheim 30 7 6 17 36–55 −19 27
Kilde  ·

As you can see, there is a disadvantage, it transcludes everything under the page section "German Tabell"

There is a way to avoid this. You can create your own labels. You can create labels by using <section begin=<label> /> and <section end=<label> />


If you look here: UEFA Nations League 2018-2019 divisjon A#Sluttspill you see a page section with a bracket, the result of the semi-finals, 3rd place game and final. I can translude that whole page section (in the same a above) by using {{#section-h:UEFA Nations League 2018-2019 divisjon A|Sluttspill}}

Result:

  Semifinale     Finale
                 
  3  Portugal 3  
  2  Sveits 1    
       Portugal 1
       Nederland 0
  1  Nederland 3    
  4  England 1   Bronsefinale
 
 Sveits 0 (5)
   England (str.) 0 (6}

Semifinaler

[rediger | rediger kilde]
5. juni 2019 Portugal  3–1  Sveits Porto
20:45 Ronaldo Scoret i det 25. minutt 25', 88', 90' Report Scoret i det 57. minutt 57' (str.) Rodríguez Arena: Estádio do Dragão
Tilskuertall: 42 415
Hoveddommer: Felix Brych, (Tyskland)
6. juni 2019 Nederland  3–1 (e.e.o.)  England Guimarães
20:45 De Ligt Scoret i det 73. minutt 73'
Walker Scoret i det 97. minutt 97' (selvmål)
Promes Scoret i det 114. minutt 114'
Report Scoret i det 32. minutt 32' (str.) Rashford Arena: Estádio D. Afonso Henriques
Tilskuertall: 25 711
Hoveddommer: Clément Turpin, (Frankrike)

Bronsefinale

[rediger | rediger kilde]
9. juni 2019 Portugal  1–0  Nederland Porto
20:45 Guedes Scoret i det 60. minutt 60' Report Arena: Estádio do Dragão
Tilskuertall: 43 199
Hoveddommer: Alberto Undiano Mallenco, (Spania

If you next look the code of that page you will see that the "bracket" is place between <section begin=Bracket /> and <section end=Bracket />, the semi-final games between <section begin=Semifinale /> and <section end=Semifinale />, ........, and the final between <section begin=Finale /> and <section end=Finale />.

If I want to have onlt the results of the semi-finals, I can use {{#section:UEFA Nations League 2018-2019 divisjon A|Semifinale}}.

Instead of #section-h, you use #section (The "-h" means you are using a page section as label, without the "-h" it means you use a label defined with <section begin=<label> /> and <section end=<label> />. "Semifinale" is the name of the label.

Result:

5. juni 2019 Portugal  3–1  Sveits Porto
20:45 Ronaldo Scoret i det 25. minutt 25', 88', 90' Report Scoret i det 57. minutt 57' (str.) Rodríguez Arena: Estádio do Dragão
Tilskuertall: 42 415
Hoveddommer: Felix Brych, (Tyskland)
6. juni 2019 Nederland  3–1 (e.e.o.)  England Guimarães
20:45 De Ligt Scoret i det 73. minutt 73'
Walker Scoret i det 97. minutt 97' (selvmål)
Promes Scoret i det 114. minutt 114'
Report Scoret i det 32. minutt 32' (str.) Rashford Arena: Estádio D. Afonso Henriques
Tilskuertall: 25 711
Hoveddommer: Clément Turpin, (Frankrike)

This way you can transclude only the section you labeled instead of a complete section.

As you have seen there're many ways to transclude.

If I now look at Mal:Premier League 2019/20 tabell and look which pages link there ("Lenkjer hit" in the menu on the left), you'll see there's only 1 page that links to this template; Premier League 2019/20.

Why use a separate temple with the table if there's only 1 page linking to it. You might just as well put the table on the [Premier League 2019/20]]. And, if later on, it turns out you want more pages to use this table, if you put a "section" parameter in the table, you can transclude to any page you look.

I converted this template page Mal:Eliteserien 2020 tabell to a format using "sports table". Next I made sure "|section=Eliteserien 2020 tabell" is inside the table. Now I can use "section transclusion" to transclude it to were ever I want.

If I want to see the table on this page, I use {{:Bruker:Sb008|transcludesection=Eliteserien 2020 tabell}} here.

Result:

Babel-brukerinformasjon
li-N Deze gebroeker haet 't Limburgs es zien moderspraok.
nl-N Deze gebruiker heeft het Nederlands als moedertaal.
de-4 Dieser Benutzer beherrscht Deutsch auf muttersprachlichem Niveau.
en-3 This user has advanced knowledge of English.
fr-2 Cet utilisateur dispose de connaissances intermédiaires en français.
sl-1 Uporabnik pozna osnove slovenskega jezika.
hr-1 Ovaj suradnik ima osnovno znanje hrvatskog jezika.
sr-1 Овај корисник има основно знање српског језика.
bs-1 Ovaj korisnik ima osnovno znanje bosanskog jezika.
Brukere etter språk

If you want to see the table also on the Mjøndalen Idrettsforening, you just {{:Bruker:Sb008|transcludesection=Eliteserien 2020 tabell}} on that page wherever you want the table to be.

You can even do a lot more. You can give extra parameters which are used by the module "sports table", like e.g. {{:Bruker:Sb008|transcludesection=Eliteserien 2020 tabell|showteam=MJO}} (It will show only 5, the default, entries from the table with team MJO (Mjøndalen) in the middle.

Result:

Babel-brukerinformasjon
li-N Deze gebroeker haet 't Limburgs es zien moderspraok.
nl-N Deze gebruiker heeft het Nederlands als moedertaal.
de-4 Dieser Benutzer beherrscht Deutsch auf muttersprachlichem Niveau.
en-3 This user has advanced knowledge of English.
fr-2 Cet utilisateur dispose de connaissances intermédiaires en français.
sl-1 Uporabnik pozna osnove slovenskega jezika.
hr-1 Ovaj suradnik ima osnovno znanje hrvatskog jezika.
sr-1 Овај корисник има основно знање српског језика.
bs-1 Ovaj korisnik ima osnovno znanje bosanskog jezika.
Brukere etter språk

Or: {{:Bruker:Sb008|transcludesection=Eliteserien 2020 tabell|showteam=SAN|show_limit=7}} (the same but 7 entries and SAN (Sandefjord) in the middle.

Result:'

Babel-brukerinformasjon
li-N Deze gebroeker haet 't Limburgs es zien moderspraok.
nl-N Deze gebruiker heeft het Nederlands als moedertaal.
de-4 Dieser Benutzer beherrscht Deutsch auf muttersprachlichem Niveau.
en-3 This user has advanced knowledge of English.
fr-2 Cet utilisateur dispose de connaissances intermédiaires en français.
sl-1 Uporabnik pozna osnove slovenskega jezika.
hr-1 Ovaj suradnik ima osnovno znanje hrvatskog jezika.
sr-1 Овај корисник има основно знање српског језика.
bs-1 Ovaj korisnik ima osnovno znanje bosanskog jezika.
Brukere etter språk

All in all, you can leave the table on the season page, and use section transclusion. If there're only a few pages that you want to transclude the table to, it's more effective and you don't need to create a separate template page.

There's al so the module Modul:sports results which allows you to create a results matrix and allows you to use the same "trick".

--Sb008 (diskusjon) 22. jun. 2020 kl. 20:34 (CEST)[svar]