Jump to content

Template:MaterialInfobox: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
m Removed label right
Testing & Demostration of Custom and Header fields
Line 14: Line 14:
| 3:LabelMethod = ExampleSplitLabelMethod
| 3:LabelMethod = ExampleSplitLabelMethod
| 3:ValueMethod = SplitNewline
| 3:ValueMethod = SplitNewline
| 4:Type = Header
| 4:Label =
| 4:Value = TestHeader
| 4:CssClass = ImTheHeader
| 5:Type = Custom
| 5:Label = tr
| 5:Value = <td>FakeTestHeader</td>
| 5:CssClass = ImTheFakeHeader
| 6:Type = Split
| 6:LabelLeft = Known uses
| 6:LabelMethod = ExampleSplitLabelMethod
| 6:ValueLeft = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2
| 6:ValueMethod = SplitNewline
| 7:Type = Custom
| 7:Label = tr
| 7:Value = <td>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2</td>
| 7:ValueMethod = Newline
| 7:CssClass = ImTheList
| 8:Type = Custom
| 8:Label = tr
| 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 19:34, 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 = Split

| 3:LabelLeft = Known uses
| 3:ValueLeft = 
| 3:LabelMethod = ExampleSplitLabelMethod
| 3:ValueMethod = SplitNewline

| 4:Type = Header

| 4:Label =
| 4:Value = TestHeader
| 4:CssClass = ImTheHeader

| 5:Type = Custom

| 5:Label = tr

| 5:Value = FakeTestHeader

| 5:CssClass = ImTheFakeHeader

| 6:Type = Split

| 6:LabelLeft = Known uses
| 6:LabelMethod = ExampleSplitLabelMethod
| 6:ValueLeft = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2
| 6:ValueMethod = SplitNewline

| 7:Type = Custom

| 7:Label = tr

| 7:Value = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2

| 7:ValueMethod = Newline
| 7:CssClass = ImTheList

| 8:Type = Custom

| 8:Label = tr

| 8:Value = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;test1;test2

| 8:ValueMethod = Newline
| 8:CssClass = ImTheList

}}

{{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.