Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Navpills: Difference between revisions

Template page
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:
<div class="navpills-grid">
<includeonly>{{#invoke:Navpills|navpills}}</includeonly><noinclude>
{{#for: i = 1 | i <= 12 | i = i + 1 }}
Navpills is used to create a grid of navigation buttons. It is powered by [[Module:Navpills]].
  {{#if: {{{page{{i}}}|}} |
 
    <a class="navpill" href="/wiki/{{{page{{i}}}}}" style="background-image:url(/images/{{{image{{i}}}}})">
== Example Usage (for The Witcher 3 Wiki) ==
      {{{text{{i}}}}}
<pre><nowiki>
    </a>
{{Navpills
  }}
|page1 = Geralt of Rivia
{{/for}}
|text1 = Characters
</div>
|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
}}