Difference between revisions of "Template:Infobox identifier"

From blackwiki
Jump to navigation Jump to search
imported>Grapesoda22
imported>Jay D. Easy
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| title   = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
+
|child      = {{lc:{{{child|{{{embed}}}}}}}}
 +
|title     = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
  
| image   = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1.1|border={{{image_border|yes}}}|alt={{{image_alt}}} }}
+
|image     = {{#invoke:InfoboxImage|InfoboxImage|sizedefault=frameless
| caption = {{{image_caption|}}}
+
  |image     = {{{image|}}}
 +
  |size       = {{{image_size|}}}
 +
  |upright    = {{{image_upright|{{{upright|0.9}}}}}}
 +
  |border     = {{{image_border|yes}}}
 +
  |alt       = {{{image_alt}}}<!--end InfoboxImage-->}}
 +
|caption   = {{{image_caption|}}}
  
| labelstyle = width:6.5em;
+
|labelstyle = width:6.5em;
| label1   = Subject
+
|label1     = Subject
| data1   = {{{subject|}}}
+
| data1     = {{{subject|}}}
  
| label2   = Full name
+
|label2     = Full&nbsp;name
| data2   = {{{full_name|}}}
+
| data2     = {{{full_name|}}}
  
| label3   = Acronym
+
|label3     = {{#if:{{{initialism|}}}|Initialism|Acronym}}
| data3    = {{#if:{{{acronym|}}} | {{abbr|{{{acronym}}}|{{{name|{{PAGENAME}} }}} }} | }}
+
| data3    = {{{initialism|{{{acronym|}}}}}}
  
| label4   = {{abbr|No.|Number}} issued
+
|label4     = Introduced
| data4   = {{{number|}}}
+
| data4     = {{{start_date|}}}
  
| label5   = Introduced
+
|label5     = {{#if:{{{organization|}}}|Organization|Organisation}}
| data5   = {{{start_date|}}}
+
| data5     = {{{organization|{{{organisation|}}}}}}
  
| label6   = Managing organisation
+
|label6     = {{abbr|No.|Number}} issued
| data6   = {{{organisation|}}}
+
| data6     = {{{number|}}}
  
| label7   = {{abbr|No.|Number}} of digits
+
|label7     = {{abbr|No.|Number}}&nbsp;of&nbsp;digits
| data7   = {{{digits|}}}
+
| data7     = {{{digits|}}}
  
| label8   = [[Check digit]]
+
|label8     = [[Check digit]]
| data8   = {{{check_digit|}}}
+
| data8     = {{{check_digit|}}}
  
| label9   = Example
+
|label9     = Example
| data9   = {{{example|}}}
+
| data9     = {{{example|}}}
  
| label10   = Website
+
|label10   = Website
| data10    = {{{website|}}}
+
| data10    = {{{website|}}}
  
}}<noinclude>{{Documentation}}</noinclude>
+
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 19:53, 23 July 2019

[[Category:Infobox templates|Template:Remove first word]]

50px Template documentation[view] [edit] [history] [purge]

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
Introduced
  1. REDIRECT Template:Start date and age
OrganisationORCID, Inc.
No. issued6,236,148
No. of digits16
Check digitMOD 11-2
ExampleTemplate:URL
WebsiteTemplate:URL
[[Category:Infobox templates|Template:Remove first word]]
{{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
Introduced1970 (1970)
OrganisationInternational ISBN Agency
No. of digits13 (formerly 10)
Check digitWeighted sum
Example978-3-16-148410-0
WebsiteTemplate:URL
[[Category:Infobox templates|Template:Remove first word]]
{{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}}
}}