Template:Infobox UFFL player: Difference between revisions

From UFFL Wiki
No edit summary
(Mediawiki update, WIP. Still a lot of broken variables, but formatting is loosely correct)
Line 1: Line 1:
{{#ifeq:{{ RID | {{PAGENAME}} }} | No ID assigned || {{#vardefine:plyr|{{RID|{{PAGENAME}}}} }} }}
{{#ifeq:{{ RID | {{PAGENAME}} }} | No ID assigned || {{#vardefine:plyr|{{RID|{{PAGENAME}}}} }} }}{{ infobox
{| style="font-size:89%; line-height:16px; background-color:{{Infobox UFFL player/style|{{{team}}}}} !important; color:{{Infobox UFFL player/style|{{{team}}}}};"
| bodyclass = vcard
| bodystyle = width:25em


|-
<!--- style="font-size:89%; line-height:16px; background-color:{{Infobox UFFL player/style|{{{team}}}}} !important; color:{{Infobox UFFL player/style|{{{team}}}}};" --->
! colspan="2" style="font-size:110%; padding:1em; text-align:center; {{Infobox UFFL player/style|{{{team}}}}};" | {{{title|<span style="font-size: 20px; font-weight: bold; text-align:center; {{Infobox UFFL player/style|{{{team}}}}} !important;">{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}</span> <br /> <span style="font-size: 12px; font-weight: bold; text-align:center;" {{Infobox UFFL player/style|{{{team}}}}} !important;>({{{team}}}, {{{position}}})</span>}}}


|-
| titleclass = fn summary
 
| title = <span style="font-size: 20px; font-weight: bold; text-align:center;">{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}</span> <br /> <span style="font-size: 12px; font-weight: bold; text-align:center;"> {{Infobox UFFL player/style|{{{team}}}}} !important;>({{{team}}}, {{{position}}})</span><br />
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|alt={{{alt|}}}|suppressplaceholder=yes}}
| imagecaption = {{{imagecaption|}}}
 
<!---
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|225}}}px|{{{imagecaption|}}}]]
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|225}}}px|{{{imagecaption|}}}]]
| }}
| }}


|-
|  
{{#if: {{{imagecaption|}}} |
{{#if: {{{imagecaption|}}} |
{{!}} class="infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
{{!}} class="infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
| }}
| }}--->
 
| headerstyle = {{Infobox UFFL player/style|{{Convert/teamabbr|{{{team}}}}}}}
 
| label2 = {{#if:{{{PID|}}}
|PID<!-- -->}}
| data2 = {{Convert/pos|{{PID|{{RID|{{PAGENAME}}}}|3}}}}[[Position::{{Convert/pos|{{PID|{{RID|{{PAGENAME}}}}|3}}}}| ]]
| class2 = role


|-
<!---
{{#if: {{{PID|}}} |
{{#if: {{{PID|}}} |
{{!}} colspan="2" {{!}} <div style="font-size: 12px; text-align: center"> Player ID: {{{PID}}} </div>}}
{{!}} colspan="2" {{!}} <div style="font-size: 12px; text-align: center"> Player ID: {{{PID}}} </div>}}
--->


|-
| header3 = {{#if: {{{nickname|}}}}}
! colspan="2" | <div class="infobox-section-header"></div>
| data4 = {{{nickname|}}}
 
|-
{{#if: {{{nickname|}}} |
! Nickname:
{{!}} {{{nickname}}}
| }}


|-
| label5 = Jersey #
{{#if: {{{jerseynum|}}} |
| data5 = {{#if: {{{jerseynum|}}}}}
! Jersey #:
{{!}} {{{jerseynum}}}
| }}


|-
| label6 = {{#if:{{{team|}}}
! Team
|Team<!--
| {{{team|''Unknown''}}}
              -->}}
| data6      = {{Convert/pos|{{PID|{{RID|{{PAGENAME}}}}|21}}}}[[Position::{{Convert/pos|{{PID|{{RID|{{PAGENAME}}}}|21}}}}| ]]
| class6      = role


|-
| label7 = Position
! Position
| data7 = {{Convert/pos|{{{career_position|}}}}}
| {{{position|''Unknown''}}}


|-
| label8      = Gender
! Gender
| data8      = {{{gender|}}}[[Gender::{{{gender|}}}| ]]
| {{{gender|''Unknown''}}}


|-
| label9      = Species
! Species
| data9      = {{PID|{{RID|{{PAGENAME}}}}|4}} [[Species::{{PID|{{RID|{{PAGENAME}}}}|4}}| ]]
| {{{species|''Unknown''}}}


|-
| header10 = {{#if:{{{birth_date|}}}{{{birth_place|}}}{{{hometown|}}}{{{handed|}}}{{{college|}}}{{{height_ft|}}}{{{height_m|}}}{{{weight_lbs|}}}{{{weight_kg|}}}|Details}}
! colspan="2" | <div class="infobox-section-header" style="text-align:center;">Details</div>


|-
| label11 = Born On
{{#if: {{{birth_date|}}}{{{birth_place|}}} |
| data11 = {{{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}}
! Born On
{{!}} {{{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}}
| }}


|-
| label12 = Height
! Height
| data12 = {{#if:{{{height_ft|}}}
| {{#if:{{{height_ft|}}}
     |{{convert|{{{height_ft|0|}}}|ft|{{#if:{{{height_in|}}}|{{{height_in}}}|0}}|in|2|abbr=on}}{{{height_footnote|}}}
     |{{convert|{{{height_ft|0|}}}|ft|{{#if:{{{height_in|}}}|{{{height_in}}}|0}}|in|2|abbr=on}}{{{height_footnote|}}}
     |{{#if:{{{height_m|}}}
     |{{#if:{{{height_m|}}}
Line 69: Line 69:
     }}
     }}


|-
| label13 = Weight
! Weight
| data13 = {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
| {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
     |{{convert|{{{weight_lbs|{{{weight_lb|}}}}}}|lb|kg|0|abbr=on}}{{{weight_footnote|}}}
     |{{convert|{{{weight_lbs|{{{weight_lb|}}}}}}|lb|kg|0|abbr=on}}{{{weight_footnote|}}}
     |{{#if:{{{weight_kg|}}}
     |{{#if:{{{weight_kg|}}}
Line 79: Line 78:
     }}
     }}


|-
| label14 = Throws
{{#if: {{{handed|}}} |
| data14 = {{{handed|}}}
! Throws
{{!}} {{{handed}}}
| }}
 
|-
{{#if: {{{hometown|}}} |
! Hometown
{{!}} {{{hometown}}}
| }}
 
|-
{{#if: {{{college|}}} |
! School
{{!}} {{{college}}}
| }}
 
|-
! colspan="2" | <div class="infobox-section-header" style="text-align:center;">Career Info</div>


|-
| label15 = Hometown
{{#if: {{{yearstart|}}} |
| data15 = {{{hometown|}}}
! Draft Year
{{!}} {{{yearstart}}}
| }}


|-
| label16 = College
{{#if: {{{draftpick|}}} |
| data16 = {{{college|}}}  
! Pick # / Draft Round
{{!}} {{{draftpick}}}
| }}


|-
| header17 = {{#if:{{{yearstart|}}}{{{draftpick|}}}{{{yeartotal|}}}|Career Info}}
{{#if: {{{yeartotal|}}} |
! Years Pro
{{!}} {{{yeartotal}}}
| }}


|- style="font-size:0; line-height:0;"
| label18 = [[Draftees|Draft]]
! style="width:50%; padding:0" |
| data18 = {{#if:{{{yearstart|{{{draft_year|}}}}}}|[[{{{yearstart|{{{draft_year}}}}}} UFFL Draft|{{{yearstart|{{{draft_year}}}}}}]] / {{#if:{{{draftround|{{{draft_round|}}}}}}|Round: {{{draftround|{{{draft_round}}}}}}|[[Undrafted players|Undrafted]]}} {{#if:{{{draftpick|{{{draft_pick|}}}}}}|/ Pick: {{#ifeq:{{{draftpick|{{{draft_pick}}}}}}|1|[[List of first overall UFFL draft picks|1st]]|{{Ordinal|{{{draftpick|{{{draft_pick}}}}}}}}}} overall|}}|}}
! style="width:50%; padding:0" |
| data19 = {{#if:{{both|{{{yearstart|{{{draft_year|}}}}}}|{{{draftteam|{{{draft_team|}}}}}}}}|Drafted by [[{{{{{Convert/teamabbr|{{{draftteam}}}}}|{{Convert/teamabbr|{{{draft_team}}}}} }}}]] }}


|}
| label20 = Years Pro
| data20 = {{#if:{{{debutyear|{{{career_start|}}}}}}|{{{debutyear|{{{career_start|}}}}}}–{{#if:{{{finalyear|{{{career_end|}}}}}}|{{{finalyear|{{{career_end}}}}}}|present}} }}


<noinclude>
}}<noinclude>
      
      
== Usage & preview ==
{{documentation}}
Type in this:
 
<pre>
{{Infobox UFFL player
|PID={{#vardefineecho:PlayerID|40}}
|team={{PID|{{#var:plyr}}|21}}
|name={{PID|{{#var:plyr}}|3}}
|bkg={{UFFL color cell|{{{team}}}|1}}
|position= {{PID|{{#var:PlayerID}}|19}}
|jerseynum = {{PID|{{#var:PlayerID}}|2}}
|species = {{PID|{{#var:PlayerID}}|4}}
|gender = Male
|image=Theisen_Edmond.jpg
|imagewidth=125
|imagecaption=Art by ~madworld
|nickname=Eddie
|handed = Right
|height = {{convert|{{#expr:{{PID|{{#var:PlayerID}}|7}}/12 round 2}}|ft|m}}
|weight = {{convert|{{PID|{{#var:PlayerID}}|8}}|lb|kg|abbr=on}}
|birth_date = {{Birth date and age|1990|10|11|mf=yes}}
|hometown = Walpole, NH, USA
|college = Edgerton College
|draftpick = Round 2 - #20
|yearstart = {{#expr:{{CurrentUFFLSeason}}+1-{{PID|{{#var:PlayerID}}|6}}}}
|yearend =
|yeartotal = {{PID|{{#var:PlayerID}}|6}}
|awards = {{PID|{{#var:PlayerID}}|24}}
}}
 
</pre>
 
to see this:
 
{{Infobox UFFL player
|PID={{#vardefineecho:PlayerID|40}}
|bkg = {{UFFL color cell|{{{team}}}|1}}
|jerseynum = {{PID|{{#var:PlayerID}}|2}}
|name = {{PID|{{#var:PlayerID}}|3}}
|species = {{PID|{{#var:PlayerID}}|4}}
|gender = Male
|image=Theisen_Edmond.jpg
|imagewidth= 125
|imagecaption=Art by ~madworld
|nickname=Eddie
|handed = Right
|height = {{convert|{{#expr:{{PID|{{#var:PlayerID}}|7}}/12 round 2}}|ft|m}}
|weight = {{convert|{{PID|{{#var:PlayerID}}|8}}|lb|kg|abbr=on}}
|birth_date = {{Birth date and age|1990|10|11|mf=yes}}
|hometown = Walpole, NH, USA
|college = Edgerton College
|draftpick = Round 2 - #20
|yearstart = {{#expr:{{CurrentUFFLSeason}}+1-{{PID|{{#var:PlayerID}}|6}}}}
|yearend =
|yeartotal = {{PID|{{#var:PlayerID}}|6}}
|awards = {{PID|{{#var:PlayerID}}|24}}
|team = {{PID|{{#var:PlayerID}}|21}}
|position = {{PID|{{#var:PlayerID}}|19}}
}}
 


[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>
</noinclude>

Revision as of 02:59, 20 January 2021


background-color:#FFFFFF;color:#000000; !important;>({{{team}}}, {{{position}}})
Gender
Species---
Template documentation[view] [edit] [history] [purge]

Type in this:

{{Infobox UFFL player
|PID={{#vardefineecho:PlayerID|40}}
|current_team={{PID|{{#var:plyr}}|21}}
|name={{PID|{{#var:plyr}}|3}}
|bkg={{UFFL color cell|{{{team}}}|1}}
|position= {{PID|{{#var:PlayerID}}|19}}
|jerseynum = {{PID|{{#var:PlayerID}}|2}}
|species = {{PID|{{#var:PlayerID}}|4}}
|gender = Male
|image=Theisen_Edmond.jpg
|imagewidth=125
|imagecaption=Art by ~madworld
|nickname=Eddie
|handed = Right
|height = {{convert|{{#expr:{{PID|{{#var:PlayerID}}|7}}/12 round 2}}|ft|m}}
|weight = {{convert|{{PID|{{#var:PlayerID}}|8}}|lb|kg|abbr=on}}
|birth_date = {{Birth date and age|1990|10|11|mf=yes}}
|hometown = Walpole, NH, USA
|college = Edgerton College
|draftpick = Round 2 - #20
|yearstart = {{#expr:{{CurrentUFFLSeason}}+1-{{PID|{{#var:PlayerID}}|6}}}}
|yearend = 
|yeartotal = {{PID|{{#var:PlayerID}}|6}}
|awards = {{PID|{{#var:PlayerID}}|24}}
}}

to see this:

Edmond Theisen
background-color:#FFFFFF;color:#000000; !important;>({{{team}}}, {{{position}}})
Theisen Edmond.jpg
PID
Eddie
PositionLinebacker
GenderMale
Species---
Details
Born On (1990-10-11) October 11, 1990 (age 34)
Height6.33 feet (1.93 m)
Weight275 lb (125 kg)
ThrowsRight
HometownWalpole, NH, USA
CollegeEdgerton College
Career Info
Draft2015 / Round: 2 / Pick: 20th overall
Drafted by Chicago Outlaws

Click here to refresh the preview above