Difference between revisions of "Template:ACM Portal/doc"

From blackwiki
Jump to navigation Jump to search
m (15 revisions imported)
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
+
<!-- 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}}
  
This template generates an external link to a page at the [[ACM Portal]] website.
+
'''{{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 ==
One parameter:
+
Unnamed parameters:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}
  
Two parameters:
+
Named parameters:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
  
== Template data ==
+
Using [[Wikidata]] property {{wpl|P864}}:
{{TemplateDataHeader}}
+
: {{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 generates an external link to a page at the ACM Portal website.",
+
         "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": {
"1": {
+
"id": {
"label": "ID",
+
"label": "id",
"aliases": [ "id" ],
+
"aliases": [ "1" ],
"description": "ID number used in the URL.",
+
"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": true
+
"default": "Wikidata property P864",
 +
"required": false
 
},
 
},
"2": {
+
"name": {
"label": "Name",
+
"label": "name",
"aliases": [ "name", "title" ],
+
"aliases": [ "2", "title" ],
"description": "Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.",
+
"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>
 
== Examples ==
 
The following examples show a link to the page for [[Andrew S. Tanenbaum]]:
 
: <code><nowiki>http://</nowiki>dl.acm.org/author_page.cfm?id={{hilite|81100515854}}</code>
 
 
=== One parameter ===
 
Usage:
 
: <code>{{((}}{{BASEPAGENAME}} {{!}} 81100515854 {{))}}</code>
 
: <code>{{((}}{{BASEPAGENAME}} {{!}} id= 81100515854 {{))}}</code>
 
Results:
 
: {{{{BASEPAGENAME}} | 81100515854 }}
 
: {{{{BASEPAGENAME}} | id= 81100515854 }}
 
 
=== Two parameters ===
 
Usage:
 
: <code>{{((}}{{BASEPAGENAME}} {{!}} 81100515854 {{!}} Andrew S. Tanenbaum {{))}}</code>
 
: <code>{{((}}{{BASEPAGENAME}} {{!}} id= 81100515854 {{!}} name= Andrew S. Tanenbaum {{))}}</code>
 
Results:
 
: {{{{BASEPAGENAME}} | 81100515854 | Andrew S. Tanenbaum }}
 
: {{{{BASEPAGENAME}} | id= 81100515854 | name= Andrew S. Tanenbaum }}
 
  
 
== See also ==
 
== See also ==
* {{Tl|AcademicSearch}}
+
* {{tl|Authority control}} which includes [[ACM Digital Library|ACM DL]] link
* {{Tl|MacTutor}}
+
* {{tl|AcademicSearch}}
 +
* {{tl|DBLP}}
 +
* {{tl|MacTutor}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
+
<!-- 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:Computer science templates]]
+
[[Category:External link templates using Wikidata]]
[[Category:Templates using data from Wikidata]]
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 08:39, 15 October 2020

Template:Uses Wikidata

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.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Wpl:

Template:Tlcw
Template:Tlcw

Examples

One parameter

Usage in the article Frances E. Allen, with article name as link text:

Template:Tlcw
Template:Tlcw

Output:

  • Frances E. Allen author profile page at the ACM Digital LibraryScript error: No such module "EditAtWikidata".

URL:

https://dl.acm.org/author_page.cfm?id=81100651807

Two parameters

Usage with name parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

  • Andrew S. Tanenbaum author profile page at the ACM Digital LibraryScript error: No such module "EditAtWikidata".

URL:

https://dl.acm.org/author_page.cfm?id=81100515854

ID in Wikidata

Usage in the article Gunther Schmidt:

Template:Tlcw
Template:Tlcw

Output:

URL:

https://dl.acm.org/author_page.cfm?id=81100588616

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

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 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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P864
Numberoptional
namename 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.

Default
{{PAGENAMEBASE}}
Stringoptional

See also