ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:S-start-collapsible/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ

S-start-collapsible is an alternative to {{S-start}}, the initial component in a template series for succession boxes. As the name implies, it uses a collapsible table.

Replace {{s-start}} with {{s-start-collapsible|header=value}}.

A collapsible succession box always needs a header, otherwise it will break the page rendering. For this reason the template will force you to use the header parameter. The value of this header parameter is one of the succession box headers.

Example

[ਸੋਧੋ]
{{s-start-collapsible|header={{s-ach}}}}
{{s-bef|before = [[Richie Ashburn]]}} 
{{s-ttl|title  = [[List of Major League Baseball batting champions|National League Batting Champion]]|years  = 1956}} 
{{s-aft|after  = [[Stan Musial]]}}

{{s-bef|before = [[Duke Snider]]}} 
{{s-ttl|title  = [[List of Major League Baseball annual home run leaders|National League Home Run Champion]]|years  = 1957}} 
{{s-aft|after  = [[Ernie Banks]]}}

{{s-bef|before = [[Stan Musial]]}} 
{{s-ttl|title  = [[List of Major League Baseball annual runs batted in leaders|National League RBI Champion]]|years  = 1957}} 
{{s-aft|after  = [[Ernie Banks]]}}
{{s-end}}

Will generate:

Awards and achievements
ਪਿਛਲਾ
Richie Ashburn
National League Batting Champion
1956
ਅਗਲਾ
Stan Musial
ਪਿਛਲਾ
Duke Snider
National League Home Run Champion
1957
ਅਗਲਾ
Ernie Banks
ਪਿਛਲਾ
Stan Musial
National League RBI Champion
1957
ਅਗਲਾ
Ernie Banks