Template:Test-MaterialsNav: Difference between revisions

Template page
No edit summary
 
(8 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%;"
! colspan="2" style="text-align:center;" | Resources
|-
! Basic Resources
|<gallery widths=120px heights=50px>
File:Metal Ore.png|link=Metal Ore|[[Metal Ore]]
File:Crystal Chunk.png|link=Crystal Chunk|[[Crystal Chunk]]
File:Silica Sand.png|link=Silica Sand|[[Silica Sand]]
File:Metal Ore.png|link=Metal Ore|[[Metal Ore]]
File:Crystal Chunk.png|link=Crystal Chunk|[[Crystal Chunk]]
File:Silica Sand.png|link=Silica Sand|[[Silica Sand]]
File:Metal Ore.png|link=Metal Ore|[[Metal Ore]]
File:Crystal Chunk.png|link=Crystal Chunk|[[Crystal Chunk]]
File:Silica Sand.png|link=Silica Sand|[[Silica Sand]]
File:Metal Ore.png|link=Metal Ore|[[Metal Ore]]
</gallery>
|-
! Advanced Resources
|<gallery style="border: 1px solid black;" widths=120px heights=50px>
File:Blight Crystal.png|link=Blight Crystal|[[Blight Crystal]]
File:Laterite.png|link=Laterite|[[Laterite]]
File:Obsidian.png|link=Obsidian|[[Obsidian]]
</gallery>
|}
-->

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)