Difference between revisions of "Template:Clonestate"

From EVE University Wiki
Jump to: navigation, search
m (dummy edit: last edit did not work. Icons may sometimes still be isolated from the link/text.)
m (Extract doc. Make switch case insensitive.)
Line 1: Line 1:
:The following code ''only'' will be transcribed. It may not appear with the usual parameters and default to some unusual state:<br/><br/>
+
<includeonly>{{#switch: {{lc: {{{1}}} }}
<onlyinclude>{{
 
#switch: {{{1}}}
 
 
|omega = [[image:omega.png|16px|link=]]&nbsp;[[Clone_states#Omega_clones|{{{2|Omega clone}}}]]
 
|omega = [[image:omega.png|16px|link=]]&nbsp;[[Clone_states#Omega_clones|{{{2|Omega clone}}}]]
 
|alpha = [[image:alpha.png|16px|link=]]&nbsp;[[Clone_states#Alpha_clones|{{{2|Alpha clone}}}]]
 
|alpha = [[image:alpha.png|16px|link=]]&nbsp;[[Clone_states#Alpha_clones|{{{2|Alpha clone}}}]]
 
| ''No clone state selected!''
 
| ''No clone state selected!''
}}</onlyinclude>
+
}}</includeonly>
==Documentation==
+
<noinclude>{{Documentation}}</noinclude>
This will place an icon about clone states and the relevant article link. Select either "alpha" or "omega". Text may be changed using parameter two. As the template is simple, no test cases are required.
 
 
 
;Example code
 
<pre>{{Template:Clonestate|omega|test}}</pre>
 
;Result (July 25)
 
{{
 
#switch: omega
 
|omega = [[image:omega.png|16px|link=]] [[Clone_states#Omega_clones|test]]
 
|alpha = [[image:alpha.png|16px|link=]] [[Clone_states#Alpha_clones|test]]
 
| No clone state selected!
 
}}
 

Revision as of 17:37, 16 April 2022

Template documentation (for the above template, sometimes hidden or invisible)
Description
This will place an icon about clone states and the relevant article link. Select either "alpha" or "omega". Text may be changed using parameter two.
Dependencies
uses:
Alpha.png Alpha.png
Omega.png Omega.png
Syntax
{{Clonestate|<state>|<alt text>}}
state - alpha or omega
alt text - Alternative text
Sample output
{{Clonestate|omega}}
gives ...

Omega.png Omega clone


{{Clonestate|omega|test}} line please ignore
gives ...

Omega.png test

line please ignore
Visit Template:Clonestate/doc to edit this text! (How does this work?) (Refresh this text - why?)