Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:ElementDisplay: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
Created page with "<includeonly>{{#switch: {{lc:{{{1}}}}} | holy = {{#if:{{{2|}}}|Category:Holy elements}}{{ItemLink|{{{1|}}}}} | fire = {{#if:{{{2|}}}|Category:Fire elements}}{{ItemLink|{{{1|}}}}} | plant = {{#if:{{{2|}}}|Category:Plant elements}}{{ItemLink|{{{1|}}}}} | poison = {{#if:{{{2|}}}|Category:Poison elements}}{{ItemLink|{{{1|}}}}} | dark = {{#if:{{{2|}}}|Category:Dark elements}}{{ItemLink|{{{1|}}}}} | electric = {{#if:{{{2|}}}|Category:Electric elements}}..."
 
wgg>Cadaei
added missing elements
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1}}}}}
<includeonly>{{#switch: {{lc:{{{1}}}}}
| earth = {{#if:{{{2|}}}|[[Category:Earth elements]]}}{{ItemLink|{{{1|}}}}}
| electric = {{#if:{{{2|}}}|[[Category:Electric elements]]}}{{ItemLink|{{{1|}}}}}
| dark = {{#if:{{{2|}}}|[[Category:Dark elements]]}}{{ItemLink|{{{1|}}}}}
| fire = {{#if:{{{2|}}}|[[Category:Fire elements]]}}{{ItemLink|{{{1|}}}}}
| holy = {{#if:{{{2|}}}|[[Category:Holy elements]]}}{{ItemLink|{{{1|}}}}}
| holy = {{#if:{{{2|}}}|[[Category:Holy elements]]}}{{ItemLink|{{{1|}}}}}
| fire = {{#if:{{{2|}}}|[[Category:Fire elements]]}}{{ItemLink|{{{1|}}}}}
| ice = {{#if:{{{2|}}}|[[Category:Ice elements]]}}{{ItemLink|{{{1|}}}}}
| plant = {{#if:{{{2|}}}|[[Category:Plant elements]]}}{{ItemLink|{{{1|}}}}}
| plant = {{#if:{{{2|}}}|[[Category:Plant elements]]}}{{ItemLink|{{{1|}}}}}
| poison = {{#if:{{{2|}}}|[[Category:Poison elements]]}}{{ItemLink|{{{1|}}}}}
| poison = {{#if:{{{2|}}}|[[Category:Poison elements]]}}{{ItemLink|{{{1|}}}}}
| dark = {{#if:{{{2|}}}|[[Category:Dark elements]]}}{{ItemLink|{{{1|}}}}}
| water = {{#if:{{{2|}}}|[[Category:Water elements]]}}{{ItemLink|Water (Element)|{{{1|}}}}}
| electric = {{#if:{{{2|}}}|[[Category:Electric elements]]}}{{ItemLink|{{{1|}}}}}
| #default = {{{1|}}}
| #default = {{{1|}}}
}}</includeonly><noinclude>Displays an element type. If the type is known, [[Template:ItemLink]] is used, if also the second argument is not empty, the category of the element type is added to the page.
}}</includeonly><noinclude>Displays an element type. If the type is known, [[Template:ItemLink]] is used, if also the second argument is not empty, the category of the element type is added to the page.

Revision as of 22:17, 6 November 2023

Displays an element type. If the type is known, Template:ItemLink is used, if also the second argument is not empty, the category of the element type is added to the page.

{{ElementDisplay|fire}}

fire