Template:Main Page/Card: Difference between revisions
Appearance
mNo edit summary |
Added SyntaxHighlight and Template:Example |
||
| Line 8: | Line 8: | ||
==Syntax== | ==Syntax== | ||
< | <syntaxhighlight lang="wikitext" copy> | ||
{{Main Page/Card|image = |link = |text = }} | {{Main Page/Card|image = |link = |text = }} | ||
</ | </syntaxhighlight> | ||
* {{F|image}} – Destination filename ('''excluding''' the file extension). | * {{F|image}} – Destination filename ('''excluding''' the file extension). | ||
* {{F|ext}} – Extension for filename. Default: {{F|png}}. | * {{F|ext}} – Extension for filename. Default: {{F|png}}. | ||
| Line 17: | Line 17: | ||
==Example== | ==Example== | ||
{{Example|<nowiki> | |||
{{ | |||
< | |||
<templatestyles src="Template:Main Page/styles.css" /> | <templatestyles src="Template:Main Page/styles.css" /> | ||
<div class="mp-navigation-wrapper mp-card-navigation"> | <div class="mp-navigation-wrapper mp-card-navigation"> | ||
| Line 28: | Line 24: | ||
{{Main Page/Card|image = Bean-Shaped Fist Crab Icon|link = Shore-Dweller|text = Shore-Dwellers}} | {{Main Page/Card|image = Bean-Shaped Fist Crab Icon|link = Shore-Dweller|text = Shore-Dwellers}} | ||
</div> | </div> | ||
</nowiki>}} | |||
==Template Data== | ==Template Data== | ||
Revision as of 15:04, 2 May 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Usage |
This template uses CSS found at Template:Main Page/styles.css.
Template that creates cards for {{Main Page}}.
Syntax
{{Main Page/Card|image = |link = |text = }}
- image – Destination filename (excluding the file extension).
- ext – Extension for filename. Default: png.
- link – Link of the card.
- text – Text displayed on the highlight card. Default: link.
Example
<templatestyles src="Template:Main Page/styles.css" />
<div class="mp-navigation-wrapper mp-card-navigation">
{{Main Page/Card|image = Kabuto Beetle Icon|link = Insect|text = Insects}}
{{Main Page/Card|image = Sanke Koi Icon|link = Fish}}
{{Main Page/Card|image = Bean-Shaped Fist Crab Icon|link = Shore-Dweller|text = Shore-Dwellers}}
</div>
Template Data
Template that creates cards for the Main Page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | Destination filename (excluding the extension).
| File | required |
| Extension | ext | Extension for filename.
| String | optional |
| Link | link | Link of the card.
| String | required |
| Text | text | Text displayed on the card.
| String | optional |