Template:FP icon/doc: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "== " to "==") |
m (Text replacement - " ==" to "==") |
||
Line 2: | Line 2: | ||
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 <code><nowiki><center> ... </center></nowiki></code> tags. | 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 <code><nowiki><center> ... </center></nowiki></code> tags. | ||
==Customization == | ==Customization== | ||
* The vertical alignment can be changed from either top to bottom depending on the nature of the icons. | * 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 default size of the icons can be changed, or the size parameter can be set. | ||
* The text links under the icons can be removed. | * The text links under the icons can be removed. | ||
==Example == | ==Example== | ||
<code><nowiki><center></nowiki></code> | <code><nowiki><center></nowiki></code> | ||
:{{tlx|FP icon|Link-guides.png|Special:Preferences{{!}}Special: Preferences}} — This line demonstrates how longer titles can be made to wrap if they have spaces | :{{tlx|FP icon|Link-guides.png|Special:Preferences{{!}}Special: Preferences}} — This line demonstrates how longer titles can be made to wrap if they have spaces |
Revision as of 04:45, 23 December 2021
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|Link-guides.png|Special:Preferences|Special: Preferences}}
— This line demonstrates how longer titles can be made to wrap if they have spaces{{FP icon|Link-guides.png|Mystery Dungeon Franchise Wiki}}
— This line demonstrates how to remove the text link below the icon{{FP icon|Link-guides.png|https://google.com Google}}
— This line demonstrates how to create an external link{{FP icon|Link-guides.png|Project:Community portal{{!}}Locations}}
— This line demonstrates how to change the display text for a given link{{FP icon|Link-guides.png|Special:Random|size=100px}}
— This image has a size parameter
</center>
Generates: