Difference between revisions of "Template:Infobox bandy biography/doc"

m (note Lua module used)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 19:37, 2 August 2019

{{#ifeq:infobox bandy biography/doc |doc

    | 

{{#ifeq:show |show

         | Lua error: Internal error: The interpreter exited with status 127.
        }}{{#if: |
         |   {{#ifexist:Template:Infobox bandy biography/doc
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127.{{#switch:Infobox bandy biography/doc |sandbox |testcases |doc= |#default={{#ifeq:Infobox bandy biography/doc |Uses Wikidata ||{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Module
   | module
   | other
   }}
 }}

| module = | other | #default = {{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = | other | #default = }} }} }} }} Lua error: Internal error: The interpreter exited with status 127.{{#switch:Infobox bandy biography/doc

 |sandbox |testcases |doc= 
 |#default = {{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template =

| other | #default = {{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Module
   | module
   | other
   }}
 }}

| module =

| other | #default = Template:Category other

}}

}}

 }}

This is an infobox for articles about bandy players.

Usage

Lua error: Internal error: The interpreter exited with status 127.

{{Infobox bandy biography
| name = 
| image = 
| image_size = 
| alt = 
| caption = 
| header-color = 
| full_name = 
| birth_date = 
| birth_place = 
| death_date = 
| death_place = 
| height = 
| height_m = 
| height_cm = 
| height_ft = 
| height_in = 
| position = 
<!--Club information-->
| currentclub = 
| clubnumber = 
<!--Youth career-->
| youthyears1 = | youthclubs1 = 
| youthyears2 = | youthclubs2 = 
| youthyears3 = | youthclubs3 = 
| youthyears4 = | youthclubs4 = 
| youthyears5 = | youthclubs5 = 
| youthyears6 = | youthclubs6 = 
| youthyears7 = | youthclubs7 = 
| youthyears8 = | youthclubs8 = 
<!--Senior career-->
| years1 =  | clubs1 =  | caps1 =  | goals1 = 
| years2 =  | clubs2 =  | caps2 =  | goals2 = 
| years3 =  | clubs3 =  | caps3 =  | goals3 = 
| years4 =  | clubs4 =  | caps4 =  | goals4 = 
| years5 =  | clubs5 =  | caps5 =  | goals5 = 
| years6 =  | clubs6 =  | caps6 =  | goals6 = 
| years7 =  | clubs7 =  | caps7 =  | goals7 = 
| years8 =  | clubs8 =  | caps8 =  | goals8 = 
| years9 =  | clubs9 =  | caps9 =  | goals9 = 
| years10 = | clubs10 = | caps10 = | goals10 = 
| years11 = | clubs11 = | caps11 = | goals11 = 
| years12 = | clubs12 = | caps12 = | goals12 = 
| years13 = | clubs13 = | caps13 = | goals13 = 
| years14 = | clubs14 = | caps14 = | goals14 = 
| years15 = | clubs15 = | caps15 = | goals15 = 
| years16 = | clubs16 = | caps16 = | goals16 = 
| years17 = | clubs17 = | caps17 = | goals17 = 
| years18 = | clubs18 = | caps18 = | goals18 = 
| years19 = | clubs19 = | caps19 = | goals19 = 
| years20 = | clubs20 = | caps20 = | goals20 = 
| years21 = | clubs21 = | caps21 = | goals21 = 
| years22 = | clubs22 = | caps22 = | goals22 = 
| years23 = | clubs23 = | caps23 = | goals23 = 
| years24 = | clubs24 = | caps24 = | goals24 = 
| years25 = | clubs25 = | caps25 = | goals25 = 
| years26 = | clubs26 = | caps26 = | goals26 = 
| years27 = | clubs27 = | caps27 = | goals27 = 
| years28 = | clubs28 = | caps28 = | goals28 = 
| years29 = | clubs29 = | caps29 = | goals29 = 
| years30 = | clubs30 = | caps30 = | goals30 = 
| years31 = | clubs31 = | caps31 = | goals31 = 
| years32 = | clubs32 = | caps32 = | goals32 = 
| years33 = | clubs33 = | caps33 = | goals33 = 
| years34 = | clubs34 = | caps34 = | goals34 = 
| years35 = | clubs35 = | caps35 = | goals35 = 
| years36 = | clubs36 = | caps36 = | goals36 = 
| years37 = | clubs37 = | caps37 = | goals37 = 
| years38 = | clubs38 = | caps38 = | goals3 = 
| years39 = | clubs39 = | caps39 = | goals39 = 
| totalyears = | totalcaps = | totalgoals = 
<!-- National team -->
| nationalyears1 = | nationalteam1 = | nationalcaps1 = | nationalgoals1 = 
| nationalyears2 = | nationalteam2 = | nationalcaps2 = | nationalgoals2 = 
| nationalyears3 = | nationalteam3 = | nationalcaps3 = | nationalgoals3 = 
| nationalyears4 = | nationalteam4 = | nationalcaps4 = | nationalgoals4 = 
| nationalyears5 = | nationalteam5 = | nationalcaps5 = | nationalgoals5 = 
| nationalyears6 = | nationalteam6 = | nationalcaps6 = | nationalgoals6 = 
| nationalyears7 = | nationalteam7 = | nationalcaps7 = | nationalgoals7 = 
| nationalyears8 = | nationalteam8 = | nationalcaps8 = | nationalgoals8 = 
| nationalyears9 = | nationalteam9 = | nationalcaps9 = | nationalgoals9 = 
<!--Teams managed-->
| manageryears1 =  | managerclubs1 = 
| manageryears2 =  | managerclubs2 = 
| manageryears3 =  | managerclubs3 = 
| manageryears4 =  | managerclubs4 = 
| manageryears5 =  | managerclubs5 = 
| manageryears6 =  | managerclubs6 = 
| manageryears7 =  | managerclubs7 = 
| manageryears8 =  | managerclubs8 = 
| manageryears9 =  | managerclubs9 = 
| manageryears10 = | managerclubs10 = 
| manageryears11 = | managerclubs11 = 
| manageryears12 = | managerclubs12 = 
| manageryears13 = | managerclubs13 = 
| manageryears14 = | managerclubs14 = 
| manageryears15 = | managerclubs15 = 
| manageryears16 = | managerclubs16 = 
| manageryears17 = | managerclubs17 = 
| manageryears18 = | managerclubs18 = 
| manageryears19 = | managerclubs19 = 
| manageryears20 = | managerclubs20 = 
| manageryears21 = | managerclubs21 = 
| manageryears22 = | managerclubs22 = 
| manageryears23 = | managerclubs23 = 
| manageryears24 = | managerclubs24 = 
| manageryears25 = | managerclubs25 = 
| manageryears26 = | managerclubs26 = 
| manageryears27 = | managerclubs27 = 
| manageryears28 = | managerclubs28 = 
| manageryears29 = | managerclubs29 = 
| manageryears30 = | managerclubs30 = 
| manageryears31 = | managerclubs31 = 
| manageryears32 = | managerclubs32 = 
| manageryears33 = | managerclubs33 = 
| manageryears34 = | managerclubs34 = 
| manageryears35 = | managerclubs35 = 
| manageryears36 = | managerclubs36 = 
| manageryears37 = | managerclubs37 = 
| manageryears38 = | managerclubs38 = 
| manageryears39 = | managerclubs39 = 
| manageryears40 = | managerclubs40 = 
<!--Medal/embedded templates -->
| medals = 
| medals-title = 
| medals-expand = 
| module = 
<!--Dates updated-->
| club-update         = 
| nationalteam-update = 
}}
  • When filling in the update parameters, use {{subst:Date}} or {{subst:Date|2=mdy}}.

Use as a child template

The embed parameter is used when embedding this infobox into another.

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{Infobox bandy biography | {{#if:embed | embed=yes | child=yes <!-- or embed=yes or subbox=yes -->}}
  | parameter-1 = 
  | parameter-2 = 
  | parameter-3 = 
  | parameter-4 = 
  | <!-- etc. -->
  }}
}}

Embedding other templates

The module parameter is used for embedding other templates into this infobox.

{{Infobox bandy biography
| name = 
| <!-- etc. -->
| module =
  {{Infobox ABC
  | embed = yes <!-- or child=yes / subbox=yes -->
  | <!-- etc. -->
  }}
}}

Example

Template:Infobox bandy biography

{{Infobox bandy biography
| name           = Andreas Bergwall
| image          = Sandvikens AIK vs Västerås SK 2015-03-14 01.jpg
| caption        = Bergwall in 2015
| birth_date     = {{birth date and age|1974|6|10|df=yes}}
| birth_place    =
| height         =
| position       = [[Goalkeeper]]
| currentclub    = [[Västerås SK Bandy|Västerås SK]]
| clubnumber     = 13
| youthyears1    =
| youthclubs1    = [[Lesjöfors IF]]
| years1         =
| clubs1         = [[Lesjöfors IF]]
| years2         = 1996–1998
| clubs2         = [[IFK Kungälv]]
| years3         = 1998–2004
| clubs3         = [[Västerås SK Bandy|Västerås SK]]
| years4         = 2004–2005
| clubs4         = [[Vetlanda BK]]
| years5         = 2005–2007
| clubs5         = [[Hammarby IF Bandy|Hammarby IF]]
| years6         = 2007–2010
| clubs6         = [[Dynamo Kazan Bandy Club|Dynamo Kazan]]{{efn|2007–2008 as [[Raketa]].}}
| years7         = 2010–2011
| clubs7         = [[Tillberga IK]]
| years8         = 2011–2012
| clubs8         = [[Dynamo Kazan Bandy Club|Dynamo Kazan]]
| years9         = 2012–2013
| clubs9         = [[Hammarby IF Bandy|Hammarby IF]]
| years10        = 2013–
| clubs10        = [[Västerås SK Bandy|Västerås SK]]
| nationalyears1 = 1996–
| nationalteam1  = [[Sweden national bandy team|Sweden]]
| nationalcaps1  = 174
}}
1 }}
     | Template:Column-width
     | {{#switch:|1=|2=Template:Column-width|#default=Template:Column-width}} }}
   | {{#if: 
     | Template:Column-width }} }} list-style-type: {{#switch: {{#switch: 
   | note
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = 
   | #default = lower-alpha
  }}
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{#switch: 
   | note
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = 
   | #default = lower-alpha
  }}
   | #default = decimal}};">

<references group="{{#switch:

   | note
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = 
   | #default = lower-alpha
}}" responsive="{{#if:|0|1}}"></references>
Lua error: Internal error: The interpreter exited with status 127.

Tracking categories

  • [[:Category:{{#ifeq:Pages usi|Category:|Template:Str right|Pages using infobox bandy biography with unknown parameters}}|{{#if:|{{{name}}}|Category:{{#ifeq:Pages usi|Category:|Template:Str right|Pages using infobox bandy biography with unknown parameters}}}}]] (0)
  • [[:Category:{{#ifeq:Pages usi|Category:|Template:Str right|Pages using deprecated image syntax}}|{{#if:|{{{name}}}|Category:{{#ifeq:Pages usi|Category:|Template:Str right|Pages using deprecated image syntax}}}}]] (0) – Used by Module:InfoboxImage to track articles where an infobox uses image syntax in the format |image=[[File:Example.jpg]]. To exclude articles from this category, change it to |image=Example.jpg.
  • [[:Category:{{#ifeq:No local |Category:|Template:Str right|No local image but image on Wikidata}}|{{#if:|{{{name}}}|Category:{{#ifeq:No local |Category:|Template:Str right|No local image but image on Wikidata}}}}]] (0) – Used by Template:Wikidata image to track articles where an infobox has no image but Wikidata has an image name. To exclude articles from this category, add an image or |{{SAFESUBST:#if:nocat_wdimage|nocat_wdimage=}}yes to the infobox.