Template:Main Page/Card: Difference between revisions
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== | ||