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 |
||
Line 21: | Line 21: | ||
* {{BasicNavbox|title=My title|group1=Fruit|g1category=Fruit examples|group2=Dessert|g2category=Dessert examples}} |
* {{BasicNavbox|title=My title|group1=Fruit|g1category=Fruit examples|group2=Dessert|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]] |
Revision as of 20:44, 25 April 2023
Example(s)
My title | ||||
---|---|---|---|---|
Fruit | {{#dpl: | namespace= | category=Fruit examples | format=,• %TITLE%
}} |
Dessert | {{#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.