Template:Test-MaterialsNav: Difference between revisions

Template page
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
Example:
Right now the material navbox is grouped with a '''manually added''' list of "    <nowiki>[[materials]]・[[with]]・[[dots]]・[[between]]・[[them]]</nowiki>  "
*Having the extension will allow us to '''automatically list all current pages and any new pages''' with categories using [https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data]. (Mazbot will push a template:category though and categories will be added soon)
*We can list each material exactly like above with a 'delimiter' - setting the separator character to ・
*We can put the lists in a 'template' which can be used to make links.
*Or possibly make the entire 'table' itself [https://www.mediawiki.org/wiki/Extension:Cargo/Display_formats#More_complex_text_displays]
*Or we can add a <nowiki><gallery></nowiki> with links, material names, in a table. [https://www.mediawiki.org/wiki/Extension:Cargo/Display_formats#Image_displays]
johans manual navbox (2nd layout from discord)
{{Navbox
|title  = [[Materials]]
|group1 = [[Simple]]
|list1  = 
{{NavboxIconLink|Metal Bar}}・{{NavboxIconLink|Metal Plate}}・{{NavboxIconLink|Wire}}・{{NavboxIconLink|Silicon}}・{{NavboxIconLink|Crystal Powder}}・{{NavboxIconLink|Obsidian Brick}}・{{NavboxIconLink|Bug Chitin}}・{{NavboxIconLink|Blight Bar}}・{{NavboxIconLink|Blight Plasma}}・{{NavboxIconLink|Foundation Plate}}
|group2 = [[Advanced]]
|list2  = {{NavboxIconLink|Circuit Board}}・{{NavboxIconLink|Reinforced Plate}}・{{NavboxIconLink|Refined Crystal}}・{{NavboxIconLink|Optic Cable}}・{{NavboxIconLink|Fused Electrodes}}・{{NavboxIconLink|Low-Density Frame}}・{{NavboxIconLink|Infected Circuit Board}}・{{NavboxIconLink|Engines}}・{{NavboxIconLink|Small Modular Reactor}}・{{NavboxIconLink|Beacon Kit}}
|group3 = [[High-tech]]
|list3  = {{NavboxIconLink|Cable}}・{{NavboxIconLink|High-Density Frame}}・{{NavboxIconLink|IC Chip}}・{{NavboxIconLink|Energized Plate}}・{{NavboxIconLink|Microprocessor}}・{{NavboxIconLink|CPU}}
|group4 = [[Research]]
|list4  = {{NavboxIconLink|Robotics Data Cube}}・{{NavboxIconLink|Blight Data Cube}}・{{NavboxIconLink|Human Data Cube}}・{{NavboxIconLink|Virus Data Cube}}・{{NavboxIconLink|Alien Data Cube}}・{{NavboxIconLink|Datacube Matrix}}・{{NavboxIconLink|Robotics Research}}・{{NavboxIconLink|Blight Research}}・{{NavboxIconLink|Human Research}}・{{NavboxIconLink|Virus Research}}・{{NavboxIconLink|Alien Research}}・{{NavboxIconLink|Anomaly Particle}}
}}
<!--
{| border="1" style="border-collapse: collapse; text-align:center; width=100%;"
{| border="1" style="border-collapse: collapse; text-align:center; width=100%;"
! colspan="2" style="text-align:center;" | Resources  
! colspan="2" style="text-align:center;" | Resources  
Line 23: Line 53:
</gallery>
</gallery>
|}
|}
 
-->
 
{{Navbox
|title  = [[Materials]]
|group1 = [[Simple]]
|list1  = 
{{NavboxIconLink|Metal Bar}}[[Metal Bar]]・{{NavboxIconLink|Metal Plate}}[[Metal Plate]]・{{NavboxIconLink|Wire}}[[Wire]]・{{NavboxIconLink|Silicon}}[[Silicon]]・{{NavboxIconLink|Crystal Powder}}[[Crystal Powder]]・{{NavboxIconLink|Obsidian Brick}}[[Obsidian Brick]]・{{NavboxIconLink|Bug Chitin}}[[Bug Chitin]]・{{NavboxIconLink|Blight Bar}}[[Blight Bar]]・{{NavboxIconLink|Blight Plasma}}[[Blight Plasma]]・{{NavboxIconLink|Foundation Plate}}[[Foundation Plate]]
 
|group2 = [[Advanced]]
|list2  = [[Circuit Board]]・[[Reinforced Plate]]・[[Refined Crystal]]・[[Optic Cable]]・[[Fused Electrodes]]・[[Low-Density Frame]]・[[Infected Circuit Board]]・[[Engines]]・[[Small Modular Reactor]]・[[Beacon Kit]]
 
|group3 = [[High-tech]]
|list3  = [[Cable]]・[[High-Density Frame]]・[[IC Chip]]・[[Energized Plate]]・[[Microprocessor]]・[[CPU]]
 
|group4 = [[Research]]
|list4  = [[Robotics Data Cube]]・[[Blight Data Cube]]・[[Human Data Cube]]・[[Virus Data Cube]]・[[Alien Data Cube]]・[[Datacube Matrix]]・[[Robotics Research]]・[[Blight Research]]・[[Human Research]]・[[Virus Research]]・[[Alien Research]]・[[Anomaly Particle]]
}}

Latest revision as of 18:22, 10 October 2023

Example:

Right now the material navbox is grouped with a manually added list of " [[materials]]・[[with]]・[[dots]]・[[between]]・[[them]] "

  • Having the extension will allow us to automatically list all current pages and any new pages with categories using [1]. (Mazbot will push a template:category though and categories will be added soon)
  • We can list each material exactly like above with a 'delimiter' - setting the separator character to ・
  • We can put the lists in a 'template' which can be used to make links.
  • Or possibly make the entire 'table' itself [2]
  • Or we can add a <gallery> with links, material names, in a table. [3]


johans manual navbox (2nd layout from discord)