Difference between revisions of "Template:LFG player"

From blackwiki
Jump to navigation Jump to search
imported>Nehme1499
imported>Nehme1499
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|}}} | {{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>
 
{{documentation|content=
 
{{documentation|content=
 +
<div style="font-size: 110%;">{{Template shortcut|LFG|Lebanon FG|LebanonFG|Lebanon Football Guide}}</div>
 +
 +
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] or [[Wikipedia:Citing sources|citation]] for an [[association football]] (soccer) player's statistics at [http://lebanonfg.com/ LebanonFG.com].
 +
 
== Usage ==
 
== Usage ==
: <code><nowiki>{{LFG player|ID|NAME}}</nowiki></code>
+
 
or
+
=== External link ===
: <code><nowiki>{{LFG player|id=ID|name=NAME}}</nowiki></code>
+
; ID without name (uses Wikipedia article name as link text)
or
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }}
: <code><nowiki>{{LFG player|ID}}</nowiki></code>
+
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> }}
or
+
 
: <code><nowiki>{{LFG player|id=ID}}</nowiki></code>
+
; ID with name
 +
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }}
 +
 
 +
=== Citation with access-date ===
 +
; ID without name (uses Wikipedia article name as link text)
 +
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | access-date {{=}} <var>DATE</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | access-date {{=}} <var>DATE</var> }}
 +
 
 +
; ID with name
 +
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | access-date {{=}} <var>DATE</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }}
 +
 
 
== Examples ==
 
== Examples ==
: <code><nowiki>{{LFG player|27|Hassan Maatouk}}</nowiki></code>
+
 
or
+
=== As external link ===
: <code><nowiki>{{LFG player|id=27|name=Hassan Maatouk}}</nowiki></code>
+
; URLs
or
+
: <kbd>[http://lebanonfg.com/player/27/ https://www.falebanon.com/player/{{Hilite|27}}/]</kbd>
: <code><nowiki>{{LFG player|27}}</nowiki></code>
+
 
or
+
; ID without name (uses Wikipedia article name as link text)
: <code><nowiki>{{LFG player|id=27}}</nowiki></code>
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 27 }}
 +
:* {{{{BASEPAGENAME}} | 27 }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id {{=}} 27 }}
 +
:* {{{{BASEPAGENAME}} | id = 27 }}
 +
 
 +
; ID with name
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | 27 | Hassan Maatouk }}
 +
:* {{{{BASEPAGENAME}} | 27 | Hassan Maatouk }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id {{=}} 27 | name {{=}} Hassan Maatouk }}
 +
:* {{{{BASEPAGENAME}} | id = 27 | name = Hassan Maatouk }}
 +
 
 +
=== As citation with access-date ===
 +
; URLs
 +
: <kbd>[https://www.falebanon.com/player/27/ https://www.falebanon.com/player/{{Hilite|27}}/]</kbd>
 +
 
 +
; ID without name (uses Wikipedia article name as link text)
 +
: {{tlcw|{{BASEPAGENAME}} | 27 | access-date {{=}} 17 August 2014 }}
 +
: {{{{BASEPAGENAME}} | 27 | access-date = 17 August 2014 }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} 27 | access-date {{=}} 17 August 2014 }}
 +
: {{{{BASEPAGENAME}} | id = 27 | access-date = 17 August 2014 }}
 +
 
 +
; ID with name
 +
: {{tlcw|{{BASEPAGENAME}} | 27 | Hassan Maatouk | access-date {{=}} 2014-08-17 }}
 +
: {{{{BASEPAGENAME}} | 27 | Hassan Maatouk | access-date = 2014-08-17 }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} 27 | name {{=}} Hassan Maatouk | access-date {{=}} 2014-08-17 }}
 +
: {{{{BASEPAGENAME}} | id = 27 | name = Hassan Maatouk | access-date = 2014-08-17 }}
 +
 
 +
; Citation without date
 +
: {{tlcw|{{BASEPAGENAME}} | 27 | Hassan Maatouk | citation {{=}} yes }}
 +
: {{{{BASEPAGENAME}} | 27 | Hassan Maatouk | citation = yes }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} 27 | name {{=}} Hassan Maatouk | citation {{=}} yes }}
 +
: {{{{BASEPAGENAME}} | id = 27 | name = Hassan Maatouk | citation = yes }}
 +
 
 +
== TemplateData ==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
  "description": "This template displays an external link or citation for an association football (soccer) player's statistics at LebanonFG.com.",
 +
  "params": {
 +
    "1": {
 +
      "label": "Player ID",
 +
      "aliases": ["id","pid"],
 +
      "description": "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.",
 +
      "type": "number",
 +
      "required": true
 +
    },
 +
    "2": {
 +
      "label": "Player Name",
 +
      "aliases": ["name"],
 +
      "description": "Name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(footballer)\" or \"(soccer)\".",
 +
      "type": "string",
 +
      "required": false,
 +
      "default": "{{PAGENAMEBASE}}"
 +
    },
 +
    "access-date": {
 +
      "label": "Access Date",
 +
      "description": "Date that the URL was accessed. If specified, the output is formatted as a web citation.",
 +
      "type": "date",
 +
      "required": false
 +
    },
 +
    "citation": {
 +
      "label": "Citation",
 +
      "description": "If a value is given, the output is formatted as a web citation. Useful when a citation is needed without an access date.",
 +
      "type": "string",
 +
      "required": false
 +
    }
 +
  },
 +
  "paramOrder": [
 +
    "1",
 +
    "2",
 +
    "access-date",
 +
    "citation"
 +
  ]
 +
}
 +
</templatedata>
 
[[Category:Association football external link templates]]
 
[[Category:Association football external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 +
[[Category:External link templates with accessdate parameter]]
 +
[[Category:Templates that wrap Cite web]]
 
}}</noinclude>
 
}}</noinclude>

Revision as of 00:11, 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 at Lebanon Football Guide
Template:Tlcw
Hassan Maatouk at 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

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