模板:Infobox identifier:修订间差异

来自决策链云智库
(创建页面,内容为“{{Documentation subpage}} {{Lua|Module:Infobox|Module:InfoboxImage}} == Usage == Infobox for identifiers (ISBN, ORCID, etc.) === Blank === <syntaxhighlight lang="wikitext"> {{Infobox identifier | name =Jacoba Jacqueline Hartnick | image = | image_size = | image_caption = | image_alt = | image_border = | full_name = | acronym = | number = | start_date = <!-- {{Start date|YYYY|MM|DD|df=y}} --> | or…”)
 
无编辑摘要
 
第1行: 第1行:
{{Documentation subpage}}
{{Infobox
{{Lua|Module:Infobox|Module:InfoboxImage}}
|child      = {{lc:{{{child|{{{embed}}}}}}}}
|title      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}


== Usage ==
|image      = {{#invoke:InfoboxImage|InfoboxImage|sizedefault=frameless
  |image      = {{{image|}}}
  |size      = {{{image_size|}}}
  |upright    = {{{image_upright|{{{upright|0.9}}}}}}
  |border    = {{{image_border|yes}}}
  |alt        = {{{image_alt}}}<!--end InfoboxImage-->}}
|caption    = {{{image_caption|}}}


Infobox for identifiers ([[ISBN]], [[ORCID]], etc.)
|labelstyle = width:6.5em;
|label1    = Subject
| data1    = {{{subject|}}}


=== Blank ===
|label2    = Full&nbsp;name
| data2    = {{{full_name|}}}


<syntaxhighlight lang="wikitext">
  |label3     = {{#if:{{{initialism|}}}|Initialism|Acronym}}
{{Infobox identifier
  | data3    = {{{initialism|{{{acronym|}}}}}}
| name          =Jacoba Jacqueline Hartnick
| 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}} -->
}}
</syntaxhighlight>


== Parameters ==
|label4    = [[ISO 15511|Identifier]]
{{columns-start|num=2}}
| data4    = {{{identifier|}}}
; child {{nobold|or}} embed: set to {{code|yes}} to embed
; name: defaults to {{tlx|PAGENAMEBASE}}
; image: e.g. {{code|identifier_logo.svg}}
; image_size {{nobold|(deprecated)}}: size in px
; image_upright: defaults to {{code|0.9}}
; image_border: defaults to {{code|no}}
; image_alt: see [[WP:ALT]]
; image_caption: caption
; subject: e.g. people, books
{{column}}
; full_name: if {{para|name}} uses acronym or initialism
; acronym {{nobold|or}} initialism: if {{para|name}} uses full name
; organisation {{nobold|or}} organization: managing organisation
; start_date: use {{tlx|start date}} or {{tlx|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 {{tlx|URL}}
{{columns-end}}


== Example ==
|label5    = {{#if:{{{organization|}}}|Organization|Organisation}}
| data5    = {{{organization|{{{organisation|}}}}}}


=== Name is acronym ===
  |label6    = Introduced
{{Infobox identifier
  | data6    = {{{start_date|}}}
|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}}
}}<syntaxhighlight lang="wikitext">
{{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}}
}}</syntaxhighlight>{{-}}


=== Name is full ===
  |label7    = {{abbr|No.|Number}} issued
{{Infobox identifier
  | data7    = {{{number|}}}
  |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}}
}}<syntaxhighlight lang="wikitext">
{{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}}
}}</syntaxhighlight>{{-}}


<includeonly>{{Sandbox other||
|label8    = {{abbr|No.|Number}}&nbsp;of&nbsp;digits
| data8    = {{{digits|}}}


[[Category:Computing infobox templates]]
|label9    = [[Check digit]]
[[Category:Embeddable templates]]
| data9    = {{{check_digit|}}}
}}</includeonly>
 
|label10    = Example
| data10    = {{{example|}}}
 
|label11    = Website
| data11    = {{{website|}}}
 
}}<noinclude>
{{documentation}}
</noinclude>

2024年1月18日 (四) 13:43的最新版本