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

User:Evon R'al/Sandbox: Difference between revisions

From EVE University Wiki
m Template being worked on: Coding and testing
m Coding and testing
 
(74 intermediate revisions by 2 users not shown)
Line 2: Line 2:
== Template being worked on ==
== Template being worked on ==
Original:<br>
Original:<br>
text before{{Ship|Megathron Navy Issue}} text after.<br>
text before original {{Ship|Redeemer|box}} text after original.<br>
Line after
Line after original.


Draft:<br>
Draft:<br>
text before {{User:Evon_R'al/Draft|mode= tooltip}} text after.<br>
text before draft {{:User:Evon R'al/Draft|Redeemer|box}} text after draft.<br>
<!-- {{User:Evon R'al/Sandbox template}} -->
Line after draft.
Line after


{{#css:
== Problem ==
.test table {
=== Qvar dar'zanar problem ===
  /* width: 100%; */
}
 
/* Ship image style */
.test td.sbtt-image {
  position: relative;
  padding-right: 5px;
  vertical-align: top;
}
 
.test div.sbtt-image {
  position: relative;
  top: 2px;
}
 
.test .sbtt-techcornersmall {
  position: absolute;
  top: 0px;
  left: 1px;
  width: 16px;
  height: 16px;
}
 
/* Header */
.test .sbtt-header {
  margin-bottom: 5px;
  border-bottom: 1px solid #272727;
  padding-bottom: 5px;
  text-align: center;
}
 
.test .sbtt-header .shipname {
  color: white;
  font-family: trebuchet MS;
  font-size: 16px;
  font-variant: small-caps;
  height: 20px;
  line-height: 15px;
}
 
.test .sbtt-header .category {
  font-size: 11px;
  height: 10px;
  line-height: 10px;
}
 
/* Highlights */
.test div.sbtt-highlights {
  padding-bottom: 5px;
}
 
.test .sbtt-highlights div {
  display: block;
  color: khaki;
  font-size: 10px;
  height: 10px;
  line-height: 12px;
}
 
/* Attributes */
.test div.sbtt-attributes {
  float: left;
  width: 170px;
}
 
.test .sbtt-attributes div {
  display: inline-block;
  float:left;
  margin-right: 3px;
  padding-right: 3px;
  color: #9E8F75;
  font-size: 10px;
  height: 13px;
  line-height: 15px;
}
 
}}
 
<div class="test">
<table>
  <tr>
  <td class="sbtt-image"><div class="sbtt-image">[[Image:Megathron Navy Issue.jpg|80x80px]]</div><div class="sbtt-techcornersmall">[[Image:CornerTFs.png]]</div></td>
  <td>
    <div class="sbtt-header">
    <div class="shipname">Megathron Navy Issue</div>
    <div class="category"><span style="color: orange;">Faction Battleships</span> Megathron Class</div>
    </div>
    <div class="sbtt-highlights">
    <div>[[Image:Icon_highlights.png|10x10px]]High Amount of High Slots</div>
    <div>[[Image:Icon_highlights.png|10x10px]]High Amount of LowSlots</div>
    </div>
    <div class="sbtt-attributes">
    <div>[[Image:icon_hi_slot.png|15x15px]]8(1/7)</div>
    <div>[[Image:icon_mid_slot.png|15x15px]]4</div>
    <div>[[Image:icon_low_slot.png|15x15px]]8</div>
    <div>[[Image:icon_powergrid.png|15x15px]]16,275 MW</div>
    <div>[[Image:icon_cpu.png|15x15px]]630tf</div>
    <div>[[Image:Icon_velocity.png|15x15px]]130 m/s</div>
    <div>[[Image:Icon_capacity.png|15x15px]]840 m&#179;</div>
    </div>
  </td>
  </tr>
<table>
</table>
</div>
 
 
<div class="test">
<table>
  <tr>
  <td class="sbtt-image"><div class="sbtt-image">[[Image:Megathron Navy Issue.jpg|80x80px]]</div><div class="sbtt-techcornersmall">[[Image:CornerTFs.png]]</div></td>
  </tr>
  <tr>
  <td class="sbtt-image"><div class="sbtt-image">[[Image:Megathron Navy Issue.jpg|80x80px]]</div><div class="sbtt-techcornersmall">[[Image:CornerTFh.png|16x16px]]</div></td>
  </tr>
</table>
</div>
 
== Qvar dar'zanar ==
There is a problem here. Using either ' or ʹ. They appear to look the same but they are not. The ʹ is not on my keyboard and I have not found a alt code yet so I had to copy/paste it.
There is a problem here. Using either ' or ʹ. They appear to look the same but they are not. The ʹ is not on my keyboard and I have not found a alt code yet so I had to copy/paste it.
* [[User:Qvar dar'zanar]] - [[:File:Qvar dar'zanar.jpg]]
* [[User:Qvar dar'zanar]] - [[:File:Qvar dar'zanar.jpg]]
* [[User:Qvar darʹzanar]] - [[:File:Qvar darʹzanar.jpg]]
* [[User:Qvar darʹzanar]] - [[:File:Qvar darʹzanar.jpg]]


== Test ==
=== {{T|Ship}} problem ===
<onlyinclude>
Does this, {{Tooltip|test|tooltip text}} stay inline?<br>
<p>Does this, {{Tooltip|test|tooltip text}} stay inline?</p>
<p>Does this, {{Tooltip|test|tooltip text}} stay inline?</p>


Basic:<br>
Basic:<br>
Line 146: Line 27:


Inside a table:<br>
Inside a table:<br>
{| style="width: 50%;"
{| class="wikitable" style="width: 50%;"
|+ Does this, {{Ship|Redeemer}} stay inline?
|+ Does this, {{Ship|Redeemer}} stay inline?
|-
|-
Line 153: Line 34:


Inside a span:<br>
Inside a span:<br>
<span>Does this, {{Ship|Redeemer}} stay inline?</span>
Does <span>this, {{Ship|Redeemer}} stay</span> inline?


Inside the Co template:<br>
Inside the Co template:<br>
Line 159: Line 40:


Inside p:<br>
Inside p:<br>
<p style="display: inline;">Does this, {{Ship|Redeemer}} stay inline?</p>
<p>Does this, {{Ship|Redeemer}} stay inline?</p>


{{Box||The {{T|Ship}} template does a transclusion of the ship page with a mode parameter. If the mode parameter is anything else then box, then {{T|ShipBoxTooltip}} is called. Which, in turn, calls {{T|Tooltip}}. {{T|Ship}} is also used when there are variations of a ship. It is used in the source of the parameter variations. Here the results appear to be correct (See e.g. [[Harpy]])<br>
{{Box|The {{T|Ship}} template does a transclusion of the ship page with a mode parameter. If the mode parameter is anything else then box, then {{T|ShipBoxTooltip}} is called. Which, in turn, calls {{T|Tooltip}}. {{T|Ship}} is also used when there are variations of a ship. It is used in the source of the parameter variations. Here the results appear to be correct (See e.g. [[Harpy]])<br>
When the sentence with the ship template is inside another element there is no problem. Hmm does not do so well inside <nowiki><p></nowiki>.}}
When the sentence with the ship template is inside another element there is no problem. Hmm does not do so well inside <nowiki><p></nowiki>.}}
</onlyinclude>


== Test ==


{{Imageserver|types|82375|icon|size= 64}}


----
'''subst and not'''
date= <nowiki>{{#time: F Y}}</nowiki> - date= {{#time: F Y}} (The present)<br>
date= <nowiki>{{subst:#time: F Y}}</nowiki> - date= June 2021 (At time of saving the edit)
'''Red Giant Wormholes''' table
Original:
{| class="wikitable" style="text-align:center;"
| rowspan="6" style="padding:0px;" | [[File:WH_Red_Giant.jpg|180px]]
|'''Effects'''
|'''Class 1'''
|'''Class 2'''
|'''Class 3'''
|'''Class 4'''
|'''Class 5'''
|'''Class 6'''
|- style="background:#3B0B0B;"
|'''Heat Damage'''
|&#43;15%
|&#43;22%
|&#43;29%
|&#43;36%
|&#43;43%
|&#43;50%
|- style="background:#0A2A0A;"
|'''Overheat Effect Bonus'''
|&#43;30%
|&#43;44%
|&#43;58%
|&#43;72%
|&#43;86%
|&#43;100%
|}
"Cleaned up"
{| class="wikitable" style="text-align:center;"
| rowspan="6" style="padding: 0px;" | [[File:WH_Red_Giant.jpg|180px]]
! Effects
! Class 1
! Class 2
! Class 3
! Class 4
! Class 5
! Class 6
|- style="background:#3B0B0B;"
! Heat Damage
| +15%
| +22%
| +29%
| +36%
| +43%
| &#43;50%
|- style="background:#0A2A0A;"
! Overheat Effect Bonus
| 30%
| 44%
| 58%
| 72%
| 86%
| 100%
|}


[[atron]], [[atron]]s


'''Indent behavior'''
[https://www.kpn.com test]


;Test 1
:Test 2
; Test 3 : Test 4<br>Test 5
; Test 6 : Test 7<br>
Test 8


[https://www.google.com test]


''' template Co'''
== Warp parser error ==
Original code
: <math>
\begin{align}
v & = k * e^{jt}\\
d & = \int_{0}^{t}k*e^{j⋅dx}\,dx = \frac{k*e^{jt}}{j}\\
& = \frac{v}{j}
\end{align}
</math>


{{Co|red|This text is red}}<br>
adapted code
{{Co|red||This text is also red}}<br>
: <math>
{{Co||red|Here the background is red}}
\begin{align}
v & = k * e^{jt} \\
d & = \int_{0} ^ {t} k * e ^ { j \sdot dx \, dx = \frac { k * e  ^ {jt} } {j} } \\
& = \frac {v} {j}
\end{align}
</math>




'''NAMESPACE test'''
=== subst and not ===
 
date= <nowiki>{{#time: F Y}}</nowiki> - date= {{#time: F Y}} (The present)<br>
* <nowiki>{{ #if: {{NAMESPACE}} | page | article }} or section</nowiki> - {{ #if: {{NAMESPACE}} | page | article }} or section
date= <nowiki>{{subst:#time: F Y}}</nowiki> - date= June 2021 (At time of saving the edit)






'''Note box'''
=== MessageBox inside Note box ===


{{Note box|italics= no
{{Note box|italics= no
|While running this mission inside Minmatar Republic space.
|While running this mission inside Minmatar Republic space.
Message when jumping back to the agents solar system
Message when jumping back to the agents solar system
{{MessageBox|[[File:Helpicon.png|20px|middle|link=|alt= question mark]] Hand over contraband?
{{MessageBox|[[File:Helpicon.png|20px|middle|link=|alt=]] Hand over contraband?
|Minmatar Republic has discovered the contraband which you are transporting. If you decline to hand it over, your ship will be destroyed. Do not be alarmed, while we are waiting for for your response, one of our number will target, warp scramble and stasis web you – for your safety ….<!-- Some part of message missing -->
|Minmatar Republic has discovered the contraband which you are transporting. If you decline to hand it over, your ship will be destroyed. Do not be alarmed, while we are waiting for for your response, one of our number will target, warp scramble and stasis web you – for your safety ….<!-- Some part of message missing -->
}}
}}
Line 269: Line 96:




'''CSS testing'''
=== CSS testing ===
{{#css:
{{#css:
   ul.checkedList, ul.uncheckedList {
   ul.checkedList, ul.uncheckedList {
Line 311: Line 138:




"Complicated" table
=== "Complicated" table ===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 460: Line 287:
| 333 333
| 333 333
|}
|}
== Math ==
* [[UniWiki:Editing commands visual guide#Math]]
* [[:Wikipedia:MathML]]
* [[:Wikipedia:Wikipedia:Manual_of_Style/Mathematics]]
* [[:Wikipedia:Extension:SimpleMathJax]]
* [[Wikipedia:Help:Displaying a formula]]
* [https://docs.mathjax.org/en/latest/index.html MathJax]
=== MathML ===
{{code|<nowiki><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>a</mi><msup><mi>x</mi><mn>2</mn></msup>
  <mo>+</mo> <mi>b</mi><mi>x</mi>
  <mo>+</mo> <mi>c</mi> <mo>=</mo> <mn>0</mn>
</math></nowiki>}}
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>a</mi><msup><mi>x</mi><mn>2</mn></msup>
  <mo>+</mo> <mi>b</mi><mi>x</mi>
  <mo>+</mo> <mi>c</mi> <mo>=</mo> <mn>0</mn>
</math>
Does not work
=== TeX ===
{{Code|<nowiki><math>
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
</math></nowiki>}}
<math>
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
</math>
{{Code|<nowiki><math display=block>\int_0^\pi \sin x\,dx.</math></nowiki>}}
<math display="block">\int_0^\pi \sin x\,dx.</math>
{{Code|<nowiki><math display=block>\sum_{n=1}^\infty 1/n^2 = \pi^2/6</math></nowiki>}}
<math display="block">\sum_{n=1}^\infty 1/n^2 = \pi^2/6</math>
[[Crystal damage]]
{{Code|<nowiki>:<code>Life Expectancy (in cycles) = Structure Hitpoints / Volatility / Volatility Damage</code></nowiki>}}
:<code>Life Expectancy (in cycles) = Structure Hitpoints / Volatility / Volatility Damage</code>
{{Code|<nowiki>:<math>\text{Life Expectancy (in cycles)} = \text{Structure Hitpoints} / \text{Volatility} / \text{Volatility Damage}</math></nowiki>}}
:<math>\text{Life Expectancy (in cycles)} = \text{Structure Hitpoints} / \text{Volatility} / \text{Volatility Damage}</math>