Template:Infobox award: Difference between revisions

From IxWiki
Jump to navigation Jump to search
>Primefac
sync with sandbox for template merger (TPER)
 
mNo edit summary
 
Line 1: Line 1:
{{Infobox
<includeonly>{{#if:{{#invoke:is infobox in lead|main|[Ii]nfobox ?%a* [Aa]ward}}|{{#ifeq:{{#invoke:String|match|{{lc:{{PAGENAME}}}}|award}}|award||{{short description|Award|noreplace}}}}}}</includeonly>{{Infobox
| bodyclass  = vevent
| bodyclass  = vevent


Line 9: Line 9:
| labelstyle  = width: 33%;
| labelstyle  = width: 33%;


| subheader  = {{#if:{{{subheader|}}}|{{{subheader}}}|{{#if:{{{current_awards|}}}|[[File:{{Ambox globe current red}}|40px|alt=]] ''[[{{{current_awards|}}}]]''}}}}
| subheader  = {{#if:{{{subheader|}}}|{{{subheader}}}|{{#if:{{{current_awards|}}}|''Current: [[{{{current_awards|}}}]]''}}}}


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |rank=best |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| caption    = {{{image caption|{{{caption|{{{image_caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}}}}}
| caption    = {{{image caption|{{{caption|{{{image_caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}}}}}


| label1      = Type
| label1      = Native name
| data1      = {{{type|}}}
| data1      = {{{native_name|}}}


| label2      = Awarded for
| label2      = Type
| data2      = {{{description|}}}
| data2      = {{{type|}}}


| label3      = Sponsored by
| label3      = Awarded for
| data3      = {{{sponsor|}}}
| data3      = {{{awarded_for|}}}


| label4      = Date
| label4      = Description
| data4      = {{{date|}}}
| data4      = {{{description|}}}


| label5      = {{#if:{{{venue|}}}|Venue|{{#if:{{{location|}}}|Location|Site}}}}
| label5      = Sponsored by
| data5      = {{#if:{{{venue|}}}|{{{venue}}}|{{#if:{{{location|}}}|{{{location}}}|{{{site|}}}}}}}
| data5      = {{{sponsor|}}}
| class5      = location


| label6      = Country
| label6      = Date
| data6      = {{#invoke:WikidataIB |getValue |P17 |name=country |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} | {{{country|}}} }}
| data6      = {{{date|}}}
| class6      = location


| label7      = Presented by
| label7      = {{#if:{{{venue|}}}|Venue|{{#if:{{{location|}}}|Location|Site}}}}
| data7      = {{#invoke:WikidataIB |getValue |P1027 |name=presenter |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} | {{{presenter|}}} }}
| data7      = {{#if:{{{venue|}}}|{{{venue}}}|{{#if:{{{location|}}}|{{{location}}}|{{{site|}}}}}}}
| class7      = attendee
| class7      = location


| label8      = Eligibility
| label8      = Country
| data8      = {{{eligibility|}}}
| data8      = {{#invoke:WikidataIB |getValue |P17 |name=country |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} | {{{country|}}} }}
| class8      = location


| label9      = Post-nominals
| label9     = Presented by
| data9       =  {{{post-nominals|}}}
| data9      = {{#invoke:WikidataIB |getValue |P1027 |name=presenter |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} | {{{presenter|}}} }}
| class9      = attendee
 
| label10      = Eligibility
| data10      = {{{eligibility|}}}
 
| label11     = Post-nominals
| data11       =  {{{post-nominals|}}}
 
| label12    = Ribbon
| data12      = {{{ribbon|}}}
 
| label13    = Obverse
| data13      = {{{obverse|}}}
 
| label14    = Reverse
| data14      = {{{reverse|}}}


<!-- Film / television -->
<!-- Film / television -->
| label20     = {{#if:{{{host|}}}|Hosted by|Hosted by}}
| label15     = {{#if:{{{host|}}}|Hosted by|Hosted by}}
| data20       = {{#if:{{{host|}}}|{{{host}}}|{{{hosts|}}}}}
| data15       = {{#if:{{{host|}}}|{{{host}}}|{{{hosts|}}}}}
| class20     = attendee
| class15     = attendee


| label21     = Formerly called
| label16     = Formerly called
| data21       = {{{former name|}}}
| data16       = {{{former name|}}}


| label22     = Preshow host(s)
| label17     = Preshow host(s)
| data22       = {{{preshow_host|}}}
| data17       = {{{preshow_host|}}}
| class22     = attendee
| class17     = attendee


| label23     = Act(s)
| label18     = Act(s)
| data23       = {{{acts|}}}
| data18       = {{{acts|}}}
| class23     = attendee
| class18     = attendee
<!-- End Film / television -->
<!-- End Film / television -->


<!-- Military -->
<!-- Military -->
| label30     = Campaign(s)
| label19     = Campaign(s)
| data30     = {{{campaign|}}}
| data19     = {{{campaign|}}}


| label31     = Motto
| label20     = Motto
| data31     = {{{motto|}}}
| data20     = {{{motto|}}}


| label32     = [[Campaign clasp|Clasps]]
| label21     = [[Campaign clasp|Clasps]]
| data32     = {{{clasps|}}}
| data21     = {{{clasps|}}}
<!-- End Military -->
<!-- End Military -->


| label40     = Reward(s)
| label22     = Reward(s)
| data40     = {{{reward|}}}
| data22     = {{{reward|}}}


| label41     = Status
| label23     = Status
| data41     = {{{status|}}}
| data23     = {{{status|}}}


| label42     = Established
| label24     = Established
| data42     = {{{established|}}}
| data24     = {{{established|}}}


| label43     = First awarded
| label25     = First awarded
| data43     = {{if empty|{{{firstawarded|}}}|{{{year|}}}}}
| data25     = {{if empty|{{{firstawarded|}}}|{{{year|}}}}}


| label44     = Last awarded
| label26     = Last awarded
| data44     = {{if empty|{{{lastawarded|}}}|{{{year2|}}}}}
| data26     = {{if empty|{{{lastawarded|}}}|{{{year2|}}}}}


| label45     = {{#if:{{{holder|}}}
| label27     = {{#if:{{{holder|}}}
   |{{#if:{{{holder_label|}}}|{{{holder_label}}}|Currently held by}}
   |{{#if:{{{holder_label|}}}|{{{holder_label}}}|Currently held by}}
   |{{#if:{{{winner|}}}
   |{{#if:{{{winner|}}}
Line 94: Line 109:
     }}
     }}
   }}
   }}
| data45     = {{if empty|{{{holder|}}}|{{{winner|}}}|{{{winners|}}}}}
| data27     = {{if empty|{{{holder|}}}|{{{winner|}}}|{{{winners|}}}}}


| header50   = {{#if:{{Both|{{{award1_type|}}}|{{{award1_winner|}}}}}{{Both|{{{award2_type|}}}|{{{award2_winner|}}}}}{{Both|{{{award3_type|}}}|{{{award3_winner|}}}}}|Highlights}}
| header28   = {{#if:{{Both|{{{award1_type|}}}|{{{award1_winner|}}}}}{{Both|{{{award2_type|}}}|{{{award2_winner|}}}}}{{Both|{{{award3_type|}}}|{{{award3_winner|}}}}}|Highlights}}


| label51     = Most awards
| label29     = Most awards
| data51     = {{{most_awards|{{{most_wins|}}}}}}
| data29     = {{{most_awards|{{{most_wins|}}}}}}


| label52     = Most nominations
| label30     = Most nominations
| data52     = {{{most_nominations|}}}
| data30     = {{{most_nominations|}}}


| label53     = Total
| label31     = Total
| data53     = {{{total_awarded|}}}
| data31     = {{{total_awarded|}}}


| label54     = Total awarded posthumously
| label32     = Total awarded posthumously
| data54     = {{{total_awarded_posthumously|}}}
| data32     = {{{total_awarded_posthumously|}}}


| label55     = Total recipients
| label33     = Total recipients
| data55     = {{{total_recipients|}}}
| data33     = {{{total_recipients|}}}


| label56     = {{{award1_type}}}
| label34     = {{{award1_type}}}
| data56     = {{#if:{{{award1_type|}}}|{{{award1_winner|}}}}}
| data34     = {{#if:{{{award1_type|}}}|{{{award1_winner|}}}}}


| label57     = {{{award2_type}}}
| label35     = {{{award2_type}}}
| data57     = {{#if:{{{award2_type|}}}|{{{award2_winner|}}}}}
| data35     = {{#if:{{{award2_type|}}}|{{{award2_winner|}}}}}


| label58     = {{{award3_type}}}
| label36     = {{{award3_type}}}
| data58     = {{#if:{{{award3_type|}}}|{{{award3_winner|}}}}}
| data36     = {{#if:{{{award3_type|}}}|{{{award3_winner|}}}}}


| label59     = {{{award4_type}}}
| label37     = {{{award4_type}}}
| data59     = {{#if:{{{award4_type|}}}|{{{award4_winner|}}}}}
| data37     = {{#if:{{{award4_type|}}}|{{{award4_winner|}}}}}


| label60     = {{{award5_type}}}
| label38     = {{{award5_type}}}
| data60     = {{#if:{{{award5_type|}}}|{{{award5_winner|}}}}}
| data38     = {{#if:{{{award5_type|}}}|{{{award5_winner|}}}}}


| label61     = Website
| label39     = Website
| data61     = {{#invoke:WikidataIB |getValue |P856 |name=website |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced={{{onlysourced|no}}} |noicon={{{noicon|}}} | {{{website|{{{url|}}}}}} }}
| data39     = {{#invoke:WikidataIB |getValue |P856 |name=website |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced={{{onlysourced|no}}} |noicon={{{noicon|}}} | {{{website|{{{url|}}}}}} }}


<!-- Film / television block -->
<!-- Film / television block -->
| header70   = {{#if:{{{network|}}}{{{network_list|}}}{{{runtime|}}}{{{ratings|}}}{{{producer|}}}{{{director|}}}|Television/radio coverage}}
| header40   = {{#if:{{{network|}}}{{{network_list|}}}{{{runtime|}}}{{{ratings|}}}{{{producer|}}}{{{director|}}}|Television/radio coverage}}


| label71     = {{#if:{{{network_list|}}}|Networks|Network}}
| label41     = {{#if:{{{network_list|}}}|Networks|Network}}
| data71     = {{#if:{{{network_list|}}}|<nowiki />|{{{network|}}}}}
| data41     = {{#if:{{{network_list|}}}|<nowiki />|{{{network|}}}}}


| data72     = {{#if:{{{network_list|}}}|<div style="text-align: left; padding-left: 0.5em">
| data42     = {{#if:{{{network_list|}}}|<div style="text-align: left; padding-left: 0.5em">
{{{network_list}}}</div>}}
{{{network_list}}}</div>}}


| label74     = Runtime
| label43     = Runtime
| data74     = {{{runtime|}}}
| data43     = {{{runtime|}}}


| label75     = Viewership
| label44     = Viewership
| data75     = {{{viewership|{{{ratings|}}}}}}
| data44     = {{{viewership|{{{ratings|}}}}}}


| label76     = Produced by
| label45     = Produced by
| data76     = {{{producer|}}}
| data45     = {{{producer|}}}


| label77     = Directed by
| label46     = Directed by
| data77     = {{{director|}}}
| data46     = {{{director|}}}
<!-- End Film / television block -->
<!-- End Film / television block -->


| header80   = {{#if:{{{image2|}}}|{{Infobox
| header47   = {{#if:{{{image2|}}}|{{Infobox
  | child = yes | decat = yes
  | child = yes | decat = yes


Line 160: Line 175:
  }}}}
  }}}}


| header90 = {{#if:{{{higher|}}}{{{same|}}}{{{lower|}}}{{{individual|}}}|{{#if:{{{precedence_label|}}}|{{{precedence_label}}}|Precedence}}}}
| header48 = {{#if:{{{higher|}}}{{{same|}}}{{{lower|}}}{{{individual|}}}|{{#if:{{{precedence_label|}}}|{{{precedence_label}}}|Precedence}}}}


| label91 = Next&nbsp;(higher)
| label49 = Next&nbsp;(higher)
| data91 =  {{{higher|}}}
| data49 =  {{{higher|}}}


| label92 = Equivalent
| label50 = Equivalent
| data92 =  {{{same|}}}
| data50 =  {{{same|}}}


| label93 = Individual<br />equivalent
| label51 = Individual<br />equivalent
| data93 =  {{{individual|}}}
| data51 =  {{{individual|}}}


| label94 = Next&nbsp;(lower)
| label52 = Next&nbsp;(lower)
| data94 =  {{{lower|}}}
| data52 =  {{{lower|}}}


| label95 = Related
| label53 = Related
| data95 =  {{{related|}}}
| data53 =  {{{related|}}}


| below      =  
| below      = {{#if:{{{previous|}}}{{{main|}}}{{{next|}}}|{{flatlist}}
{{#if:{{{previous|}}}|* &larr;&nbsp;{{{previous}}}}}
{{#if:{{{previous|}}}|* &larr;&nbsp;{{{previous}}}}}
{{#if:{{{main|}}}|* {{{main}}}}}
{{#if:{{{main|}}}|* {{{main}}}}}
{{#if:{{{next|}}}|* {{{next}}}&nbsp;&rarr;}}
{{#if:{{{next|}}}|* {{{next}}}&nbsp;&rarr;}}
| belowclass  = hlist noprint nowraplinks
{{endflatlist}}}}
| belowclass  = noprint nowrap
| belowstyle = border-top: 1px solid #000; padding-top: 5px; font-weight: bold;  
| belowstyle = border-top: 1px solid #000; padding-top: 5px; font-weight: bold;  
| decat = {{#if:{{{previous|}}}{{{main|}}}{{{next|}}}|yes|no}}
| decat = {{#if:{{{previous|}}}{{{main|}}}{{{next|}}}|yes|no}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox award with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox award]] with unknown parameter "_VALUE_"|ignoreblank=y| acts | alt | alt2 | award1_type | award1_winner | award2_type | award2_winner | award3_type | award3_winner | award4_type | award4_winner | award5_type | award5_winner | awardname | caption | caption2 | country | current_awards | date | description | director | fetchwikidata | firstawarded | former name | higher | holder | holder_label | host | hosts | image | image caption | image size | image_caption | image_size | image_upright | image_upright2 | image2 | image2_size | imagesize | individual | lastawarded | location | lower | main | most_awards | most_nominations | most_wins | name | network | network_list | next | noicon | onlysourced | precedence_label | presenter | preshow_host | previous | producer | qid | ratings | related | reward | runtime | same | site | sponsor | subheader | suppressfields | url | venue | viewership | website | winner | winners | year | year2 | type | eligibility | campaign | status | description | motto | clasps | post-nominals | established | total_awarded | total_awarded_posthumously | total_recipients }}<noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox award with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox award]] with unknown parameter "_VALUE_"|ignoreblank=y| acts | alt | alt2 | award1_type | award1_winner | award2_type | award2_winner | award3_type | award3_winner | award4_type | award4_winner | award5_type | award5_winner | awardname | caption | caption2 | country | current_awards | date | description | director | fetchwikidata | firstawarded | former name | higher | holder | holder_label | host | hosts | image | image caption | image size | image_caption | image_size | image_upright | image_upright2 | image2 | image2_size | imagesize | individual | lastawarded | location | lower | main | most_awards | most_nominations | most_wins | name | network | network_list | next | noicon | onlysourced | precedence_label | presenter | preshow_host | previous | producer | qid | ratings | related | reward | runtime | same | site | sponsor | subheader | suppressfields | url | venue | viewership | website | winner | winners | year | year2 | type | eligibility | campaign | status | description | motto | clasps | post-nominals | established | total_awarded | total_awarded_posthumously | total_recipients | awarded_for }}<noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Latest revision as of 15:55, 7 April 2022

Infobox award