Editing Template:Main Page/Card
Appearance
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 16: | Line 8: | ||
==Syntax== | ==Syntax== | ||
< | <pre> | ||
{{Main Page/Card| | {{Main Page/Card|image = |link = |text = }} | ||
</ | </pre> | ||
* {{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== | ||
{{ | <pre> | ||
{{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" /> | |||
<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> | ||
==Template Data== | ==Template Data== | ||
| Line 42: | Line 33: | ||
{ | { | ||
"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 65: | Line 50: | ||
"description": "Link of the card.", | "description": "Link of the card.", | ||
"example": "Insect", | "example": "Insect", | ||
"type": " | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
| Line 74: | Line 59: | ||
"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> | ||