Difference between revisions of "Nookipedia:Project Items/Table Templates"
Trig Jegman (talk | contribs) |
m (fixing typo, typos fixed: how how → how) |
||
Line 1: | Line 1: | ||
[[File:ModernEndTableGold.png|thumb|Not THAT table! Even if it is shiny!]] | [[File:ModernEndTableGold.png|thumb|Not THAT table! Even if it is shiny!]] | ||
− | The following sections show you | + | The following sections show you how each template works to create different parts of the table.<ref>'''Important''': Figuring out how {{t|TableHeader}} works doesn't guarantee you getting those overpriced GracieGrace furniture.</ref> If you're still confused on how to use these templates, head over to some of the more completed furniture pages and edit the page to study the coding structure. If you need any one-on-one help, you can contact any of our members, preferably our more active, experienced ones (or [[User:Sunmarsh|sunmarsh]], he's the <s>complete moron</s> absolute genius who made them). Oh, and remember to use the preview button before you save! |
==Template:TableHeader== | ==Template:TableHeader== |
Revision as of 11:43, June 27, 2020
The following sections show you how each template works to create different parts of the table.[1] If you're still confused on how to use these templates, head over to some of the more completed furniture pages and edit the page to study the coding structure. If you need any one-on-one help, you can contact any of our members, preferably our more active, experienced ones (or sunmarsh, he's the complete moron absolute genius who made them). Oh, and remember to use the preview button before you save!
Template:TableHeader
This template will automatically create a collapsible container for the table as well as its column heading labels. By inputting the correct parameters, the table will automatically generate a table with the appropriate amount of columns for the list you are creating. The template accepts several parameters as outlined in its documentation; however, I will be going over only the required parameters here.
- game - Specifies the game the item list is referencing. Possible values: DnM, DnM+, ACGC, DnMe+, ACWW, ACCF, ACNL
- type - Specifies the type of item(s) the table will contain. Possible values: accessory, carpet, clothing, fish, fossil, furniture, gyroid, insect, misc, music, seafood, stationery, wallpaper
- collection - Specifies the type of list being created/the type of page the page the list will be on. Possible values: category, other, series, set, theme
- title - The table's name that will appear at the top of the collapsible container.
Example: Let's say you want to create a furniture table for the Pirate theme in ACWW because you like pirates and you want your villagers to mistake you for a pirate. You would use the following wikitext code:
{{TableHeader|game=ACWW|type=furniture|collection=Theme|title=Pirate Theme in ''Animal Crossing: Wild World''}}
and it produces:
Pirate Theme in Animal Crossing: Wild World
Template:TableContent
This template formats each cell's contents appropriately and automatically creates new rows. It does not have any required parameters. If you are creating a critter table, however, you will want to use the type parameter to specify insect, fish, or seafood, so it can change the cell border color appropriately.
Example: Let's try the template out on a bug table...
{{TableHeader|game=ACCF|type=insect|collection=other|title=List of bugs in ''Animal Crossing: City Folk''}} {{TableContent|type=insect | 1 | Common Butterfly | [[File:Common Butterfly CF Icon.png|64px]] | 90 | Common | 50mm | Near flowers | <small>March - June:</small> 4AM - 7PM<br><small>September:</small> 8AM - 4PM | J F <font color{{=}}"#32B311">'''M A M J'''</font> J A <font color{{=}}"#32B311">'''S'''</font> O N D | - }}
Important: Notice how the equals signs for the text in the months column are enclosed in brackets (<font color{{=}}...). This is because cell contents cannot contain a raw equals sign due to how the template is coded. |
Produces:
List of bugs in Animal Crossing: City Folk
# | Name | Image | Price | Rarity | Size | Location | Time | Months | Peak |
---|---|---|---|---|---|---|---|---|---|
1 | Common butterfly | 90 | Common | 50mm | Near flowers | March - June: 4 AM - 7 PM September: 8 AM - 4 PM |
J F M A M J J A S O N D | - |
This template will produce the appropriate closing tags for a table and its container. If you don't end your tables with this tag, they will take up the entire page and may 'swallow' other elements on the page. That's not good! Your tables don't deserve this! If you look at the wikitext code for this page, you will see I closed the tables in the examples above using this template. This template accepts an optional div parameter which may be set to true or false (default is true). If set to false it will not insert closing div tags. This allows you to embed other tables inside the container before closing it, like in the example below.
Blue Series in Animal Crossing:New Leaf
Blue Bed | File:Bed Blue.jpg | 2,100 | 525 | Timmy & Tommy | Yellow / Blue | Rustic | Basic | Bed | Yes |
Item | Image | Buy Price | Sell Price | Color | HHA Theme | Style | Available From |
---|---|---|---|---|---|---|---|
Blue Wall | File:Wall Blue.jpg | 1,260 | 315 | Blue | - | Basic | Nooklings |
Table style guide
Because Template:TableHeader can generate so many different tables it's not really feasible to provide examples of every possible type. Instead the following list provides a style guide for how a cell's contents should be formatted depending on the type of information they contain.
- Item: Capitalize the first letter of every word in an item's name, except for articles or prepositions.
- Song Title: Used in place of 'Item' on music tables. Capitalization rules still apply.
- Name: Used in place of 'Item' on insect, fish, and seafood tables. Capitalization rules still apply.
- Listen: Used on music tables; insert the appropriate audio file. See Help:Audio for more info.
- Image: Image width should be set to 75px. If the item is missing an image use the template {{MIA}}.
- Buy price: Always use Nook's catalog buy price (or other NPC's, if applicable), not Redd's buy price. If buy price is not bells, note the currency used. (e.g. 40 medals)
- Sell price: Always use Nook's base sale price. If buy price is not bells (e.g. 40 medals), note the currency in the sell price (e.g. 250 bells).
- Available from: How does one acquire the item? Make sure this content links to the appropriate Nookipedia article.
- Group: (A, B, C, or -) Only applicable to ACWW and older games.
- Feng Shui: (Red, Orange, Yellow, Green, Special, Lucky, or -) Only applicable to DnMe+ and older games.
- Color: (Red, Green, Yellow, Orange, Purple, Blue, Aqua, Beige, Pink, White, Gray, Black, Brown and/or Colorful) Be sure to put the color name in brackets to call the appropriate template. If an item has more than one color, list them in alphabetical order with a "/" between each one. (e.g. Green / Red). In specific color lists, however, list the article's color first (e.g. in "List of pink furniture", always list Pink first). Applicable to ACWW and newer games.
- Genre(s):(Old School, Modern, Chic, and/or Lovely) Applicable to ACWW & ACCF only.
- HHA Theme(s): (Harmonious, Antique, Rustic, Trendy, Fairy Tale, Toy Shop, Sci-Fi, or Quirky) If an item has more than one then list them in alphabetical order with a "&" between each one. (e.g. Antique & Trendy) Applicable to ACNL only.
- Style: (Basic, Cute, Flashy, Historical, Iconic, Modern, Official, Ornate, Rock 'n' Roll, or Sporty) Applicable to ACNL only.
- Size: How much space an item takes up. ({{Small}}, {{Medium}} or {{Large}}). On fish and seafood tables indicates shadow size instead.
- Location: Used in insect and fish tables. Notes where the critter can be caught.
- Time: Used in insect, fish, and seafood tables. Notes which times & months the critter can be caught.
- Months: Used in insect and fish tables. Notes which months the critter can be caught. The contents will automatically be formatted to be grey and small. Add the appropriate color formatting to months the critter is available in. Remember that equals signs must be placed in brackets to avoid breaking the template.
- Info: Can the item do anything special? (e.g. Table, Stereo, Storage, Lamp, TV, Wall furniture, Can place on table etc.)
- Customize: Can Cyrus customize the item? (Yes or No). Applicable to ACNL only.
References
- ↑ Important: Figuring out how {{TableHeader}} works doesn't guarantee you getting those overpriced GracieGrace furniture.