Template:Filestring

From Club Penguin Fanon Wiki
Jump to: navigation, search


This template is important in infoboxes. Do not edit it unless you know what you're doing.


[edit] [purge] Documentation icon.PNG Template documentation

The Filestring template is used for infoboxes and any template that has an image parameter.


Filestring, when placed correctly in an infobox, detects the presence of a "File:" or "Image:" prefix in the image parameter. If there is no prefix, the template automatically adds one, thus fixing most template image errors wiki-wide.


Also see the template {{File-remove}}.


How to Use[edit]

Go to the infobox you want to add Filestring to. There should be a set of code that looks like this:


[[{{{x}}}]]


The parameter x can have any name in the infobox. As long as it is an image parameter, Filestring will work.


Simply place filestring directly before the x parameter, like this:


[[{{filestring|{{{x}}}}}{{{x}}}]]


The parameter x MUST be put inside Filestring's parameter for the template to work.