Difference between revisions of "Template:Infobox identifier/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jay D. Easy
imported>Vanisaac
m (→‎Name is full: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{Lua|Module:Infobox|Module:InfoboxImage}}
  
 
== Usage ==
 
== Usage ==
Line 28: Line 29:
  
 
== Parameters ==
 
== Parameters ==
 
+
{{columns-start|num=2}}
; name : Defaults to PAGENAMEBASE
+
; child {{nobold|or}} embed: set to {{code|yes}} to embed
; image : Logo or other image
+
; name: defaults to {{tlx|PAGENAMEBASE}}
; image_caption : Caption
+
; image: e.g. {{code|identifier_logo.svg}}
; image_size : If required
+
; image_size {{nobold|(deprecated)}}: size in px
; image_alt : see [[WP:ALT]]
+
; image_upright: defaults to {{code|0.9}}
; image_border : Default {{code|yes}}, but can be {{code|no}} to prevent showing border around image
+
; image_border: defaults to {{code|no}}
; subject : What does the identifier identify? e.g. people, books.
+
; image_alt: see [[WP:ALT]]
; full_name : If {{Para|name}} uses acronym
+
; image_caption: caption
; acronym : If {{Para|name}} uses full name
+
; subject: e.g. people, books
; number : Number issued - should be cited in body of article
+
{{column}}
; start_date : Use {{Tl|Start date}}
+
; full_name: if {{para|name}} uses acronym or initialism
; organisation : Managing organisation
+
; acronym {{nobold|or}} initialism: if {{para|name}} uses full name
; digits : Number of digits (or "Variable")
+
; organisation {{nobold|or}} organization: managing organisation
; check_digit : Type of [[Check digit]], if used
+
; start_date: use {{tlx|start date}} or {{tlx|start date and age}}
; example : An example
+
; number: number issued – should be cited in body of article
; website : Use {{tl|URL}}
+
; digits: number of digits
 +
; check_digit: [[check digit]], if used
 +
; example: an example
 +
; website: use {{tlx|URL}}
 +
{{columns-end}}
  
 
== Example ==
 
== Example ==
Line 53: Line 58:
 
  |image        = ORCID logo with tagline.svg
 
  |image        = ORCID logo with tagline.svg
 
  |image_border = no
 
  |image_border = no
  |full_name    = Open Researcher {{nowr|and Contributor ID}}
+
|upright      = 1.1
|number      = > 1,500,000
+
  |full_name    = Open Researcher and Contributor ID
|start_date  = {{start date|2012|10|16|df=y}}
 
 
  |organisation = ORCID, Inc.
 
  |organisation = ORCID, Inc.
 +
|start_date  = {{date and age|2012|10|16|df=y}}
 +
|number      = 6,236,148
 
  |digits      = 16
 
  |digits      = 16
 
  |check_digit  = MOD 11-2
 
  |check_digit  = MOD 11-2
 
  |example      = {{URL|http://orcid.org/0000-0001-5882-6823|0000-0001-5882-6823}}
 
  |example      = {{URL|http://orcid.org/0000-0001-5882-6823|0000-0001-5882-6823}}
 
  |website      = {{URL|orcid.org}}
 
  |website      = {{URL|orcid.org}}
}}
+
}}<pre>
 
 
<pre>
 
 
{{Infobox identifier
 
{{Infobox identifier
 
  |name        = ORCID
 
  |name        = ORCID
 
  |image        = ORCID logo with tagline.svg
 
  |image        = ORCID logo with tagline.svg
 
  |image_border = no
 
  |image_border = no
  |full_name    = Open Researcher {{nowr|and Contributor ID}}
+
|upright      = 1.1
|number      = > 1,500,000
+
  |full_name    = Open Researcher and Contributor ID
|start_date  = {{start date|2012|10|16|df=y}}
 
 
  |organisation = ORCID, Inc.
 
  |organisation = ORCID, Inc.
 +
|start_date  = {{date and age|2012|10|16|df=y}}
 +
|number      = 6,236,148
 
  |digits      = 16
 
  |digits      = 16
 
  |check_digit  = MOD 11-2
 
  |check_digit  = MOD 11-2
 
  |example      = {{URL|http://orcid.org/0000-0001-5882-6823|0000-0001-5882-6823}}
 
  |example      = {{URL|http://orcid.org/0000-0001-5882-6823|0000-0001-5882-6823}}
 
  |website      = {{URL|orcid.org}}
 
  |website      = {{URL|orcid.org}}
}}</pre>
+
}}</pre>{{-}}
  
 
=== Name is full ===
 
=== Name is full ===
 
{{Infobox identifier
 
{{Infobox identifier
  |name          = ISBN
+
  |name          = International {{nowr|Standard Book Number}}
 
  |image        = EAN-13-ISBN-13.svg
 
  |image        = EAN-13-ISBN-13.svg
 
  |image_border  = no
 
  |image_border  = no
  |image_caption = 13-digit ISBN, as represented by [[EAN-13]]
+
  |image_caption = Example [[EAN-13|13-digit]] ISBN
  |full_name    = International Standard {{nowr|Book Number}}
+
  |initialism    = ISBN
  |acronym      = ISBN
+
  |organisation  = International ISBN Agency
 
  |start_date    = {{start date|1970}}
 
  |start_date    = {{start date|1970}}
|organisation  = International ISBN Agency
 
 
  |digits        = 13 (formerly 10)
 
  |digits        = 13 (formerly 10)
 
  |check_digit  = Weighted sum
 
  |check_digit  = Weighted sum
 
  |example      = {{ISBN|978-3-16-148410-0|plainlink=y}}
 
  |example      = {{ISBN|978-3-16-148410-0|plainlink=y}}
 
  |website      = {{URL|isbn-international.org}}
 
  |website      = {{URL|isbn-international.org}}
}}
+
}}<pre>
 
 
<pre>
 
 
{{Infobox identifier
 
{{Infobox identifier
  |name          = ISBN
+
  |name          = International {{nowr|Standard Book Number}}
 
  |image        = EAN-13-ISBN-13.svg
 
  |image        = EAN-13-ISBN-13.svg
 
  |image_border  = no
 
  |image_border  = no
  |image_caption = 13-digit ISBN, as represented by [[EAN-13]]
+
  |image_caption = Example [[EAN-13|13-digit]] ISBN
  |full_name    = International Standard {{nowr|Book Number}}
+
  |initialism    = ISBN
  |acronym      = ISBN
+
  |organisation  = International ISBN Agency
 
  |start_date    = {{start date|1970}}
 
  |start_date    = {{start date|1970}}
|organisation  = International ISBN Agency
 
 
  |digits        = 13 (formerly 10)
 
  |digits        = 13 (formerly 10)
 
  |check_digit  = Weighted sum
 
  |check_digit  = Weighted sum
Line 110: Line 111:
 
}}</pre>{{-}}
 
}}</pre>{{-}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
 
 
[[Category:Computing infobox templates]]
 
[[Category:Computing infobox templates]]
 +
[[Category:Embeddable templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 19:42, 25 April 2020

Usage

Infobox for identifiers (ISBN, ORCID, etc.)

Blank

{{Infobox identifier
| name          = 
| image         = 
| image_size    = 
| image_caption = 
| image_alt     = 
| image_border  = 
| full_name     = 
| acronym       = 
| number        = 
| start_date    = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| organisation  = 
| digits        = 
| check_digit   = 
| example       = 
| website       = <!-- {{URL|example.org}} -->
}}

Parameters

child or embed
set to yes to embed
name
defaults to {{PAGENAMEBASE}}
image
e.g. identifier_logo.svg
image_size (deprecated)
size in px
image_upright
defaults to 0.9
image_border
defaults to no
image_alt
see WP:ALT
image_caption
caption
subject
e.g. people, books
full_name
if |name= uses acronym or initialism
acronym or initialism
if |name= uses full name
organisation or organization
managing organisation
start_date
use {{start date}} or {{start date and age}}
number
number issued – should be cited in body of article
digits
number of digits
check_digit
check digit, if used
example
an example
website
use {{URL}}

Example

Name is acronym

ORCID
{{{image_alt}}}
Full nameOpen Researcher and Contributor ID
OrganisationORCID, Inc.
Introduced
  1. REDIRECT Template:Start date and age
No. issued6,236,148
No. of digits16
Check digitMOD 11-2
ExampleTemplate:URL
WebsiteTemplate:URL
{{Infobox identifier
 |name         = ORCID
 |image        = ORCID logo with tagline.svg
 |image_border = no
 |upright      = 1.1
 |full_name    = Open Researcher and Contributor ID
 |organisation = ORCID, Inc.
 |start_date   = {{date and age|2012|10|16|df=y}}
 |number       = 6,236,148
 |digits       = 16
 |check_digit  = MOD 11-2
 |example      = {{URL|http://orcid.org/0000-0001-5882-6823|0000-0001-5882-6823}}
 |website      = {{URL|orcid.org}}
}}

Name is full

International Template:Nowr
{{{image_alt}}}
Example 13-digit ISBN
InitialismISBN
OrganisationInternational ISBN Agency
Introduced1970 (1970)
No. of digits13 (formerly 10)
Check digitWeighted sum
Example978-3-16-148410-0
WebsiteTemplate:URL
{{Infobox identifier
 |name          = International {{nowr|Standard Book Number}}
 |image         = EAN-13-ISBN-13.svg
 |image_border  = no
 |image_caption = Example [[EAN-13|13-digit]] ISBN
 |initialism    = ISBN
 |organisation  = International ISBN Agency
 |start_date    = {{start date|1970}}
 |digits        = 13 (formerly 10)
 |check_digit   = Weighted sum
 |example       = {{ISBN|978-3-16-148410-0|plainlink=y}}
 |website       = {{URL|isbn-international.org}}
}}