Earthfall Wiki
(<default import>)
 
Pcjbot (talk | contribs)
m
 
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 ==
Line 8: Line 8:
   
 
== Example ==
 
== Example ==
<tt><nowiki><center></nowiki></tt>
+
<code><nowiki><center></nowiki></code>
 
:{{tlx|FP icon|Link-guides.png|Guides}}
 
:{{tlx|FP icon|Link-guides.png|Guides}}
 
:{{tlx|FP icon|Link-weapons.png|Weapons}}
 
:{{tlx|FP icon|Link-weapons.png|Weapons}}
 
:{{tlx|FP icon|Link-locations.png|Project:Community portal{{(}}!{{)}}Locations}} &mdash; This line demonstrates how to change the display text for a given link
 
:{{tlx|FP icon|Link-locations.png|Project:Community portal{{(}}!{{)}}Locations}} &mdash; This line demonstrates how to change the display text for a given link
 
:{{tlx|FP icon|Link-help.png|Help|size{{=}}100px}} &mdash; This image has a size parameter
 
:{{tlx|FP icon|Link-help.png|Help|size{{=}}100px}} &mdash; This image has a size parameter
<tt><nowiki></center></nowiki></tt>
+
<code><nowiki></center></nowiki></code>
   
 
'''Generates''':
 
'''Generates''':

Latest revision as of 16:28, 14 November 2018

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|Link-guides.png|Guides}}
{{FP icon|Link-weapons.png|Weapons}}
{{FP icon|Link-locations.png|Project:Community portal{{!}}Locations}} — This line demonstrates how to change the display text for a given link
{{FP icon|Link-help.png|Help|size=100px}} — This image has a size parameter

</center>

Generates:

Guides
Guides
Help
Help

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.