Module:Dsize/doc: Difference between revisions
From Neodyland Wiki
More actions
first version |
m +link |
||
| Line 18: | Line 18: | ||
|<nowiki>{{#invoke:Dsize|main|x64px}}</nowiki> || {{#invoke:Dsize|main|x64px}} | |<nowiki>{{#invoke:Dsize|main|x64px}}</nowiki> || {{#invoke:Dsize|main|x64px}} | ||
|} | |} | ||
{{M|Galeria|+}} has a similar but more complex function. | |||
Revision as of 08:36, 7 December 2020
This module contains very few code - but it is heavily used.
It is needed to verify that a given display size is trailed by "px".
It can be expanded to check for other dimensions, as e.g. "em".
it will be used by Template:F, Created with/layout, ...
Use it with e.g. {{#invoke:Dsize|main|{{{sizepar}}} }}
- Examples:
| {{#invoke:Dsize|main|72}} | 72px |
| {{#invoke:Dsize|main|72px}} | 72px |
| {{#invoke:Dsize|main|72x64}} | 72x64px |
| {{#invoke:Dsize|main|x64px}} | x64px |
Module:Galeria has a similar but more complex function.