Template:IconText: Difference between revisions
Jump to navigation
Jump to search
(Add tools icons + leftover of routing) |
(Add horizontal arrow) |
||
| Line 1: | Line 1: | ||
< | <includeonly><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 83: | Line 83: | ||
| tunnel = [[File:Icon tunnel.png|{{{icon_size|x12px}}}|baseline|link=]] | | tunnel = [[File:Icon tunnel.png|{{{icon_size|x12px}}}|baseline|link=]] | ||
| tunnel primitive = [[File:Icon tunnel primitive.png|{{{icon_size|x12px}}}|baseline|link=]] | | tunnel primitive = [[File:Icon tunnel primitive.png|{{{icon_size|x12px}}}|baseline|link=]] | ||
| horizontal arrow = [[File:Icon horizontal arrow.png|{{{icon_size|x12px}}}|baseline|link=]] | |||
| [[Template:IconText#List_of_icon|List icon]] | | [[Template:IconText#List_of_icon|List icon]] | ||
}} | }} | ||
{{{text|}}} | {{{text|}}} | ||
</span></ | </span></includeonly> | ||
<noinclude> | <noinclude> | ||
Template helping the formating of a text precede by an icon | Template helping the formating of a text precede by an icon | ||
| Line 383: | Line 384: | ||
| [[File:Icon tunnel primitive.png|x24px|baseline|link=]] Your text | | [[File:Icon tunnel primitive.png|x24px|baseline|link=]] Your text | ||
| | | | ||
| | | horizontal arrow | ||
| | | [[File:Icon horizontal arrow.png|x24px|baseline|link=]] Your text | ||
| | | | ||
| | | | ||
Revision as of 02:01, 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 |