Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Clonestate: Difference between revisions

Template page
Telinchei (talk | contribs)
basic functional?
Telinchei (talk | contribs)
m tidyup. Apparently my safesubst did not go as planned, it seems to control defaults varable/params?
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/>
:The following code ''only'' will be transcribed. It may not appear with the usual parameters and default to some unusual state:<br/><br/>
<onlyinclude>{{
<onlyinclude>{{
#switch: {{{1}}}
#switch: {{{1}}}
|omega = [[image:omega.png|16px|link=]] [[Clone_states#Omega_clones|{{{2|Omega clone}}}]]
|omega = [[image:omega.png|16px|link=]] [[Clone_states#Omega_clones|{{{2|Omega clone}}}]]
|alpha = [[image:alpha.png|16px|link=]] [[Clone_states#Alpha_clones|{{{2|Alpha clone}}}]]
|alpha = [[image:alpha.png|16px|link=]] [[Clone_states#Alpha_clones|{{{2|Alpha clone}}}]]
| No clone state selected!
| ''No clone state selected!''
}}</onlyinclude>
}}</onlyinclude>
==Documentation==
==Documentation==
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.
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
;Example code
<pre>{{Template:Clonestate|omega|test}}</pre>
<pre>{{Template:Clonestate|omega|test}}</pre>
{{#a:
;Result
|[[image:omega.png|16px|link=]] [[Clone_states#Omega_clones|omega]]
{{
|[[image:alpha.png|16px|link=]] [[Clone_states#Alpha_clones|omega]]
#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!
}}
}}