Modèle:Px

De ArcadePlus
Révision datée du 25 février 2019 à 16:14 par Rom1 (discussion | contributions) (This is the {{px}} meta-template.)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche


This is the

meta-template.

It helps other templates, such as infoboxes, to take image size parameters in both of the forms "40" or "40px". It takes up to three parameters and returns the first one that has any content. That is, the first one that is defined (not null) and not empty. Thus a default value for the width of the image can be fed as the second or third parameter.