Template:BasicNavbox: Difference between revisions
Content added Content deleted
imported>FrozenPlum (Created page with "<includeonly>{| class="wikitable mw-collapsible" ! colspan="2"|{{{title|{{PAGENAME}}}}} |- !{{{group1|}}} |{{#dpl: |namespace=<!-- blank = Main --> |category={{{g1category|}}} |format=,• %TITLE% }} |- !{{{group2|}}} |{{#dpl: |namespace=<!-- blank = Main --> |category={{{g2category|}}} |format=,• %TITLE% }} |- |}</includeonly><noinclude> ==Example(s)== * {{BasicNavbox|title=My title|group1=Fruit|g1category=Fruit examples|group2...") |
imported>FrozenPlum No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 19: | Line 19: | ||
==Example(s)== |
==Example(s)== |
||
* {{BasicNavbox|title=My title|group1= |
* {{BasicNavbox|title=My title|group1=Fruits|g1category=Fruit examples|group2=Desserts|g2category=Dessert examples}} |
||
== |
==Notes== |
||
* This creates an auto-populating navigation box, that populates pages-only residing in the main namespace, that are categorized under the specified category. |
|||
* There are probably '''far more efficient''' ways to do this, such as wikitext, lua, Cargo etc. |
* There are probably '''far more efficient''' ways to do this, such as wikitext, lua, Cargo etc. |
||
[[Category:Example templates]] |
[[Category:Example templates]] |
Latest revision as of 20:46, 25 April 2023
Example(s)
My title | ||||
---|---|---|---|---|
Fruits | {{#dpl: | namespace= | category=Fruit examples | format=,• %TITLE%
}} |
Desserts | {{#dpl: | namespace= | category=Dessert examples | format=,• %TITLE%
}} |
Notes
- This creates an auto-populating navigation box, that populates pages-only residing in the main namespace, that are categorized under the specified category.
- There are probably far more efficient ways to do this, such as wikitext, lua, Cargo etc.