Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

Template:StyleUsedInFragmentationBody

From Mabinogi World Wiki

|- style="background-color: #fff;" | width="200" | [[{{{Name}}}]] | width="360" | {{{FragResult}}} | width="70" | {{{FragRank}}}

Usage

Important: This style template should be used where the FragResult parameter in a data template has a value of the format (note that, a fragmentation result may give more or less unique materials);

?~? [[item1]]s, ?~? [[item2]]s and ?~? [[item3]]s

This style template works in conjunction with the header style template Template:StyleUsedInFragmentationHeader. There is no footer style template associated with this template. For each table on a page using this template, simply add "|}" (without the quote marks) on the next line below the last use of this template. The reason for not using a footer template is because it prevents the unnecessary blank lines that are created under a table when a footer template is used. Also, it's generally easier to type "|}" than typing the name of a template that only contains the same tiny piece of code.

The following parameters are all that are needed from a data template to make this style template work. If no data template exists then either create a data template or if you aren't confident in creating a data template, then manually enter these parameters and associated values onto an item's page (see the Without Data Templates example below).

  • Name - The name of the product that is going to be fragmented. Don't make the product's name into a link, this style template will do that.
  • RequiredStack - Sometimes an item to be fragmented can be stacked and a stack of more than 1 unit is required before the item can be fragmented. For example, fragmenting Handmade Ballista Bolts requires a stack of 30 ballista bolts per attempt. This parameter need not be given, left blank or given the value of 1, if only 1 unit is required per attempt. An error message is generated if the value given is zero or negative. If anything but a number is given then a software error message will be generated (i.e., if a letter or symbol is given instead of a number). An integer or real number can be used but a real number will be rounded off to the nearest integer.
  • FragResult - The possible range of materials and the possible materials acquired when a single attempt is made to fragment an item. If the number of a material acquired from a successful attempt at fragmentation can come in a range, then enter that range as "a~b" where a is the minimum possible number able to be obtained (can be 0) and b is the maximum possible number (must be greater than 0). If the number of a material acquired from a successful attempt at fragmentation is always the same then use a single number. The range or number of each material acquired should precede the material's name and the material names should be made into links, for example, "0~3 Wood Board, 0~3 Tough Thread and 0~5 Large Nail". If this style template is used on the page of a material acquired from a fragmentation result, then it will not display as a link but will show up as bold text which is the desired effect.
  • FragRank - The minimum required fragmentation rank needed to start fragmenting an item. This should be a single digit or a single capital letter.

As fragmentation is only used on items that are created by production skills, then there should already be a "Notes" sub-section on the page of the item to be fragmented, as well as, on the pages of the materials resulting from the fragmentation. If not, then add the "Notes" sub-section below to either the bottom of the "Methods to Obtain" or "Used In" section, whichever the fragmentation results table is created in. The "Notes" section is for the reference tag in the "Rank" column heading in Template:StyleUsedInFragmentationHeader.

=== <small>Notes</small> ===

<small><references group=" " /></small>

The section "Notes" section at the bottom of this page has been included to display the note created by the reference tag used in the Rank column heading used in the examples and to stop the reference tags from producing error messages on this template's page.

General Info

This template creates the rows for the body of a table on an item page's "Methods to Obtain" or "Used In" sections, where the table lists items to be fragmented and the resulting materials possibly acquired from the fragmentation.

This template includes column widths rather than relying on those provided in the header style template Template:StyleUsedInFragmentationHeader because some browsers will not always display a table with the correct column widths unless they are included on every row (instead of just the table's header row). This problem usually occurs when there is more than one table on a page, resulting in tables with differing widths when in fact they should be the same. At present, Opera and Internet Explorer seem to produce this problem while Firefox doesn't (what occurs in Chrome and Safari is unknown).

Examples Using This Template

With Data Templates

=== [[Fragmentation]] ===
{{StyleUsedInFragmentationHeader}}
{{DataThick Thread Ball|format=StyleUsedInFragmentationBody}}
{{DataFinest Leather Strap|format=StyleUsedInFragmentationBody}}
{{DataFine Handmade Arrow|format=StyleUsedInFragmentationBody}}
{{DataWound Remedy 10 Potion|format=StyleUsedInFragmentationBody}}
{{DataHandmade Ballista Bolt|format=StyleUsedInFragmentationBody}}
|}

Fragmentation

Name Possible Fragmentation Results Rank[1]
Thick Thread Ball 1~5 Wools Novice
Finest Leather Strap x 2 1 Finest Leather C
Fine Handmade Arrow x 100 0~5 Firewood and 0~1 Bundle of Fine Arrowheads D
Wound Remedy 10 Potion 0~1 Golden Herb, 0~1 Bloody Herb, 0~1 Mana Herb and 0~1 Base Herb Novice
Handmade Ballista Bolt x 30 0~1 Bundle of Bolt Heads and 0~6 Firewood F

Without Data Templates

=== [[Fragmentation]] ===
{{StyleUsedInFragmentationHeader}}
{{StyleUsedInFragmentationBody
| Name=Thick Thread Ball
| FragResult=1~5 [[Wool]]s
| FragRank=Novice}}
{{StyleUsedInFragmentationBody
| Name=Finest Leather Strap
| RequiredStack=2
| FragResult=1 [[Finest Leather]]
| FragRank=C}}
{{StyleUsedInFragmentationBody
| Name=Fine Handmade Arrow
| RequiredStack=100
| FragResult=0~5 [[Firewood]]s and 0~1 [[Bundle of Fine Arrowheads]]
| FragRank=D}}
{{StyleUsedInFragmentationBody
| Name=Wound Remedy 10 Potion
| FragResult=0~1 [[Golden Herb]], 0~1 [[Bloody Herb]], 0~1 [[Mana Herb]] and 0~1 [[Base Herb]]
| FragRank=Novice}}
{{StyleUsedInFragmentationBody
| Name=Handmade Ballista Bolt
| RequiredStack=30
| FragResult=0~1 [[Bundle of Bolt Heads]] and 0~6 [[Firewood]]s
| FragRank=F}}
|}

Fragmentation

Name Possible Fragmentation Results Rank[1]
Thick Thread Ball 1~5 Wools Novice
Finest Leather Strap x 2 1 Finest Leather C
Fine Handmade Arrow x 100 0~5 Firewoods and 0~1 Bundle of Fine Arrowheads D
Wound Remedy 10 Potion 0~1 Golden Herb, 0~1 Bloody Herb, 0~1 Mana Herb and 0~1 Base Herb Novice
Handmade Ballista Bolt x 30 0~1 Bundle of Bolt Heads and 0~6 Firewoods F

Notes

  1. 1.0 1.1 This column is for the minimum fragmentation rank required to start fragmenting the corresponding item listed in the Name column.