Difference between revisions of "Template:NSFLDraft-row/doc"

From Sim Football Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
  
 
=== Usage ===
 
=== Usage ===
This template is part of a collection (see "See also") that is used to list players selected in the [[NFL Draft]].
+
This template is part of a collection (see "See also") that is used to list players selected in the [[NSFL Draft]].
  
 
{| class="wikitable" style="width:100%; margin:0px;"
 
{| class="wikitable" style="width:100%; margin:0px;"
 
|-
 
|-
| colspan="2" style="font-family:monospace;"  | {{[[Template:NFLDraft-row|NFLDraft-row]]
+
| colspan="2" style="font-family:monospace;"  | {{[[Template:NSFLDraft-row|NSFLDraft-row]]
 
|-
 
|-
 
| style="font-family:monospace;" width ="180pt" | | draftyear = || the year in which the draft took place (used to link selecting team to the team's season page) [optional]
 
| style="font-family:monospace;" width ="180pt" | | draftyear = || the year in which the draft took place (used to link selecting team to the team's season page) [optional]
Line 37: Line 37:
 
| colspan="2" | '''Special parameters:'''
 
| colspan="2" | '''Special parameters:'''
 
|-
 
|-
| style="font-family:monospace;"  | | numberofrounds= || ''optional'' - controls the color-coding of the first cell in the row; colors transition from red to violet (in [[ROYGBIV]] order) for the given number of rounds; if this parameter is not included, the default is 7 (seven) rounds
+
| style="font-family:monospace;"  | | numberofrounds= || ''optional'' - controls the color-coding of the first cell in the row; colors transition from red to violet (in [[wp:ROYGBIV|ROYGBIV]] order) for the given number of rounds; if this parameter is not included, the default is 7 (seven) rounds
 
|-
 
|-
 
| style="font-family:monospace;"  | | firstpickinround= || value should be "yes" for the first selection in each round (this parameter creates the anchor for the "Jump to:" functionality and the thick border visually separating the rounds in the table)
 
| style="font-family:monospace;"  | | firstpickinround= || value should be "yes" for the first selection in each round (this parameter creates the anchor for the "Jump to:" functionality and the thick border visually separating the rounds in the table)
 
|-
 
|-
| style="font-family:monospace;"  | | compensatory= || value of "yes" denotes a [[NFL Draft#Compensatory picks|compensatory selection]]
+
| style="font-family:monospace;"  | | compensatory= || value of "yes" denotes a [[NSFL Draft#Compensatory picks|compensatory selection]]
 
|-
 
|-
| style="font-family:monospace;"  | | supplemental= || value of "yes" denotes a [[NFL Draft#Compensatory picks|supplemental compensatory selection]]
+
| style="font-family:monospace;"  | | supplemental= || value of "yes" denotes a [[NSFL Draft#Compensatory picks|supplemental compensatory selection]]
 
|-
 
|-
 
| style="font-family:monospace;"  | | expansion= || value of "yes" denotes an extra pick in a non-expansion draft granted to an expansion team (as last occurred in [[2002 NFL Draft|2002]] and [[2003 NFL Draft|2003]] for the [[Houston Texans]])
 
| style="font-family:monospace;"  | | expansion= || value of "yes" denotes an extra pick in a non-expansion draft granted to an expansion team (as last occurred in [[2002 NFL Draft|2002]] and [[2003 NFL Draft|2003]] for the [[Houston Texans]])
Line 51: Line 51:
 
| style="font-family:monospace;"  | | undrafted= || value of "yes" denotes the player was undrafted.  This suppresses the first two columns (Round and Pick #).  Should be used only with the similar param in the [[Template:NFLDraft-header|header template]].
 
| style="font-family:monospace;"  | | undrafted= || value of "yes" denotes the player was undrafted.  This suppresses the first two columns (Round and Pick #).  Should be used only with the similar param in the [[Template:NFLDraft-header|header template]].
 
|-
 
|-
| style="font-family:monospace;"  | | probowl= || value of "yes" indicates the player has made at least one [[Pro Bowl]]
+
| style="font-family:monospace;"  | | probowl= || value of "yes" indicates the player has made at least one [[NSFL Pro Bowl]]
 
|-
 
|-
| style="font-family:monospace;"  | | hof= || value of "yes" indicates the player is a member of the [[Pro Football Hall of Fame]]
+
| style="font-family:monospace;"  | | hof= || value of "yes" indicates the player is a member of the [[NSFL Hall of Fame]]
 
|-
 
|-
 
| style="font-family:monospace;"  | | playerpageexists= || value of "no" can be used to suppress a red wiki-link for a player for whom no WP article has been written.
 
| style="font-family:monospace;"  | | playerpageexists= || value of "no" can be used to suppress a red wiki-link for a player for whom no WP article has been written.
Line 59: Line 59:
 
| style="font-family:monospace;"  | | cfb page exists= || value of "yes" indicates the page named "''collegeyear collegeteam'' football team" exists.  This prevents the use of {{tl|cfb link}} which is an processor-intensive template.
 
| style="font-family:monospace;"  | | cfb page exists= || value of "yes" indicates the page named "''collegeyear collegeteam'' football team" exists.  This prevents the use of {{tl|cfb link}} which is an processor-intensive template.
 
|-
 
|-
| style="font-family:monospace;"  | | teamdab= || Used in cases where the NFL team name requires disambiguation. (e.g. [[1936 Pittsburgh Pirates (NFL) season]]. In this case, the "team" parameter should be "Pittsburgh Pirates" and "teamdab" should be "Pittsburgh Pirates (NFL)")
+
| style="font-family:monospace;"  | | teamdab= || Used in cases where the NSFL team name requires disambiguation. (e.g. [[1936 Pittsburgh Pirates (NSFL) season]]. In this case, the "team" parameter should be "Pittsburgh Pirates" and "teamdab" should be "Pittsburgh Pirates (NSFL)")
 
|-
 
|-
 
|<nowiki>}}</nowiki>
 
|<nowiki>}}</nowiki>
Line 68: Line 68:
 
Copy-and-paste this into your article and fill in the blanks.
 
Copy-and-paste this into your article and fill in the blanks.
  
<nowiki>{{NFLDraft-row| draftyear= | round= | picknum= | firstpickinround= | compensatory= | supplemental= | lastpick=  | team= | first= | last= | position= | dsfl= | collegeyear= | college= | collegeteam= | collegelink= | cfb page exists= | note= | probowl= |hof= }}</nowiki>
+
<nowiki>{{NSFLDraft-row| draftyear= | round= | picknum= | firstpickinround= | compensatory= | supplemental= | lastpick=  | team= | first= | last= | position= | dsfl= | collegeyear= | college= | collegeteam= | collegelink= | cfb page exists= | note= | probowl= |hof= }}</nowiki>
  
 
;Example:
 
;Example:
 
this code:<br/>
 
this code:<br/>
 
<nowiki>
 
<nowiki>
   {{NFLDraft-header}}</nowiki><br/><nowiki>
+
   {{NSFLDraft-header}}</nowiki><br/><nowiki>
   {{NFLDraft-row| round=1 | picknum=1 | firstpickinround=yes | team=Detroit Lions | first=Matthew | last=Stafford | position=Quarterback | dsfl=Coyotes | collegeyear=2008 | college=University of Georgia | collegeteam=Georgia Bulldogs | collegelink=Georgia }}</nowiki><br/><nowiki>
+
   {{NSFLDraft-row| round=1 | picknum=1 | firstpickinround=yes | team=Detroit Lions | first=Matthew | last=Stafford | position=Quarterback | dsfl=Coyotes | collegeyear=2008 | college=University of Georgia | collegeteam=Georgia Bulldogs | collegelink=Georgia }}</nowiki><br/><nowiki>
   {{NFLDraft-footer}}</nowiki>
+
   {{NSFLDraft-footer}}</nowiki>
  
 
creates the following table:
 
creates the following table:
{{NFLDraft-header}}
+
{{NSFLDraft-header}}
{{NFLDraft-row| round=1 | picknum=1 | firstpickinround=yes | team=Detroit Lions | first=Matthew | last=Stafford | position=Quarterback | dsfl=Coyotes | collegeyear=2008 | college=University of Georgia | collegeteam=Georgia Bulldogs | collegelink=Georgia |cfb page exists=yes}}
+
{{NSFLDraft-row| round=1 | picknum=1 | firstpickinround=yes | team=Detroit Lions | first=Matthew | last=Stafford | position=Quarterback | dsfl=Coyotes | collegeyear=2008 | college=University of Georgia | collegeteam=Georgia Bulldogs | collegelink=Georgia |cfb page exists=yes}}
{{NFLDraft-footer}}
+
{{NSFLDraft-footer}}
  
 
===Other templates used===
 
===Other templates used===
Line 89: Line 89:
  
 
=== See also ===
 
=== See also ===
*{{tl|NFLDraft-header}}
+
*{{tl|NSFLDraft-header}}
*{{tl|NFLDraft-footer}}
+
*{{tl|NSFLDraft-footer}}
  
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:National Football League templates]]
+
[[Category:National Simulation Football League templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 05:16, 28 August 2019

Usage

This template is part of a collection (see "See also") that is used to list players selected in the NSFL Draft.

{{NSFLDraft-row
| draftyear = the year in which the draft took place (used to link selecting team to the team's season page) [optional]
| round= the draft round in which the player was selected
| picknum= the overall number of the selection (not the number within the round)
| team= the pro team which made the selection (not wikilinked)
| first= first name of the player selected
| last= last name of the player selected
| dab= name of the player article (if not just "First Last") [optional]
| position= football position of the player
| collegeyear= final year of player's college career (generally one year previous to the year of the draft, e.g. for the 2010 draft, college year should be 2009 in most cases)
| college= the college or university last attended by the player – should match the title of the school's WP article (e.g. "Syracuse University" or "Georgia Institute of Technology")
| collegeteam= the player's college team name (e.g. "Syracuse Orange" or "Georgia Tech Yellow Jackets")
| collegelink= the abbreviated name of the school which will be displayed in the table (e.g. "Syracuse" or "Georgia Tech")
| note= space for any additional information about the pick – generally used to identify any trades of the selection [optional]
Special parameters:
| numberofrounds= optional - controls the color-coding of the first cell in the row; colors transition from red to violet (in ROYGBIV order) for the given number of rounds; if this parameter is not included, the default is 7 (seven) rounds
| firstpickinround= value should be "yes" for the first selection in each round (this parameter creates the anchor for the "Jump to:" functionality and the thick border visually separating the rounds in the table)
| compensatory= value of "yes" denotes a compensatory selection
| supplemental= value of "yes" denotes a supplemental compensatory selection
| expansion= value of "yes" denotes an extra pick in a non-expansion draft granted to an expansion team (as last occurred in 2002 and 2003 for the Houston Texans)
| lastpick= value of "yes" denotes the final pick in the draft (not in the round); adds the "Mr. Irrelevant" link to the selection number
| undrafted= value of "yes" denotes the player was undrafted. This suppresses the first two columns (Round and Pick #). Should be used only with the similar param in the header template.
| probowl= value of "yes" indicates the player has made at least one NSFL Pro Bowl
| hof= value of "yes" indicates the player is a member of the NSFL Hall of Fame
| playerpageexists= value of "no" can be used to suppress a red wiki-link for a player for whom no WP article has been written.
| cfb page exists= value of "yes" indicates the page named "collegeyear collegeteam football team" exists. This prevents the use of {{cfb link}} which is an processor-intensive template.
| teamdab= Used in cases where the NSFL team name requires disambiguation. (e.g. 1936 Pittsburgh Pirates (NSFL) season. In this case, the "team" parameter should be "Pittsburgh Pirates" and "teamdab" should be "Pittsburgh Pirates (NSFL)")
}}


Fill-in-the-Blank template

Copy-and-paste this into your article and fill in the blanks.

{{NSFLDraft-row| draftyear= | round= | picknum= | firstpickinround= | compensatory= | supplemental= | lastpick= | team= | first= | last= | position= | dsfl= | collegeyear= | college= | collegeteam= | collegelink= | cfb page exists= | note= | probowl= |hof= }}

Example

this code:
{{NSFLDraft-header}}
{{NSFLDraft-row| round=1 | picknum=1 | firstpickinround=yes | team=Detroit Lions | first=Matthew | last=Stafford | position=Quarterback | dsfl=Coyotes | collegeyear=2008 | college=University of Georgia | collegeteam=Georgia Bulldogs | collegelink=Georgia }}
{{NSFLDraft-footer}}

creates the following table:

Rnd. Pick # Team Player Pos. DSFL College Conf. Notes
1 1 Detroit Lions Matthew Stafford  QB Coyotes Georgia SEC

Other templates used

This template relies on three "helper" templates:

  • {{Cfb link}} – uses collegeyear, collegeteam and college parameters to display the most specific possible link in the "College" column
  • {{AmFootball positions}} – uses position parameter to display an appropriate abbreviated link in the "Pos." column
  • {{Cfb conf}} – uses collegeyear and college parameters to display the correct link in the "Conf." column

See also