Template:Navpills: Difference between revisions
Template page
More actions
Created page with "<div class="navpills-grid"> {{#for: i = 1 | i <= 12 | i = i + 1 }} {{#if: {{{page{{i}}}|}} | <a class="navpill" href="/wiki/{{{page{{i}}}}}" style="background-image:url(/images/{{{image{{i}}}}})"> {{{text{{i}}}}} </a> }} {{/for}} </div>" |
No edit summary |
||
Line 1: | Line 1: | ||
< | <includeonly>{{#invoke:Navpills|navpills}}</includeonly><noinclude> | ||
{{ | Navpills is used to create a grid of navigation buttons. It is powered by [[Module:Navpills]]. | ||
== Example Usage (for The Witcher 3 Wiki) == | |||
<pre><nowiki> | |||
{{Navpills | |||
|page1 = Geralt of Rivia | |||
|text1 = Characters | |||
</ | |image1 = TW3_Geralt_of_Rivia.jpg | ||
|page2 = Velen | |||
|text2 = Locations | |||
|image2 = TW3_Velen_landscape.png | |||
|page3 = Griffin | |||
|text3 = Monsters | |||
|image3 = TW3_Griffin.jpg | |||
|page4 = Gwent | |||
|text4 = Game Mechanics | |||
|image4 = TW3_Gwent_cards.png | |||
}} | |||
</nowiki></pre> | |||
[[Category:Utility templates]] | |||
</noinclude> |
Latest revision as of 15:48, 14 June 2025
Navpills is used to create a grid of navigation buttons. It is powered by Module:Navpills.
Example Usage (for The Witcher 3 Wiki)
{{Navpills |page1 = Geralt of Rivia |text1 = Characters |image1 = TW3_Geralt_of_Rivia.jpg |page2 = Velen |text2 = Locations |image2 = TW3_Velen_landscape.png |page3 = Griffin |text3 = Monsters |image3 = TW3_Griffin.jpg |page4 = Gwent |text4 = Game Mechanics |image4 = TW3_Gwent_cards.png }}