Difference between revisions of "Template:Set portal"
Dinoguy1000 (talk | contribs) (pass date through Template:Main page date to avoid unnecessarily showing the year (consistency with Template:News)) |
Dinoguy1000 (talk | contribs) (allow showing a default image if the set image for a set isn't uploaded yet) |
||
Line 1: | Line 1: | ||
<noinclude><templatestyles src="Yugipedia:Main Page/styles.css" /> | <noinclude><templatestyles src="Yugipedia:Main Page/styles.css" /> | ||
− | </noinclude><div><div style="height: 200px;">[[File:{{{Set image}}}|180x200px|center|link={{{Name}}}]]</div> | + | </noinclude><div><div style="height: 200px;">[[File:{{ #ifeq: {{ #imgw: {{{Set image}}} }} | 0 | {{ #if: {{{#userparam|}}} | {{{#userparam}}} | {{{Set image}}} }} | {{{Set image}}} }}|180x200px|center|link={{{Name}}}]]</div> |
<div style="margin:auto">''[[{{{Name}}}|{{ #explode: {{{Name}}} | ( }}]]''</div> | <div style="margin:auto">''[[{{{Name}}}|{{ #explode: {{{Name}}} | ( }}]]''</div> |
Latest revision as of 05:26, 2 January 2024
[[File:{{{Set image}}}|180x200px|center|link={{{Name}}}]]
[[{{{Name}}}|{{{Name}}}]]
Formats the output of subtemplates of {{Latest set}} for display on the main page.