Template:MaterialInfobox: Difference between revisions
Appearance
Content deleted Content added
Testing & Demostration of Custom and Header fields |
Get rid of everything that doesn't work correctly when there's a line in the infobox |
||
| Line 9: | Line 9: | ||
| 2:Label = Grade |
| 2:Label = Grade |
||
| 2:Value = {{{grade|}}} |
| 2:Value = {{{grade|}}} |
||
| 3:Type |
| 3:Type = Header |
||
| 3: |
| 3:Label = |
||
| 3: |
| 3:Value = TestHeader |
||
| ⚫ | |||
| 3:LabelMethod = ExampleSplitLabelMethod |
|||
| ⚫ | |||
| 3:ValueMethod = SplitNewline |
|||
| 4: |
| 4:Label = tr |
||
| 4:Value = <td colspan="2">FakeTestHeader</td> |
|||
| ⚫ | |||
| 4: |
| 4:CssClass = ImTheFakeHeader |
||
| ⚫ | |||
| 5:Type = Custom |
| 5:Type = Custom |
||
| 5:Label = tr |
| 5:Label = tr |
||
| 5:Value = <td> |
| 5:Value = <td colspan="2">{{{knownuses|}}}</td> |
||
| 5: |
| 5:ValueMethod = Newline |
||
| |
| 5:CssClass = ImTheList |
||
| 6:Type = Custom |
|||
| ⚫ | |||
| 6:LabelMethod = ExampleSplitLabelMethod |
|||
| 6: |
| 6:Value = <td colspan="2">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2</td> |
||
| 6:ValueMethod = |
| 6:ValueMethod = Newline |
||
| |
| 6:CssClass = ImTheList |
||
| 7:Type = Line |
|||
| ⚫ | |||
| 7:Value = <td>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2</td> |
|||
| 7: |
| 7:Value = Test |
||
| 7:CssClass = ImTheList |
|||
| ⚫ | |||
| ⚫ | |||
| 8:Value = <td colspan="2">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2</td> |
|||
| 8:ValueMethod = Newline |
|||
| 8:CssClass = ImTheList |
|||
}}<includeonly>[[Category:Materials]] |
}}<includeonly>[[Category:Materials]] |
||
{{#switch:{{lc:{{{grade|}}}}} |
{{#switch:{{lc:{{{grade|}}}}} |
||
Revision as of 20:00, 13 December 2015
{{#infoboxbuilder: | 0:Theme = eInfobox | 0:CustomModule = Module:Infobox Material | 1:Type = Title
| 1:Label = NULL | 1:ValueMethod = PreTitleIcon | 1:Grade = | 1:Value = MaterialInfobox
| 2:Type = Line
| 2:Label = Grade | 2:Value =
| 3:Type = Header
| 3:Label = | 3:Value = TestHeader | 3:CssClass = ImTheHeader
| 4:Type = Custom
| 4:Label = tr
| 4:Value = FakeTestHeader
| 4:CssClass = ImTheFakeHeader
| 5:Type = Custom
| 5:Label = tr
| 5:Value =
| 5:ValueMethod = Newline | 5:CssClass = ImTheList
| 6:Type = Custom
| 6:Label = tr
| 6:Value = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2
| 6:ValueMethod = Newline | 6:CssClass = ImTheList
| 7:Type = Line
| 7:Label = TestGrade | 7:Value = Test
}}
{{CommodityInfobox
| grade =
| knownuses =
}}
Usage
- grade
- The grade or rating on how difficult it is to find. Can either be "Very common", "Common", or "Rare".
- knownuses
- The known uses listed in the information of the material. New material are separated by semi-colon (";"). Names have to be exact in terms of both name and capitalisation. Please use icon templates such as {{Material ship}}.
Notes
Due to the quite irritating structure of the Split type, editing this template should be done with caution.