ข้ามไปเนื้อหา

แม่แบบ:Infobox comics elements/doc

จากวิกิพีเดีย สารานุกรมเสรี

กล่องข้อมูลนี้ออกแบบมาสำหรับองค์ประกอบเรื่องราวหรืออุปกรณ์ประกอบฉาก ซึ่งรวมถึงสิ่งต่างๆ เช่น อาวุธ อุปกรณ์ และยานพาหนะ เช่น รถแบทแมน หรือ ซีรีโบร ไม่รวมถึงอาคารที่ควรใช้ {{Infobox fictional location}} หรือรูปแบบชีวิตเทียม ซึ่งควรใช้ {{Infobox comics species}} (เป็นกลุ่ม) หรือ {{Infobox comics character}} (บุคคล)

การใช้งาน

[แก้]
{{Infobox comics elements
<!--Wikipedia:WikiProject Comics-->
|name      = 
|image     = <!-- ใส่ได้เฉพาะชื่อไฟล์รูปเท่านั้น -->
|imagesize = <!-- ค่าเริ่มต้น 250 -->
|caption   = 
|alt       = 
|publisher = 
|debut     = 
|debutmo   = <!-- ไม่บังคับ -->
|debutyr   = <!-- ไม่บังคับ -->
|creators  = 
|type      = 
|supports  = 
|subcat    = 
|altcat    = 
|sortkey   = {{PAGENAME}}
|addpubcat#= 
}}
{{{name}}}
ข้อมูลการตีพิมพ์
สำนักพิมพ์{{{publisher}}}
ปรากฏตัวครั้งแรก{{{debut}}} ({{{debutmo}}} [[{{{debutyr}}} in comics|{{{debutyr}}}]])
เขียนโดย{{{creators}}}
รายละเอียดในเรื่อง
ประเภท{{{type}}}
เรื่องที่ธาตุนี้เกี่ยวข้อง{{{supports}}}

คำอธิบายพารามิเตอร์

[แก้]

องค์ประกอบทั่ว ๆ ไป

[แก้]
  • พารามิเตอร์ส่วนใหญ่ออกแบบมาเพื่อโชว์ในกล่องข้อมูลเท่านั้น ถ้ามีการใส่ข้อมูลบางอย่างลงไป ปล่อยให้ว่างไว้ได้ถ้ารายการนั้นไม่เกี่ยวข้องกับบทความ หรือ ตอนที่เพิ่มแม่แบบยังไม่มีข้อมูล
  • ช่อง name เป็นข้อยกเว้น ถ้าไม่ใส่ข้อมูลอะไรลงไป กล่องข้อมูลจะไม่สร้างหัวเรื่องขึ้นมาให้ แต่ถ้าหัวเรื่องในกล่องข้อความ เหมือนกับหัวเรื่องของบทความ ก็สามารถลบหรือใส่เป็นแทคความเห็นไปก็ได้ ตัวอย่าง:
<!--| name = -->}}

ควรใช้อย่างหลังเนื่องจากชื่อของบทความหรือชื่อกล่องข้อมูลที่อาจมีการเปลี่ยนแปลง

  • ถ้าต้องใส่หลายรายการในช่องเดียว ให้ คั่นแต่ละรายการด้วย <br /> ตัวอย่าง:
|creators=Stan Lee<br />Jack Kirby
  • การวางรูปภาพในกล่องข้อมูลจะใช้สองช่อง คือ:
    • image ซึ่งใส่เฉพาะชื่อไฟล์ + นามสกุลไฟล์ ของรูปนั้นแล้ว แม่แบบก็จะเพิ่มรูปให้ ตัวอย่าง:
|image=example.jpg 
  • imagesize ซึ่งคือการกำหนด ความกว้าง ของรูปที่จะโชว์ ให้ใส่ได้เฉพาะตัวเลข ถ้าปล่อยว่างไว้ หรือใส่เป็นข้อความ(เช่น "225px" ควรใส่เป็น 225 ก็พอ) รูปจะแสดงตามค่าเริ่มต้น ซึ่งคือ กว้าง 250px
  • ถ้ารู้สึกว่ารูปมันสูงไป ให้ลดขนาดให้ต่ำกว่า 250px
  • พารามิเตอร์มีค่าสูงสุดอยู่ที่ 250 หากใส่ค่าอะไรที่สูงกว่านี้ รูปจะโชว์ตามค่าเริ่มต้น
  • รูปที่โชว์มีความสูงเต็มที่ไม่เกิน 450 เช่นกัน
  • caption จะโชว์ใต้ภาพ ควรเขียนให้สั้น แต่ระบุแหล่งที่มาที่เผยแพร่ของรูปและศิลปิน ตัวอย่าง:
|caption=Wolverine vol 2, #17. Art by John Byrne.
  • To keep in line with Wikipedia:Alternative text for images, alt needs to be updated with the "text alternative" of the image. This is not the same as the caption. It should also be kept short, but needs to be descriptive of the image.
  • For debut, provide the first appearance of the element.
    • debutmo and debutyr can be used in conjunction with debut. When this is done:
      • debut is only the title, volume number, and issue number
      • debutmo is the month, season or week specified in the issue's cover date. This field is optional so it can be left out if no "month" is part of the cover date.
      • debutyr is the four digit year noted in the cover date. This will automatically link the year to the appropriate "Year in comics" list article. If this field is not present, only the information in debut will show up in the infobox.

Specific elements

[แก้]
  • The creators field should list the creators of element or prop when it first appeared, not each variation of it.
  • type is the type of element the article deals with, in the most general terms. It is normally generated selecting one of the listed logical operands, located below, here. ตัวอย่าง:
|weapon=y

However, an entry like type=Element will over ride them. ตัวอย่าง:

|type=Concept

If more than one type is appropriate, adding |multitype = y will allow for the types to all show in the infobox, but the alphabetically first type will need to use first to add it and not have ", " precede the text. ตัวอย่าง:

|tech      =first
|vehicle   =y
|multitype =y
  • supports list the primary character or team that the element appears in connection with.

Categories

[แก้]

This infobox has been designed to automatically place articles its added to into appropriate categories under Category:Fictional objects in comics. To do this the following parameters are used.

  • subcat is used to specify a particular subcategory of Category:Fictional objects in comics. This can be a publisher, imprint, or character/team. Please review the noted category for which subcategories exist.
  • altcat is used for cases where "objects" is not the ending of the appropriate category. In some cases this field is not needed. See the list of type fields for more information.
  • sortkey is the title by which the article will be sorted in the categories placed by the template. This sorting will default to {{PAGENAME}} and will override {{DEFAULTSORT}} listings in the article. Due to markup limitations, this parameter will not recognize a leading space.
    • Please note, as per standard sorting guidelines the following character types should not be used in the sort argument:
      • non-English letters (e.g. Δ, Θ, Д, Ж, מ, ي);
      • accented English letters (e.g. Á, Ö, Ñ); or
      • symbols (e.g. ¢, ₤, $, ♥).
    • "A", "An", and "The" should be dropped from titles and most subtitles in the srot argument.
    • All words in the sort argument should be capitalized.
  • Additional categories similar to the one set by either subcat or altcat can be added with addpubcat#. Replace "#" with a number (currently the template is set up for 6 additional categories) and list the full category title. Please list the categories in publication order.

Types list

[แก้]

This is a list of the logical fields the template currently supports for type. Each entry lists the line to be entered into the template and the base category type the template will add. Note that:

  • There is a hierarchy in the "Type" field so if multiple types are selected, an override ("type=<text>") may be needed.
  • If something other than "Fictional" is listed, that can be used with subcat and fine tune where the article will be sorted.
|artifact  = y
|boat      = y
|book      = y
|car       = y
|comp      = y
|copter    = y
|cycle     = y
|drug      = y
|jewel     = y
|law       = y
|material  = y
|plane     = y
|power     = y
|scifiweap = y
|sword     = y
|tech      = y
|time      = y
|vehicle   = y
|weapon    = y
|wmd       = y

แม่แบบ:Comics-related infobox templates