Template:Main Page/Card: Difference between revisions

mNo edit summary
Added SyntaxHighlight and Template:Example
Line 8: Line 8:


==Syntax==
==Syntax==
<pre>
<syntaxhighlight lang="wikitext" copy>
{{Main Page/Card|image = |link = |text = }}
{{Main Page/Card|image = |link = |text = }}
</pre>
</syntaxhighlight>
* {{F|image}} &ndash; Destination filename ('''excluding''' the file extension).
* {{F|image}} &ndash; Destination filename ('''excluding''' the file extension).
* {{F|ext}} &ndash; Extension for filename. Default: {{F|png}}.
* {{F|ext}} &ndash; Extension for filename. Default: {{F|png}}.
Line 17: Line 17:


==Example==
==Example==
<pre>
{{Example|<nowiki>
{{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}}
</pre>
<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==