Template:FP icon: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
Mystery Dungeon GP>Maintenance script-gpuser
m (Automated Import)
 
m (Text replacement - "{{clear}}" to "{{Clear}}")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display:inline-block; margin: 2px; max-width: 70px; text-align:center; vertical-align: top;">[[File:{{{1}}}|{{{size|75px}}}|link={{{2}}}|{{{2}}}]]{{#if:{{{nolink|}}}| |<br>{{#ifeq:{{#pos:{{lc:{{{2|}}}}}|http}}|0|[{{{2}}}]|[[{{{2}}}]]}}}}</div></includeonly><noinclude>{{clear}}{{doc}}
<onlyinclude><div style="display:inline-block; margin: 2px; max-width: 70px; text-align:center; vertical-align: top;">[[File:{{{1}}}|{{{size|75px}}}|link={{{2}}}|{{{2}}}]]{{#if:{{{nolink|}}}| |<br>{{#ifeq:{{#pos:{{lc:{{{2|}}}}}|http}}|0|[{{{2}}}]|[[{{{2}}}]]}}}}</div></onlyinclude><noinclude>{{Clear}}{{doc}}


[[Category:Formatting templates]]
[[Category:Formatting Templates]]
</noinclude>
</noinclude>

Latest revision as of 19:50, 18 May 2024

[[File:{{{1}}}|75px|link={{{2}}}|{{{2}}}]]
[[{{{2}}}]]
Template-info.png Documentation

This template creates a main page icon with a text link underneath. As the page width narrows, a group of these icons will rearrange themselves onto as many lines as necessary. The group can be centered by enclosing the template calls in <center> ... </center> tags.

Customization

  • The vertical alignment can be changed from either top to bottom depending on the nature of the icons.
  • The default size of the icons can be changed, or the size parameter can be set.
  • The text links under the icons can be removed.

Example

<center>

{{FP icon|OOjs UI icon information-progressive.svg|Special:Preferences|Special: Preferences}} — This line demonstrates how longer titles can be made to wrap if they have spaces
{{FP icon|OOjs UI icon information-progressive.svg|Mystery Dungeon Franchise Wiki}} — This line demonstrates how to remove the text link below the icon
{{FP icon|OOjs UI icon information-progressive.svg|https://google.com Google}} — This line demonstrates how to create an external link
{{FP icon|OOjs UI icon information-progressive.svg|Project:Community portal{{!}}Locations}} — This line demonstrates how to change the display text for a given link
{{FP icon|OOjs UI icon information-progressive.svg|Special:Random|size=100px}} — This image has a size parameter

</center>

Generates:

Mystery Dungeon Franchise Wiki