Difference between revisions of "Template:ACM Portal/doc"
m (15 revisions imported) |
|||
| (9 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
{{Uses Wikidata|P864}} | {{Uses Wikidata|P864}} | ||
| + | {{Lua|Module:EditAtWikidata}} | ||
| − | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [https://dl.acm.org/author_page.cfm?id=81100515854&srt=publicationDate&role=all&dsp=authorpageinfo&CFID=735922914&CFTOKEN=59766553 author profile page] at the [[Association for Computing Machinery]] (ACM) [[Association for Computing Machinery#Digital Library|Digital Library]] website ([http://dl.acm.org/ dl.acm.org]). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | |
== Usage == | == Usage == | ||
| − | + | Unnamed parameters: | |
| − | : | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} |
| − | : | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} |
| − | + | Named parameters: | |
| − | : | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} |
| − | : | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} |
| − | == | + | Using [[Wikidata]] property {{wpl|P864}}: |
| − | {{ | + | : {{tlcw|{{BASEPAGENAME}} }} |
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | ===One parameter=== | ||
| + | ''Usage in the article [[Frances E. Allen]], with article name as [[link text]]:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | 81100651807 }} | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 81100651807 }} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | 81100651807 | Frances E. Allen }} | ||
| + | |||
| + | ''URL:'' | ||
| + | : <kbd>[https://dl.acm.org/author_page.cfm?id=81100651807 https://dl.acm.org/author_page.cfm?id={{hilite|81100651807}}]</kbd> | ||
| + | |||
| + | ===Two parameters=== | ||
| + | ''Usage with name parameter as link text:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | 81100515854 | Andrew S. Tanenbaum }} | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 81100515854 | name{{=}} Andrew S. Tanenbaum }} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | 81100515854 | Andrew S. Tanenbaum }} | ||
| + | |||
| + | ''URL:'' | ||
| + | : <kbd>[https://dl.acm.org/author_page.cfm?id=81100515854 https://dl.acm.org/author_page.cfm?id={{hilite|81100515854}}]</kbd> | ||
| + | |||
| + | === ID in Wikidata === | ||
| + | ''Usage in the article [[Gunther Schmidt]]:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} }} | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | name{{=}} Gunther Schmidt }} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | 81100588616 | Gunther Schmidt }} [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q18752214#P864 |Edit this at Wikidata]] | ||
| + | |||
| + | ''URL:'' | ||
| + | : <kbd>[https://dl.acm.org/author_page.cfm?id=81100588616 https://dl.acm.org/author_page.cfm?id={{hilite|81100588616}}]</kbd> | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ''Usage:'' | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | |||
| + | ''Output:'' | ||
| + | : {{ {{BASEPAGENAME}} }} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "description": "This template | + | "description": "This template displays an external link to an author profile page at the Association for Computing Machinery (ACM) Digital Library website (dl.acm.org). It is intended for use in the external links section of an article.", |
"params": { | "params": { | ||
| − | " | + | "id": { |
| − | "label": " | + | "label": "id", |
| − | "aliases": [ " | + | "aliases": [ "1" ], |
| − | "description": "ID | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 81100651807 is the ID portion of https://dl.acm.org/author_page.cfm?id=81100651807. This parameter is optional if Wikidata property P864 exists, but required if not.", |
"type": "number", | "type": "number", | ||
| − | "required": | + | "default": "Wikidata property P864", |
| + | "required": false | ||
}, | }, | ||
| − | " | + | "name": { |
| − | "label": " | + | "label": "name", |
| − | "aliases": [ " | + | "aliases": [ "2", "title" ], |
| − | "description": " | + | "description": "The \"name\" parameter (or \"title\" or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the subject of the link. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.", |
"type": "string", | "type": "string", | ||
| + | "default": "{{PAGENAMEBASE}}", | ||
"required": false | "required": false | ||
} | } | ||
| − | } | + | }, |
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name" | ||
| + | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== See also == | == See also == | ||
| − | * {{ | + | * {{tl|Authority control}} which includes [[ACM Digital Library|ACM DL]] link |
| − | * {{ | + | * {{tl|AcademicSearch}} |
| + | * {{tl|DBLP}} | ||
| + | * {{tl|MacTutor}} | ||
| − | <includeonly>{{ | + | <includeonly>{{sandbox other|| |
| − | <!-- Categories below this line | + | <!-- Categories below this line; interwikis at Wikidata --> |
| + | [[Category:Computer science templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| − | [[Category: | + | [[Category:External link templates using Wikidata]] |
| − | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 08:39, 15 October 2020
| 40px | This is a documentation subpage for Template:ACM Portal. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Template:ACM Portal displays an external link to an author profile page at the Association for Computing Machinery (ACM) Digital Library website (dl.acm.org). It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Wpl:
Examples
One parameter
Usage in the article Frances E. Allen, with article name as link text:
Output:
- Frances E. Allen author profile page at the ACM Digital LibraryScript error: No such module "EditAtWikidata".
URL:
Two parameters
Usage with name parameter as link text:
Output:
- Andrew S. Tanenbaum author profile page at the ACM Digital LibraryScript error: No such module "EditAtWikidata".
URL:
ID in Wikidata
Usage in the article Gunther Schmidt:
Output:
- Gunther Schmidt author profile page at the ACM Digital LibraryScript error: No such module "EditAtWikidata". Edit this at Wikidata
URL:
No parameters and Wikidata property not defined
Usage:
{{ACM Portal}}
Output:
- Template:PAGENAMEBASE author profile page at the ACM Digital LibraryScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for ACM Portal
This template displays an external link to an author profile page at the Association for Computing Machinery (ACM) Digital Library website (dl.acm.org). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 81100651807 is the ID portion of https://dl.acm.org/author_page.cfm?id=81100651807. This parameter is optional if Wikidata property P864 exists, but required if not.
| Number | optional |
| name | name 2 title | The "name" parameter (or "title" or unnamed parameter "2") may be used to specify the link text, which should be the name of the subject of the link. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.
| String | optional |
See also
- {{Authority control}} which includes ACM DL link
- {{AcademicSearch}}
- {{DBLP}}
- {{MacTutor}}