Template:MP link: Difference between revisions

From Team 84 Official Wiki
Jump to navigation Jump to search
Created page with "<noinclude> Usage: <pre>{{MP link|Page Name|link=Custom_Link|image=Image_Name.png|icon=👥|size=64px}}</pre> Category:Main page templates </noinclude><div class="mp-link-item" style="display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 0.75rem; border: 1px solid var(--border-color-subtle, #e2e8f0); border-radius: var(--border-radius-base, 8px); background-color: var(--background-color-base, #ffffff); transition: all 0.2s..."
 
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
Usage:  
Usage:
<pre>{{MP link|Page Name|link=Custom_Link|image=Image_Name.png|icon=👥|size=64px}}</pre>
<pre>{{MP link|Page Name|link=Custom_Link|image=Image_Name.png|icon=👥|size=64px}}</pre>
Keep everything after the noinclude block on one line. In wikitext, any line that starts with a space becomes a grey code box.
[[Category:Main page templates]]
[[Category:Main page templates]]
</noinclude><div class="mp-link-item" style="display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 0.75rem; border: 1px solid var(--border-color-subtle, #e2e8f0); border-radius: var(--border-radius-base, 8px); background-color: var(--background-color-base, #ffffff); transition: all 0.2s ease; box-sizing: border-box;">
</noinclude><includeonly><div class="mp-link-item" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:6px;border:1px solid var(--border-color-subtle,#c8ccd1);border-radius:6px;background-color:var(--background-color-base,#fff);box-sizing:border-box;"><div class="mp-link-image" style="display:flex;align-items:center;justify-content:center;line-height:1;">{{#if:{{{image|}}}|[[File:{{{image}}}|{{{size|64px}}}|link={{{link|{{{1}}}}}}|alt={{{1}}}]]|<span class="mp-link-icon" style="font-size:2em;line-height:1;">{{{icon|📄}}}</span>}}</div><div class="mp-link-title" style="font-weight:600;">[[{{{link|{{{1}}}}}}|{{{1}}}]]</div></div></includeonly>
  <div class="mp-link-image" style="margin-bottom: 0.75rem; min-height: 48px; display: flex; align-items: center; justify-content: center;">
    {{#if:{{{image|}}}
      | [[File:{{{image}}}|{{{size|64px}}}|link={{{link|{{{1}}}}}}|alt={{{1}}}]]
      | <span style="font-size: 2.25rem; line-height: 1;">{{{icon|📄}}}</span>
    }}
  </div>
  <div class="mp-link-title" style="font-size: 1rem; font-weight: 600;">
    [[{{{link|{{{1}}}}}}|{{{1}}}]]
  </div>
</div>

Latest revision as of 08:33, 29 October 2026

Usage:

{{MP link|Page Name|link=Custom_Link|image=Image_Name.png|icon=👥|size=64px}}

Keep everything after the noinclude block on one line. In wikitext, any line that starts with a space becomes a grey code box.