Template:Infobox identifier/doc: Difference between revisions

Content deleted Content added
No edit summary
Susko3 (talk | contribs)
Document image_style
 
(17 intermediate revisions by 10 users not shown)
Line 1:
{{Documentation subpage}}
{{Lua|Module:Infobox|Module:InfoboxImage}}
 
== Usage ==
Line 7 ⟶ 8:
=== Blank ===
 
<syntaxhighlight lang="wikitext">
<pre><nowiki>
{{Infobox identifier
| name =
Line 15 ⟶ 16:
| image_alt =
| image_border =
| image_class =
| image_style =
| full_name =
| acronym =
Line 25 ⟶ 28:
| 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 PAGENAMEBASE
; 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 : Defaultdefaults {{code|yes}}, but can beto {{code|no}} to prevent showing border around image
; image_alt: see [[WP:ALT]]
; subject : What does the identifier identify? e.g. people, books.
; image_class: CSS class applied to image and caption, can be {{code|skin-invert}} to invert the image in dark mode
; full_name : If {{Para|name}} uses acronym
; image_style: CSS style applied to the image and caption
; acronym : If {{Para|name}} uses full name
; image_caption: caption
; number : Number issued - should be cited in body of article
; subject: e.g. people, books
; start_date : Use {{Tl|Start date}}
{{column}}
; organisation : Managing organisation
; full_name: if {{para|name}} uses acronym or initialism
; digits : Number of digits (or "Variable")
; acronym {{nobold|or}} initialism: if {{para|name}} uses full name
; check_digit : Type of [[Check digit]], if used
; organisation {{nobold|or}} organization: managing organisation
; example : An example
; start_date: use {{tlx|start date}} or {{tlx|start date and age}}
; website : Use {{tl|URL}}
; 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
| image_border = no
|upright = 1.1
|full_name = Open Researcher and Contributor ID
|organisation = ORCID, Inc.
| start_date = {{Start date|2012|10|16|df=y}}
|start_date = {{date and age|2012|10|16|df=y}}
| number = > 1,500,000
|number = 6,236,148
| organisation = ORCID, Inc.
| digits = 16
| check_digit = MOD 11-2
| example = <nowiki>http[https://orcid.org/0000-0001-5882-6823</nowiki> 0000-0001-5882-6823]
| website = {{URL|orcid.org}}
}}<syntaxhighlight lang="wikitext">
}}
 
{{Clear}}
 
<pre><nowiki>
{{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 = {{Start date|2012|10|16|df=y}}
|start_date = {{date and age|2012|10|16|df=y}}
| number = > 1,500,000
|number = 6,236,148
| organisation = ORCID, Inc.
| digits = 16
| check_digit = MOD 11-2
| example = <nowiki>http[https://orcid.org/0000-0001-5882-6823</nowiki> 0000-0001-5882-6823]
| website = {{URL|orcid.org}}
}}</syntaxhighlight>{{-}}
}}
</nowiki></pre>
 
=== 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 = International ISBN Agency
|initialism = ISBN
| digits = 13 (formerly 10)
|organisation = International ISBN Agency
| check_digit = Weighted sum
|start_date = {{start date|1970}}
| example = 978-3-16-148410-0
|digits = 13 (formerly 10)
| website = {{URL|www.isbn-international.org}}
|check_digit = Weighted sum
}}
|example = {{ISBN|978-3-16-148410-0|plainlink=y}}
 
|website = {{URL|isbn-international.org}}
{{Clear}}
}}<syntaxhighlight lang="wikitext">
 
<pre><nowiki>
{{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 = International ISBN Agency
|initialism = ISBN
| digits = 13 (formerly 10)
|organisation = International ISBN Agency
| check_digit = Weighted sum
|start_date = {{start date|1970}}
| example = 978-3-16-148410-0
|digits = 13 (formerly 10)
| website = {{URL|www.isbn-international.org}}
|check_digit = Weighted sum
}}
|example = {{ISBN|978-3-16-148410-0|plainlink=y}}
</nowiki></pre>
|website = {{URL|isbn-international.org}}
}}</syntaxhighlight>{{-}}
 
<includeonly>{{Sandbox other||
 
<includeonly>
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[Category:Computing infobox templates]]
[[Category:Embeddable templates]]
}}
}}</includeonly>