(Lines) |
(Modes system) |
||
Line 1: | Line 1: | ||
+ | <includeonly>{{#ifeq: {{{temp|}}} | {{{name}}} | {{#switch: {{{disp}}}<!-- |
||
− | <includeonly>{|class="wikitable" style="border:solid #45264D; float:right" |
||
+ | |||
⚫ | |||
+ | ----- NAME mode ----- |
||
− | |- |
||
+ | |||
⚫ | |||
+ | -->| name = [[File:{{{overrideimage|{{{name}}}_Icon.png}}}|{{{size-name|20x20}}}px|link={{{name}}}|{{{overridename|{{{name}}}}}}]] [[{{{name}}}|{{{overridename|{{{name}}}}}}]]<!-- |
||
− | |- |
||
+ | |||
⚫ | |||
+ | ----- TABLE mode ----- |
||
+ | |||
+ | -->| table = {{!-}} |
||
+ | {{!}} [[{{{name}}}|{{{overridename|{{{name}}}}}}]] |
||
+ | {{#ifeq:{{{id|}}} | | | {{!}} style="text-align:center" {{!}} {{{id}}} }} |
||
+ | {{!}} style="text-align:center" {{!}} [[File:{{{overrideimage|{{{name}}}_Icon.png}}}|{{{size-table|45x45}}}px]] |
||
+ | {{#ifeq: {{{type|}}} | Rune | {{!}} {{Achv|{{{unlockedby}}}|unlock}} }} |
||
+ | {{#ifeq: {{{quote|}}} | | | {{!}} ''{{{quote}}}''}} |
||
+ | {{!}} {{{description}}} |
||
+ | {{#ifeq: {{{type|}}} | Active | {{!}} {{{recharge}}} }} |
||
+ | {{!-}} |
||
+ | | table-tr = {{!-}} |
||
+ | {{!}} [[{{{name}}}|{{{overridename|{{{name}}}}}}]] |
||
+ | {{!}} style="text-align:center" {{!}} [[File:{{{overrideimage|{{{name}}}_Icon.png}}}|{{{size-table|45x45}}}px]] |
||
+ | {{#ifeq: {{{type|}}} | Rune | {{!}} {{Achv|{{{unlockedby}}}|unlock}} }} |
||
+ | {{!}} {{{description}}} |
||
+ | {{#ifeq: {{{type|}}} | Active | {{!}} {{{recharge}}} }} |
||
+ | {{!-}}<!-- |
||
+ | |||
+ | ----- BOX mode ----- |
||
+ | |||
+ | -->| box = [[File:{{{overrideimage|{{{name}}}_Icon.png}}}|{{{size-box|40x40px}}}|link={{{name}}}|{{{overridename|{{{name}}}}}}]]<!-- |
||
+ | |||
+ | ----- Other modes ----- |
||
+ | |||
+ | -->| ''Unknown display mode <sup>[<nowiki/>[[{{{name}}}]]<nowiki/>]</sup>'' [[Category:Missing Template Mode]] }} |<!-- |
||
+ | |||
+ | ----- ELSE (main table) ----- |
||
+ | |||
+ | -->{{#ifeq: {{{disp|}}} | {{{2}}} | {{#ifeq: {{{visible|}}} | 0 | | {{(!}} class="wikitable" style="border:solid #45264D; float:right; max-width:400px" |
||
⚫ | |||
+ | {{!-}} |
||
⚫ | |||
+ | {{!-}} |
||
⚫ | |||
! Character Appearance |
! Character Appearance |
||
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{charapp}}} |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} {{{charapp}}} |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
{{#ifeq: {{{tears|}}} | | | |
{{#ifeq: {{{tears|}}} | | | |
||
! Tear Appearance |
! Tear Appearance |
||
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{tears}}} |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} {{{tears}}} |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
! Item Type |
! Item Type |
||
− | + | {{!-}} |
|
− | + | {{!}} style="text-align:center;font-weight:normal" {{!}} {{#switch: {{{type}}} | Active = [[Items#Activated Collectibles|Activated Collectible]] | Passive = [[Items#Passive Collectibles|Passive Collectible]] | Trinket = [[Trinkets|Trinket]] | Card = [[Cards and Runes#Cards|Card]] | Special Card = [[Cards and Runes#Special Cards|Special Card]] | Rune = [[Cards and Runes#Runes|Rune]] | Consumable = [[Cards and Runes#Other|Consumable]] | {{{type}}} }} |
|
− | + | {{!-}} |
|
! Item ID |
! Item ID |
||
− | + | {{!-}} |
|
− | + | {{!}} style="text-align:center; font-weight:normal" {{!}} {{{id|''ID Missing''[[Category:Items missing ID]]}}} |
|
− | + | {{!-}} |
|
! Pickup Quote |
! Pickup Quote |
||
− | + | {{!-}} |
|
− | + | {{!}} style="text-align:center; font-weight:normal; font-style:italic" {{!}} {{{quote}}} |
|
− | + | {{!-}} |
|
{{#ifeq: {{{animation|}}} | | | |
{{#ifeq: {{{animation|}}} | | | |
||
! Animation |
! Animation |
||
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{animation}}} |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} {{{animation}}} |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
{{#ifeq: {{{recharge|}}} | | | |
{{#ifeq: {{{recharge|}}} | | | |
||
! Recharge Time |
! Recharge Time |
||
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{recharge}}} |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} {{{recharge}}} |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
{{#ifeq: {{{pool|}}} | | | |
{{#ifeq: {{{pool|}}} | | | |
||
! Item Pool |
! Item Pool |
||
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{pool}}} |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} <table cellpadding="0" cellspacing="0" align=center style="text-align:left">{{{pool}}}</table> |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
− | {{#ifeq: {{{ |
+ | {{#ifeq: {{{unlockedby|}}} | | | |
− | ! |
+ | ! Unlock Method |
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{ |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} {{Achv|{{{unlockedby}}}|unlock}} |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
{{#ifeq: {{{grid|}}} | | | |
{{#ifeq: {{{grid|}}} | | | |
||
! Collection Grid |
! Collection Grid |
||
− | {{!}} |
+ | {{!-}} |
− | {{!}} style="text-align:center;font-weight:normal" {{!}} {{{grid}}} |
+ | {{!}} style="text-align:center; font-weight:normal" {{!}} {{{grid}}} |
− | {{!}} |
+ | {{!-}} |
}} |
}} |
||
− | + | {{!)}} {{#ifeq: {{NAMESPACE}} | | {{#switch: {{{type}}} | Active = [[Category:Activated Collectibles]][[Category:Items]] | Passive = [[Category:Passive Collectibles]][[Category:Items]] | Trinket = [[Category:Trinkets]] | Card = | Special Card = [[Category:Special Cards]] | Rune = | Consumable = [[Category:Special Cards]] }} }} }} }} }}</includeonly><noinclude> |
|
+ | {{Doc}} |
||
− | <noinclude> |
||
+ | |||
− | <div style="clear:both;"></div> |
||
− | Info Table for dedicated item pages. Upload images in the following format: |
||
− | <pre> |
||
− | | Icon: PAGENAME_Icon.png |
||
− | | Character Appearance: PAGENAME_App.png |
||
− | | Tears Appearance: PAGENAME_Tears.png |
||
− | | Video: PAGENAME_Video.gif |
||
− | </pre> |
||
− | Note: the icon field is automatically filled in with the image in the above format. Below is the usage syntax on item pages. Place this at the top of the page.<br/>If the item doesn't have anything to enter for character appearance, tears, animation, collection grid, or unlock, leave it blank. The table will remove that cell from the page. |
||
− | <pre> |
||
− | {{ItemTable |
||
− | | overridename = |
||
− | | overrideicon = |
||
− | | afterbirth = |
||
− | | charapp = |
||
− | | tears = |
||
− | | type = |
||
− | | id = |
||
− | | quote = |
||
− | | animation = |
||
− | | grid = |
||
− | | recharge = |
||
− | | pool = |
||
− | | unlock = |
||
− | }} |
||
− | </pre> |
||
[[Category:Templates]] |
[[Category:Templates]] |
||
</noinclude> |
</noinclude> |
Revision as of 20:28, 10 April 2017
Info Table for dedicated item pages.
Usage
This template is used by entering:
{{ItemTable | temp={{{1}}} | disp={{{2}}} | visible=1 | name = | overridename = | overrideimage = | size-main = | size-name = | size-table = | size-box = | charapp = | tears = | type = | id = | quote = | description = | animation = | grid = | recharge = | pool = | unlockedby = }}
Note: the icon field is automatically filled in with the image in the above format. Below is the usage syntax on item pages. Place this at the top of the page.
If the item doesn't have anything to enter for character appearance, tears, animation, collection grid, or unlock, leave it blank. The table will remove that cell from the page.
Parameters
- temp={{{1}}} & disp={{{2}}}
- Parameters necessary for proper operation of the template.
- visible (optional)
- Indicates whether the template is displayed on the main page.
- name
- The name of the item.
- Must match with the page's name.
- overridename (optional)
- Changes the displayed name of the item.
- overrideimage (optional)
- Changes the displayed image of the item.
- Use the following format:
[PAGENAME]_Icon.png
.
- size-main & size-name & size-table & size-box (optional)
- Changes the image size in terms of the "mode" used.
main
concern the displayed Itemtable and is initially set to 70px.name
is initially set to 20x20px.table
is initially set to 45x45px.box
is initially set to 40x40px.
- description
- A short description of the item.
- charapp (optional)
- Displays the character appearance.
- Use the following format:
[PAGENAME]_App.png
.
- tears (optional)
- Displays the tears appearance.
- Use the following format:
[PAGENAME]_Tears.png
.
- type
- The type of the item.
- Choose one of the following strings to specify the type:
Active
yields Activated Collectible.Passive
yields Passive Collectible.Trinket
yields Trinket.Card
yields Card.Special Card
yields Special Card.Rune
yields Rune.Consumable
yields Consumable.
- id
- The ID number of the item.
- quote
- The sentence on the screen when picking up the item.
- animation (optional)
- Use the following format:
[PAGENAME]_Video.gif
.
- grid (optional)
- The location of the item in collection pages.
- If the item comes from Rebirth, use the following strings:
Afterbirth
- CollectionGrid template
Rebirth
- CollectionGridOld template
- If the item comes from Afterbirth or Afterbirth+, use only the CollectionGrid template.
- recharge (optional)
- The recharge time of the item.
- Choose one of the following string to specify the recharge time:
- If the item recharges when a room is completed, enter only the number of rooms required (e.q.
1
,4
...). - If the item recharges over a specified time, enter the number of seconds required (e.q.
5 seconds
,3 seconds
...). - If the item disappears after use, use the following string:
One time use
.
- If the item recharges when a room is completed, enter only the number of rooms required (e.q.
- pool (optional)
- The generation list of the item.
- Use the corresponding templates.
- unlockedby (optional)
- The achievement(s) required to unlock the item.
The above documentation is transcluded from Template:ItemTable/doc. (edit | history)