Template:IconText: Difference between revisions
Jump to navigation
Jump to search
(Add protein-tubulin-subunit) |
(Add how to use + list of available icon) |
||
Line 18: | Line 18: | ||
| blue subunit = [[File:Icon subunit blue.png|{{{icon_size|x12px}}}|baseline|link=]] | | blue subunit = [[File:Icon subunit blue.png|{{{icon_size|x12px}}}|baseline|link=]] | ||
| green subunit = [[File:Icon subunit green.png|{{{icon_size|x12px}}}|baseline|link=]] | | green subunit = [[File:Icon subunit green.png|{{{icon_size|x12px}}}|baseline|link=]] | ||
| [[Template:IconText|List icon]] | | [[Template:IconText#List_of_icon|List icon]] | ||
}} | }} | ||
{{{text|}}} | {{{text|}}} | ||
</span></onlyinclude> | </span></onlyinclude> | ||
<noinclude> | |||
Template helping the formating of a text precede by an icon | |||
== Parameters == | |||
{| class="wikitable" style="margin:auto;width:800px" | |||
! Name | |||
! Description | |||
|- | |||
| icon | |||
| A formated string to define which icon use. Check the [[#List_of_icon|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 == | |||
<nowiki>{{IconText</nowiki> <br/> | |||
| icon=red protein <br/> | |||
| icon_size=x24px<br/> | |||
| text=Red protein<br/> | |||
| oneline<br/> | |||
}} | |||
== 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 [[Special:Upload|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 '''<nowiki>{{#switch</nowiki>''' section, add this line with your info : | '''ID icon'''=<nowiki>[[File:</nowiki>'''File name'''|<nowiki>{{{icon_size|x12px}}}|baseline|link=]] | |||
* In the table below, add the reference you just insert with the picture displayed. | |||
{| class="wikitable" style="margin:auto;" | |||
! style="width:90px" | ID | |||
! style="width:95px" | Example | |||
! style="width:20px" | | |||
! style="width:90px" | ID | |||
! style="width:95px" | Example | |||
! style="width:20px" | | |||
! style="width:90px" | ID | |||
! style="width:95px" | Example | |||
! style="width:20px" | | |||
! style="width:90px" | ID | |||
! style="width:95px" | Example | |||
! style="width:20px" | | |||
! style="width:90px" | ID | |||
! style="width:95px" | Example | |||
! style="width:20px" | | |||
! style="width:90px" | ID | |||
! style="width:95px" | Example | |||
|- | |||
| '''heat''' | |||
| [[File:Icon heat.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''energy''' | |||
| [[File:Icon energy.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''mitochondrial energy''' | |||
| [[File:Icon mitochondrial energy.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''oxydable''' | |||
| [[File:Icon oxydable.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''intracellular''' | |||
| [[File:Icon intracellular.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''red protein''' | |||
| [[File:Icon protein red.png|x24px|baseline|link=]] Test text | |||
|- | |||
| '''yellow protein''' | |||
| [[File:Icon protein yellow.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''blue protein''' | |||
| [[File:Icon protein blue.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''green protein''' | |||
| [[File:Icon protein green.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''red tubulin''' | |||
| [[File:Icon tubulin red.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''yellow tubulin''' | |||
| [[File:Icon tubulin yellow.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''blue tubulin''' | |||
| [[File:Icon tubulin blue.png|x24px|baseline|link=]] Test text | |||
|- | |||
| '''green tubulin''' | |||
| [[File:Icon tubulin green.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''red subunit''' | |||
| [[File:Icon subunit red.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''yellow subunit''' | |||
| [[File:Icon subunit yellow.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''blue subunit''' | |||
| [[File:Icon subunit blue.png|x24px|baseline|link=]] Test text | |||
| | |||
| '''green subunit''' | |||
| [[File:Icon subunit green.png|x24px|baseline|link=]] Test text | |||
| | |||
| | |||
| | |||
|} | |||
</noinclude> |
Revision as of 16:36, 25 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 | ![]() |