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

Template:Navcards: Difference between revisions

Template page
Created page with "<includeonly>{{#invoke:Navcards|navcards}}</includeonly><noinclude> Navcards is used to create a grid of navigation cards. It is powered by Module:Navcards. == Usage == <pre><nowiki> {{Navcards |header = Characters |image1 = Matt Stewart - Gandalf - A Light in the Dark.jpg |page1 = Gandalf |caption1 = You shall not pass |image2 = |page2 = Frodo Baggins |title2 = Frodo |image3 = The Lord of the Rings - The Return of the King - Gollum poster.jpg |page3 = Gollum |capt..."
 
No edit summary
Line 6: Line 6:
{{Navcards
{{Navcards
|header = Characters
|header = Characters
|image1 = Matt Stewart - Gandalf - A Light in the Dark.jpg
|image1 = placeholder.png
|page1 = Gandalf
|page1 = Gandalf
|caption1 = You shall not pass
|caption1 = You shall not pass
Line 12: Line 12:
|page2 = Frodo Baggins
|page2 = Frodo Baggins
|title2 = Frodo
|title2 = Frodo
|image3 = The Lord of the Rings - The Return of the King - Gollum poster.jpg
|image3 = placeholder.png
|page3 = Gollum
|page3 = Gollum
|caption3 = My precious
|caption3 = My precious
|image4 = The Lord of the Rings (film series) - Boromir.jpg
|image4 = placeholder.png
|page4 = Boromir
|page4 = Boromir
|title4 = Bromir
|title4 = Bromir
Line 26: Line 26:
{{Navcards
{{Navcards
|header = Characters
|header = Characters
|image1 = Matt Stewart - Gandalf - A Light in the Dark.jpg
|image1 = placeholder.png
|page1 = Gandalf
|page1 = Gandalf
|caption1 = You shall not pass
|caption1 = You shall not pass
Line 32: Line 32:
|page2 = Frodo Baggins
|page2 = Frodo Baggins
|title2 = Frodo
|title2 = Frodo
|image3 = The Lord of the Rings - The Return of the King - Gollum poster.jpg
|image3 = placeholder.png
|page3 = Gollum
|page3 = Gollum
|caption3 = My precious
|caption3 = My precious
|image4 = The Lord of the Rings (film series) - Boromir.jpg
|image4 = placeholder.png
|page4 = Boromir
|page4 = Boromir
|title4 = Bromir
|title4 = Bromir

Revision as of 11:25, 16 April 2025

Navcards is used to create a grid of navigation cards. It is powered by Module:Navcards.

Usage

{{Navcards
|header = Characters
|image1 = placeholder.png
|page1 = Gandalf
|caption1 = You shall not pass
|image2 = 
|page2 = Frodo Baggins
|title2 = Frodo
|image3 = placeholder.png
|page3 = Gollum
|caption3 = My precious
|image4 = placeholder.png
|page4 = Boromir
|title4 = Bromir
|caption4 = One does not simply walk into Mordor
}}

will give:

Characters
Gandalf
You shall not pass
Gollum
My precious
Bromir
One does not simply walk into Mordor

TemplateData

Create a grid of navigation cards.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Headerheader

Optional header text

Stringoptional
Image aspect ratioaspectratio

Optional aspect ratio for the image

Default
1
Example
2/3
Stringoptional
Image widththumbwidth

Optional image width for the thumbnail in pixel

Default
240
Example
200
Numberoptional