Difference between revisions of "Template:Clonestate"

From EVE University Wiki
Jump to: navigation, search
(orphan control/linebreak prevention)
m (Update link.)
 
(3 intermediate revisions by 3 users not shown)
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/>
+
<onlyinclude>{{#switch: {{lc: {{{1}}} }}
<onlyinclude>{{
+
|omega = [[image:omega.png|16px|link=]]&nbsp;[[Clone_states#Omega_clone|{{{2|Omega clone}}}]]
#switch: {{{1}}}
+
|alpha = [[image:alpha.png|16px|link=]]&nbsp;[[Clone_states#Alpha_clone|{{{2|Alpha 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}}}]]
 
 
| ''No clone state selected!''
 
| ''No clone state selected!''
 
}}</onlyinclude>
 
}}</onlyinclude>
==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
 
{{
 
#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!
 
}}
 

Latest revision as of 11:52, 6 June 2023

No clone state selected!

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?)