Template:Infobox identifier/doc: Difference between revisions

Content deleted Content added
Susko3 (talk | contribs)
Document image_style
 
(27 intermediate revisions by 13 users not shown)
Line 1:
{{Documentation subpage}}
{{Lua|Module:Infobox|Module:InfoboxImage}}
 
== Usage ==
 
Infobox for identifiers ([[ISBN]], [[ORCID]], etc.)
 
=== Blank ===
 
<syntaxhighlight lang="wikitext">
<pre><nowiki>
{{Infobox identifier
| name =
Line 14 ⟶ 15:
| image_caption =
| image_alt =
| image_border =
| image_class =
| image_style =
| full_name =
| acronym =
| number =
| start_date = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| organisation =
| digits =
| check_digit =
| example =
| website = <!-- {{URL|example.org}} -->
}}
</syntaxhighlight>
</nowiki></pre>
 
 
== Parameters ==
{{columns-start|num=2}}
 
; child {{nobold|or}} embed: set to {{code|yes}} to embed
; name : Defaults to PAGENAME
; name: defaults to {{tlx|PAGENAMEBASE}}
; image : Logo or other image
; image: e.g. {{code|identifier_logo.svg}}
; image_caption : Caption
; image_size {{nobold|(deprecated)}}: Ifsize requiredin px
; image_upright: defaults to {{code|0.9}}
; image_alt : see [[WP:ALT]]
; 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_class: CSS class applied to image and caption, can be {{code|skin-invert}} to invert the image in dark mode
; acronym : If {{Para|name}} uses full name
; image_style: CSS style applied to the image and caption
; start_date : Use {{Tl|Start date}}
; image_caption: caption
; organisation : Managing organisation
; subject: e.g. people, books
; check_digit : Type of [[Check digit]], if used
{{column}}
; example : An example
; full_name: if {{para|name}} uses acronym or initialism
; website : Use {{tl|URL}}
; 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 ==
 
=== Name is acronym ===
 
{{Infobox identifier
| name = ORCID
|image = ORCID logo with tagline.svg
| full_name = Open Researcher and Contributor ID
|image_border = no
| start_date = {{Start date|2012|10|16|df=y}}
|upright = 1.1
| organisation =
|full_name = Open Researcher and Contributor ID
| check_digit = MOD 11-2
|organisation = ORCID, Inc.
| example = <nowiki>http://orcid.org/0000-0001-5882-6823</nowiki>
|start_date = {{date and age|2012|10|16|df=y}}
| website = {{URL|orcid.org}}
|number = 6,236,148
}}
|digits = 16
 
|check_digit = MOD 11-2
<pre><nowiki>
|example = [https://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
| full_name = Open Researcher and Contributor ID
|image_border = no
| start_date = {{Start date|2012|10|16|df=y}}
|upright = 1.1
| organisation =
|full_name = Open Researcher and Contributor ID
| check_digit = MOD 11-2
|organisation = ORCID, Inc.
| example = <nowiki>http://orcid.org/0000-0001-5882-6823</nowiki>
|start_date = {{date and age|2012|10|16|df=y}}
| website = {{URL|orcid.org}}
|number = 6,236,148
}}
|digits = 16
</nowiki></pre>
|check_digit = MOD 11-2
|example = [https://orcid.org/0000-0001-5882-6823 0000-0001-5882-6823]
|website = {{URL|orcid.org}}
}}</syntaxhighlight>{{-}}
 
=== Name is full ===
 
{{Infobox identifier
| name = International {{nowr|Standard Book Number}}
| image = EAN-13-ISBN-13.svg
|image_border = no
| image_caption = A 13-digit ISBN, 978-3-16-148410-0, as represented by an [[International Article Number (EAN)|EAN-13 bar code]]
|image_caption = Example [[EAN-13|13-digit]] ISBN
| acronym = ISBN
|image_class = notheme
| start_date = {{Start date|1970}}
|image_style = background-color: #f8f9fa;
| organisation =
|initialism check_digit = ISBN
|organisation = International ISBN Agency
| example = 978-3-16-148410-0
|start_date = {{start date|1970}}
| website =
|digits = 13 (formerly 10)
}}
|check_digit = Weighted sum
 
|example = {{ISBN|978-3-16-148410-0|plainlink=y}}
{{-}}
|website = {{URL|isbn-international.org}}
<pre><nowiki>
}}<syntaxhighlight lang="wikitext">
{{Infobox identifier
| name = International {{nowr|Standard Book Number}}
| image = EAN-13-ISBN-13.svg
|image_border = no
| image_caption = A 13-digit ISBN, 978-3-16-148410-0, as represented by an [[International Article Number (EAN)|EAN-13 bar code]]
|image_caption = Example [[EAN-13|13-digit]] ISBN
| acronym = ISBN
|image_class = notheme
| start_date = {{Start date|1970}}
|image_style = background-color: #f8f9fa;
| organisation =
|initialism check_digit = ISBN
|organisation = International ISBN Agency
| example = 978-3-16-148410-0
|start_date = {{start date|1970}}
| website =
|digits = 13 (formerly 10)
}}
|check_digit = Weighted sum
</nowiki></pre>
|example = {{ISBN|978-3-16-148410-0|plainlink=y}}
|website = {{URL|isbn-international.org}}
}}</syntaxhighlight>{{-}}
 
<includeonly>{{Sandbox other||
 
<includeonly>
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[Category:Computing infobox templates]]
[[Category:Embeddable templates]]
}}
}}</includeonly>