Difference between revisions of "Template:LFG player"

From blackwiki
Jump to navigation Jump to search
imported>Nehme1499
imported>Nehme1499
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if: {{{access-date|}}} | {{cite web |url=http://lebanonfg.com/player/{{Trim|{{{1|{{{id}}}}}}}}/ |title={{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }} |website=Lebanon Football Guide |access-date={{{access-date|}}} }} | [http://lebanonfg.com/player/{{Trim|{{{1|{{{id}}}}}}}}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at Lebanon Football Guide }}<noinclude>
+
{{#if: {{{access-date|{{{accessdate|{{{citation|}}}}}}}}} | {{cite web |url=http://lebanonfg.com/player/{{Trim|{{{1|{{{id|{{{pid}}}}}}}}}}}/ |title={{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }} |website=Lebanon Football Guide |access-date={{{access-date|{{{accessdate|}}}}}} }} | [http://lebanonfg.com/player/{{Trim|{{{1|{{{id|{{{pid}}}}}}}}}}}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at Lebanon Football Guide }}<noinclude>
 
{{documentation|content=
 
{{documentation|content=
 
<div style="font-size: 110%;">{{Template shortcut|LFG|Lebanon FG|LebanonFG|Lebanon Football Guide}}</div>
 
<div style="font-size: 110%;">{{Template shortcut|LFG|Lebanon FG|LebanonFG|Lebanon Football Guide}}</div>
Line 88: Line 88:
 
     "access-date": {
 
     "access-date": {
 
       "label": "Access Date",
 
       "label": "Access Date",
 +
      "aliases": ["accessdate"],
 
       "description": "Date that the URL was accessed. If specified, the output is formatted as a web citation.",
 
       "description": "Date that the URL was accessed. If specified, the output is formatted as a web citation.",
 
       "type": "date",
 
       "type": "date",

Latest revision as of 14:52, 22 February 2021

{{{name}}} at Lebanon Football Guide

Template documentation

Template:LFG player displays an external link or citation for an association football (soccer) player's statistics at LebanonFG.com.

Usage

External link

ID without name (uses Wikipedia article name as link text)
Template:Tlcw
Template:Tlcw
ID with name
Template:Tlcw
Template:Tlcw

Citation with access-date

ID without name (uses Wikipedia article name as link text)
Template:Tlcw
Template:Tlcw
ID with name
Template:Tlcw
Template:Tlcw

Examples

As external link

URLs
https://www.falebanon.com/player/27/
ID without name (uses Wikipedia article name as link text)
Template:Tlcw
Template:Tlcw
ID with name
Template:Tlcw
Template:Tlcw

As citation with access-date

URLs
https://www.falebanon.com/player/27/
ID without name (uses Wikipedia article name as link text)
Template:Tlcw
"[[:Template:PAGENAMEBASE]]". Lebanon Football Guide. Retrieved 17 August 2014. URL–wikilink conflict (help)
Template:Tlcw
"[[:Template:PAGENAMEBASE]]". Lebanon Football Guide. Retrieved 17 August 2014. URL–wikilink conflict (help)
ID with name
Template:Tlcw
"Hassan Maatouk". Lebanon Football Guide. Retrieved 2014-08-17.
Template:Tlcw
"Hassan Maatouk". Lebanon Football Guide. Retrieved 2014-08-17.
Citation without date
Template:Tlcw
"Hassan Maatouk". Lebanon Football Guide.
Template:Tlcw
"Hassan Maatouk". Lebanon Football Guide.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for LFG player

This template displays an external link or citation for an association football (soccer) player's statistics at LebanonFG.com.

Template parameters

ParameterDescriptionTypeStatus
Player ID1 id pid

ID portion of the URL for player's profile at LebanonFG.com. Example: 27 is the ID portion of http://lebanonfg.com/player/27/. This parameter is required.

Numberrequired
Player Name2 name

Name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".

Default
{{PAGENAMEBASE}}
Stringoptional
Access Dateaccess-date accessdate

Date that the URL was accessed. If specified, the output is formatted as a web citation.

Dateoptional
Citationcitation

If a value is given, the output is formatted as a web citation. Useful when a citation is needed without an access date.

Stringoptional