Jump to content

टेम्पलेट:Infobox medal templates/doc: रिवीजन सभ के बीचा में अंतर

विकिपीडिया से
Content deleted Content added
imported>Frietjes
No edit summary
छो ४३ revisions imported from en:Template:Infobox_medal_templates/doc
 
(13 प्रयोगकर्ता लोग के कइल 25 बीच के रिवीजन नइखे देखावल जात)
लाइन 1: लाइन 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->


This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.
This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.


=== Usage ===
== Usage ==


<pre>
<pre>
लाइन 15: लाइन 15:


| header5 = {{Infobox medal templates
| header5 = {{Infobox medal templates
| title = Honours<!-- default is "Medal record" -->
| medals = {{{medaltemplates|}}}
| medals = {{{medaltemplates|}}}
| expand = {{{medaltemplates-expand|}}}
| expand = {{{medaltemplates-expand|}}}
| title = <!-- optional; default is "Medal record" -->
| titlestyle = <!-- optional; default is "background-color: transparent;" -->
}}
}}


लाइन 23: लाइन 24:
</pre>
</pre>


=== Additional parameters ===
== Note ==
Do not enclose the medal templates with {{tl|MedalTop}}, {{tl|MedalBottom}}, or any other table header/footer templates, as this will cause the template to break. Most instances of this misuse are tracked in [[:Category:Infobox medal templates requiring repair]].
<pre>
| titlestyle = background-color: #cdcdcd;<!-- default is background-color: transparent; -->
</pre>


=== Templates using this template ===
== Templates using this template ==
{| class="wikitable sortable collapsible collapsed" style="font-size:88%"
* [[Template:Infobox alpine ski racer]]
! colspan="6" class="unsortable" style="background-color:#ddd" | List of templates which implement <nowiki>{{Infobox medal templates}}</nowiki>
* [[Template:Infobox badminton player]]
|-
* [[Template:Infobox basketball biography]]‎
! Template name !! Default !! Accept 'no'? !! Show param !! Title !! Title param
* [[Template:Infobox boxer (amateur)]]
|-
* [[Template:Infobox college coach]]
| {{tlx|Infobox alpine ski racer}} || collapsed || N || show-medals || Medal record || ''none''
* [[Template:Infobox cyclist]]
|-
* [[Template:Infobox diver]]
| {{tlx|Infobox amateur wrestler}} || expanded || Y || show-medals || Medal record || ''none''
* [[Template:Infobox equestrian]]
|-
* [[Template:Infobox fencer]]
| {{tlx|Infobox badminton player}} || expanded || Y || show-medals || Medal record || ''none''
* [[Template:Infobox figure skater]]
|-
* [[Template:Infobox football biography‎]]
| {{tlx|Infobox bandy biography}} || expanded || N || medaltemplates-expand || Honours || medaltemplates-title
* [[Template:Infobox gymnast]]
|-
* [[Template:Infobox lacrosse player]]
| {{tlx|Infobox basketball biography}} || expanded || Y || show-medals<br />medaltemplates-expand<br />medal_templates-expand || Medals || ''none''
* [[Template:Infobox national football team‎]]
|-
* [[Template:Infobox NCAA athlete]]
| {{tlx|Infobox biathlete}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || collapsed* || N* || show-medals || Medal record || ''none''*
* [[Template:Infobox sportsperson]]
|-
* [[Template:Infobox squash player]]
| {{tlx|Infobox boxer}} || expanded || Y || show-medals || Medal record || ''none''
* [[Template:Infobox swimmer‎]]
|-
* [[Template:Infobox table tennis player]]
| {{tlx|Infobox boxer (amateur)}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || collapsed* || N* || show-medals || Medal record || ''none''*
* [[Template:Infobox tennis biography]]
|-
* [[Template:Infobox volleyball player]]
| {{tlx|Infobox climber}} || expanded || Y || show-medals || Medal record || ''none''
* [[Template:Infobox WNBA player]]
|-
| {{tlx|Infobox college coach}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox curler}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox cyclist}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox darts player}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox equestrian}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox fencer}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox field hockey player}} || expanded || N || medaltemplates-expand || Medal record || ''none''
|-
| {{tlx|Infobox figure skater}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox football biography}} || collapsed || N || medaltemplates-expand || Honours || medaltemplates-title
|-
| {{tlx|Infobox go player}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox gymnast}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox ice hockey player}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox lacrosse player}} || collapsed || N || medaltemplates-expand<br />medal_templates-expand || Medal record || ''none''
|-
| {{tlx|Infobox martial artist}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox national basketball team}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox national football team}} || collapsed || N || medaltemplates-expand || Honours || ''none''
|-
| {{tlx|Infobox national volleyball team}} || collapsed || N || medaltemplates-expand || Honours || medaltemplates-title
|-
| {{tlx|Infobox NCAA athlete}} || collapsed || N || medaltemplates-expand<br />medal_templates-expand || Medal record || ''none''
|-
| {{tlx|Infobox netball biography}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox sailor}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || collapsed* || N* || show-medals || Medal record || medaltemplates-title
|-
| {{tlx|Infobox short track speed skater}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || expanded || Y || show-medals || Medal record || ''none''*
|-
| {{tlx|Infobox skier}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox snowboarder}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || expanded || Y || show-medals || Medal record || ''none''*
|-
| {{tlx|Infobox speed skater}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || expanded || Y || show-medals || Medal record || ''none''*
|-
| {{tlx|Infobox sport wrestler}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || expanded || Y || show-medals || Medal record || ''none''*
|-
| {{tlx|Infobox sportsperson}} || expanded || Y || show-medals || Medal record || medaltemplates-title
|-
| {{tlx|Infobox squash player}} || expanded || Y || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox swimmer}}<br />&nbsp;&nbsp;''via Infobox sportsperson (* = different behavior)'' || collapsed* || N* || show-medals || Medal record || ''none''*
|-
| {{tlx|Infobox synchronized skating team}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox table tennis player}} || collapsed || N || show-medals || Medal record || ''none''
|-
| {{tlx|Infobox tennis biography}} || collapsed || N || medaltemplates-expand || Medal record || medaltemplates-title
|-
| {{tlx|Infobox volleyball biography}} || expanded || N || medaltemplates-expand || Honours || medaltemplates-title
|}


=== See also ===
==TemplateData==
{{TemplateDataHeader}}
* {{tl|MedalTop}}
<templatedata>
* {{tl|MedalBottom}}
{
"description": "This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.",
"params": {
"medals": {
"label": "Medals",
"description": "Medal templates",
"type": "string",
"required": true
},
"expand": {
"label": "Expand",
"description": "Any value here will expand (display) the medal templates section. It is collapsed by default.",
"type": "boolean",
"suggested": true
},
"title": {
"label": "Title",
"description": "Customize the title",
"type": "string",
"default": "Medal record"
},
"titlestyle": {
"label": "Title style",
"description": "CSS style rules for the title",
"type": "string",
"default": "background-color:transparent;"
}
}
}
</templatedata>


== See also ==
<includeonly>
* {{tl|MedalBox}}
<!-- Categories and interwikis go here: -->
* {{tl|MedalTableTop}}, {{tl|MedalTop}}, {{tl|MedalBottom}}
[[Category:Medal infobox templates]]
* {{tl|CompetitionRecordTableTop}}, {{tl|CompetitionRecordBottom}}
* [[:Category:Infobox medal templates requiring repair]] (tracking/maintenance category)


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[mk:Шаблон:Инфокутија Медали]]
<!-- Categories below this line, please; interwikis at Wikidata -->
[[ja:Template:Infobox medal templates]]
[[Category:Medal infobox templates|Medal templates]]
</includeonly>
[[Category:Templates that add a tracking category]]
}}</includeonly>

02:54, 9 जून 2016 ले भइल नया बदलाव

This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.

{{Infobox
| above = Athlete
| label1 = Sport
| data1  = Foo

...

| header5 = {{Infobox medal templates
  | medals = {{{medaltemplates|}}}
  | expand = {{{medaltemplates-expand|}}} 
  | title = <!-- optional; default is "Medal record" -->
  | titlestyle = <!-- optional; default is "background-color: transparent;" -->
 }}

}}

Do not enclose the medal templates with {{MedalTop}}, {{MedalBottom}}, or any other table header/footer templates, as this will cause the template to break. Most instances of this misuse are tracked in Category:Infobox medal templates requiring repair.

Templates using this template

[संपादन करीं]
This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Infobox medal templates

This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.

Template parameters

ParameterDescriptionTypeStatus
Medalsmedals

Medal templates

Stringrequired
Expandexpand

Any value here will expand (display) the medal templates section. It is collapsed by default.

Booleansuggested
Titletitle

Customize the title

Default
Medal record
Stringoptional
Title styletitlestyle

CSS style rules for the title

Default
background-color:transparent;
Stringoptional