แม่แบบ:กล่องข้อมูล ฟอนต์

จากวิกิพีเดีย สารานุกรมเสรี
ไปยังการนำทาง ไปยังการค้นหา
ไทป์เฟซ{{{name}}}
Category {{{style}}}
เอกสารกำกับแม่แบบนี้เอามาจากแม่แบบ:กล่องข้อมูล ฟอนต์/doc [แก้ไข]


วิธีใช้[แก้]

{{Infobox font
| name = 
| familyname = 
| image = [[Image:{{{name}}} specimen.svg|220px|{{{name}}}]]
| style = 
| classifications = 
| creator = 
| commissioned_by = 
| foundry = 
| foundries = 
| creationdate = 
| releasedate = 
| trademark = 
| based_on =
| aka = 
| variations = 
| sample = Image:{{{name}}} sample.svg
| shown_here =
| sample_fullimage = Image:{{{name}}} full sample.svg
}}

Attributes[แก้]

Required[แก้]

name 
Name of the typeface. Please be specific so the font preview works well.
style 
Style of the typeface: Serif, Sans-serif, Script, Blackletter, Display, Symbol

Optional[แก้]

Not required, but recommended.

familyname 
The name of the font's principal family. For instance, Arial Black is a part of the Arial family.
classifications 
A more specific term for the style, such as "Modern", "Humanist" or "Geometric"
image 
Image of name of the font, set in its own face. This is different than the sample attribute below. SVG file format is recommended.
based_on 
Refers to the original design on which a revival, reinterpretation, homage or extension is based upon. This is not the same as a clone, for which the "aka" attribute should be used.
aka 
Alternate (or imitation) names for other fonts based on this typeface. For instance, "Swiss 721" is Bitstream's name for its release of Helvetica.
creationdate 
The year the font was created.
releasedate 
The year the typeface was first released, if different than the creation date.
creator 
Name of this font's designer(s), if known. Otherwise leave blank and fill in foundry name.
commissioned_by 
Name of organization or individual who originally commissioned the typeface to be created.
foundry 
The original distributor and license owners of the typeface.
foundries 
The names of foundries that have re-issued the typeface in the same format or formats differing from the original, ie. digital.
trademark 
The owner of the font name, or the holder of the font's trademark.
variations 
List of alternate foundry type designs based on the letterforms of this typeface. For instance, "Garamond", Adobe Garamond", and "ITC Garamond" are different designs, yet are all based on the same original typeface.
sample 
A sample of the font, displaying a single large character ("g"), the "quick brown fox" pangram, and a set of characters (A–Z, a–z, 0-9, basic punctuation). SVG file format is recommended.
shown here 
Names the version of the font pictured in the illustration.
sample_fullimage 
A large sample image of the font, displaying its full character set (typically, the standard 256 glyphs of a TrueType font). SVG file format is recommended.

ตัวอย่าง[แก้]

Normal syntax[แก้]

Bookman
ไทป์เฟซBookman
Category Serif
ClassificationsSlab serif
ผู้ออกแบบAlexander Phemister
FoundryITC
Sample
Bookman sample text
(See all characters)
{{Infobox font
| name    = Bookman
| image   = [[Image:Bookman font.svg|220px|Bookman]]
| style   = [[Serif]]
| classifications = [[Slab serif]]
| date    = [[1860]]
| creator = [[Alexander Phemister]]
| foundry = [[International Typeface Corporation|ITC]]
| sample  = [[Image:Bookman_sample.svg|220px|Bookman sample text]]
| sample_fullimage = Bookman.png
}}

Minimal syntax[แก้]

ไทป์เฟซComic Sans
Category Script
{{Infobox font
| name  = Comic Sans
| style = [[Script typeface|Script]]
}}

Optimal syntax[แก้]

Helvetica
ไทป์เฟซHelvetica
Category sans-serif
ผู้ออกแบบMax Miedinger
FoundryHaas’sche Schriftgießerei
Linotype
VariationsHelvetica Neue
Helvetica Rounded
Nimbus Sans
Also known asSwiss 721
Sample
Helvetica sample text
{{Infobox font
| name = Helvetica
| image = [[Image:Helvetica font.svg|220px|Helvetica]]
| style = [[Sans-serif]]
| aka = [[Swiss 721]]
| date = [[1957]]
| creator = [[Max Miedinger]]
| foundry = [[Haas Typefoundry|Haas’sche Schriftgießerei]]<br />[[Linotype]]
| variations = [[Helvetica Neue]]<br />[[Helvetica Rounded]]<br />[[Nimbus Sans]]
| sample = [[Image:Helvetica sample.svg|220px|Helvetica sample text]]
}}</nowiki>