Template:FP icon/doc: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
Mystery Dungeon GP>Maintenance script-gpuser
(Automated Import)
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
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 <tt><nowiki><center> ... </center></nowiki></tt> 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==
<tt><nowiki><center></nowiki></tt>
<code><nowiki><center></nowiki></code>
:{{tlx|FP icon|Link-guides.png|Special:Preferences{{!}}Special: Preferences}} &mdash; This line demonstrates how longer titles can be made to wrap if they have spaces
:{{tlx|FP icon|OOjs UI icon information-progressive.svg|Special:Preferences{{!}}Special: Preferences}} &mdash; This line demonstrates how longer titles can be made to wrap if they have spaces
:{{tlx|FP icon|Link-guides.png|nolink=1|Main Page}} &mdash; This line demonstrates how to remove the text link below the icon
:{{tlx|FP icon|OOjs UI icon information-progressive.svg|nolink=1|Mystery Dungeon Franchise Wiki}} &mdash; This line demonstrates how to remove the text link below the icon
:{{tlx|FP icon|Link-guides.png|https://google.com Google}} &mdash; This line demonstrates how to create an external link
:{{tlx|FP icon|OOjs UI icon information-progressive.svg|https://google.com Google}} &mdash; This line demonstrates how to create an external link
:{{tlx|FP icon|Link-guides.png|Project:Community portal{{(}}!{{)}}Locations}} &mdash; This line demonstrates how to change the display text for a given link
:{{tlx|FP icon|OOjs UI icon information-progressive.svg|Project:Community portal{{(}}!{{)}}Locations}} &mdash; This line demonstrates how to change the display text for a given link
:{{tlx|FP icon|Link-guides.png|Special:Random|size{{=}}100px}} &mdash; This image has a size parameter
:{{tlx|FP icon|OOjs UI icon information-progressive.svg|Special:Random|size{{=}}100px}} &mdash; This image has a size parameter
<tt><nowiki></center></nowiki></tt>
<code><nowiki></center></nowiki></code>


'''Generates''':
'''Generates''':
<center>
<center>
{{FP icon|Link-guides.png|Special:Preferences{{!}}Special: Preferences}}
{{FP icon|OOjs UI icon information-progressive.svg|Special:Preferences{{!}}Special: Preferences}}
{{FP icon|Link-guides.png|nolink=1|Main Page}}
{{FP icon|OOjs UI icon information-progressive.svg|nolink=1|Mystery Dungeon Franchise Wiki}}
{{FP icon|Link-guides.png|https://google.com Google}}
{{FP icon|OOjs UI icon information-progressive.svg|https://google.com Google}}
{{FP icon|Link-guides.png|Project:Community portal{{!}}Locations}}
{{FP icon|OOjs UI icon information-progressive.svg|Project:Community portal{{!}}Locations}}
{{FP icon|Link-guides.png|Special:Random|size=100px}}
{{FP icon|OOjs UI icon information-progressive.svg|Special:Random|size=100px}}
</center>
</center>


{{doc/end}}
{{doc/end}}

Latest revision as of 21:21, 11 March 2023

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