Difference between revisions of "Template:LFG player"
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 == | ||
| − | : < | + | |
| − | + | === External link === | |
| − | : < | + | ; ID without name (uses Wikipedia article name as link text) |
| − | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | |
| − | : < | + | : {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> }} |
| − | + | ||
| − | : < | + | ; 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 == | ||
| − | : < | + | |
| − | + | === As external link === | |
| − | : | + | ; URLs |
| − | + | : <kbd>[http://lebanonfg.com/player/27/ https://www.falebanon.com/player/{{Hilite|27}}/]</kbd> | |
| − | : < | + | |
| − | + | ; ID without name (uses Wikipedia article name as link text) | |
| − | : | + | : {{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:LFG player displays an external link or citation for an association football (soccer) player's statistics at LebanonFG.com.
Contents
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
- ID without name (uses Wikipedia article name as link text)
- Template:Tlcw
- Template:PAGENAMEBASE at Lebanon Football Guide
- Template:Tlcw
- Template:PAGENAMEBASE at Lebanon Football Guide
- ID with name
- Template:Tlcw
- Hassan Maatouk at Lebanon Football Guide
- Template:Tlcw
- Hassan Maatouk at Lebanon Football Guide
As citation with access-date
- 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
TemplateData for LFG player
This template displays an external link or citation for an association football (soccer) player's statistics at LebanonFG.com.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | 1 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. | Number | required |
| Player Name | 2 name | Name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |
| Access Date | access-date | Date that the URL was accessed. If specified, the output is formatted as a web citation. | Date | optional |
| Citation | citation | If a value is given, the output is formatted as a web citation. Useful when a citation is needed without an access date. | String | optional |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |