Editing Template:Main Page/Card
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div class="mp-card"><!-- | --><div class="mp-card"><!-- | ||
--><div class="mp-card-image" | --><div class="mp-card-image">[[File:{{{image|}}}.{{{ext|png}}}|60x60px|alt=|link={{{link|}}}]]</div><!-- | ||
--><div class="mp-card-text">[[{{{link|}}}|{{{text|{{{link|}}}}}}]]</div><!-- | --><div class="mp-card-text">[[{{{link|}}}|{{{text|{{{link|}}}}}}]]</div><!-- | ||
--></div></includeonly><noinclude>{{Documentation|type=Main Page|content= | --></div></includeonly><noinclude>{{Documentation|type=Main Page|content= | ||
| Line 17: | Line 9: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="wikitext" copy> | <syntaxhighlight lang="wikitext" copy> | ||
{{Main Page/Card| | {{Main Page/Card|image = |link = |text = }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* {{F|image}} – Destination filename ('''excluding''' the file extension). | |||
* {{F|image}} – | * {{F|ext}} – Extension for filename. Default: {{F|png}}. | ||
* {{F|ext}} – Extension | |||
* {{F|link}} – Link of the card. | * {{F|link}} – Link of the card. | ||
* {{F|text}} – Text displayed on the card. Default: {{F|link|v=1}} | * {{F|text}} – Text displayed on the highlight card. Default: {{F|link|v=1}}. | ||
==Example== | ==Example== | ||
{{Example|<nowiki> | {{Example|<nowiki> | ||
<templatestyles src="Template:Main Page/styles.css" /> | |||
<div class="mp-navigation-wrapper mp-card-navigation"> | <div class="mp-navigation-wrapper mp-card-navigation"> | ||
{{Main Page/Card| | {{Main Page/Card|image = Kabuto Beetle Icon|link = Insect|text = Insects}} | ||
{{Main Page/Card| | {{Main Page/Card|image = Sanke Koi Icon|link = Fish}} | ||
{{Main Page/Card|image = Bean-Shaped Fist Crab Icon|link = Shore-Dweller|text = Shore-Dwellers}} | |||
{{Main Page/Card|image = | |||
</div> | </div> | ||
</nowiki>}} | </nowiki>}} | ||
| Line 42: | Line 30: | ||
{ | { | ||
"params": { | "params": { | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": " | "description": "Destination filename (excluding the extension).", | ||
"example": "Kabuto Beetle Icon", | "example": "Kabuto Beetle Icon.png", | ||
"type": "wiki-file-name" | "type": "wiki-file-name", | ||
"required": true | |||
}, | }, | ||
"ext": { | "ext": { | ||
"label": "Extension", | "label": "Extension", | ||
"description": "Extension | "description": "Extension for filename.", | ||
"default": "png", | "default": "png", | ||
"type": "string" | "type": "string" | ||
| Line 74: | Line 56: | ||
"type": "string", | "type": "string", | ||
"default": "<link>" | "default": "<link>" | ||
} | } | ||
}, | }, | ||
"description": "Template that creates cards for the Main Page.", | "description": "Template that creates cards for the Main Page.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"image", | "image", | ||
"ext", | "ext", | ||
"link", | "link", | ||
"text | "text" | ||
], | ], | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||
}}</noinclude> | }}</noinclude> | ||