Template:IconText: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<span {{#ifeq:{{{oneline|undefined}}}|undefined||style="display:block"}}> | |||
{{#switch:{{{icon|}}} | {{#switch:{{{icon|}}} | ||
| heat = [[File:Icon heat.png|{{{icon_size|x12px}}}|baseline|link=]] | | heat = [[File:Icon heat.png|{{{icon_size|x12px}}}|baseline|link=]] | ||
| Line 87: | Line 87: | ||
{{{text|}}} | {{{text|}}} | ||
</span> | </span> | ||
<noinclude> | <noinclude> | ||
Template helping the formating of a text precede by an icon | Template helping the formating of a text precede by an icon | ||
Revision as of 02:09, 26 May 2024
Template helping the formating of a text precede by an icon
Parameters
| Name | Description |
|---|---|
| icon | A formated string to define which icon use. Check the icon list for more info. |
| icon_size | (optional) Use to override de default icon size (default: 12px for height). |
| text | (optional) Text following the icon. |
| oneline | (optional) If present, force the display on a line (display:block). |
Exemple of use
{{IconText
| icon=red protein
| icon_size=x24px
| text=Red protein
| oneline
}}
List of icon
You can check the following table to see if the icon exist. If not present, follow those step to add it :
- Upload the icon file here. If possible, use a file with no white space between the border and the icon and with an transparent background.
- Edit this page.
- In the {{#switch section, add this line with your info : | ID icon=[[File:File name|<nowiki>x12px|baseline|link=]]
- In the table below, add the reference you just insert with the picture displayed.
| ID | Example | ID | Example | ID | Example | ID | Example | ID | Example | ID | Example | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| heat | energy | mitochondrial energy | oxydable | intracellular | red protein | |||||||||||
| yellow protein | blue protein | green protein | red tubulin | yellow tubulin | blue tubulin | |||||||||||
| green tubulin | red subunit | yellow subunit | blue subunit | green subunit | picker | |||||||||||
| red picker | blue picker | yellow picker | green picker | white picker | long picker | |||||||||||
| overlong picker | gaz picker | energetic picker | genomic picker | primitive picker | swift picker | |||||||||||
| filter picker | aminoacids | tubulins | subunits | acid hydrolase enz | adp synthase enz | |||||||||||
| alcohol dehydrogenase enz | alpha1 collagen chain | alpha2 collagen chain | alpha helix | atp synthase subunit | base pair ligase enz | |||||||||||
| beta sheet | connexin | cytochrome | f actin | g actin | glycolysis enz | |||||||||||
| hemoglobin | hemoglobin subunit alpha | hemoglobin subunit beta | hourglass | kinesin | krebs cycle enz | |||||||||||
| luciferase enz | luciferin | myosin | nad nadp transhydrogenase enz | nad synthase enz | nucleobase synthase enz | |||||||||||
| pentose phosphate pathway enz | protease | pyruvate carboxylase enz | pyruvate dehydrogenase enz | thermogenin | vimentin | |||||||||||
| advanced microtubule | balancer | construction tool | destroy tool | expand tool | hand tool | |||||||||||
| item kicker | microtubule | microtubule primitive | microtubule tool | stockpile | stockpile filter | |||||||||||
| stockpile tiny | tunnel | tunnel primitive | horizontal arrow |