Difference between revisions of "Template:Upperscript"

From Dwaia Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><span style="position:relative;width:fit-content;">{{{bottom_text|bottom text}}}<span style="position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);">...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="position:relative;width:fit-content;">{{{bottom_text|bottom text}}}<span style="position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);">{{{top_text|top}}}</span></span></includeonly><noinclude>
+
<includeonly><span style="position:relative;width:fit-content;">{{{bottom_text|bottom text}}}<span style="position:absolute;top:-100%;left:0%;transform:translate({{{x|0}}}%,{{{y|0}}}%);">{{{top_text|top}}}</span></span></includeonly><noinclude>
 
Example:
 
Example:
 
<pre>
 
<pre>
Line 8: Line 8:
  
 
Can I get a {{Upperscript|bottom_text = boy|top_text = ass}} please?
 
Can I get a {{Upperscript|bottom_text = boy|top_text = ass}} please?
 +
 +
Now also has a positioning system:
 +
 +
<pre>
 +
Can I get a {{Upperscript|bottom_text = boy|top_text = ass|x=-55|y=20}} please?
 +
</pre>
 +
 +
produces:
 +
 +
Can I get a {{Upperscript|bottom_text = boy|top_text = ass|x=-55|y=20}} please?
 +
 +
Note that higher values for x are further to the right, and higher values for y are further down. Thus, a negative value for x moves the text to the left, for example.
 +
 +
 +
Can be nested:
 +
 +
<pre>
 +
Can I get a {{Upperscript|bottom_text = ass|top_text = {{Upperscript|bottom_text = boy|top_text = {{Upperscript|bottom_text = coc|top_text = {{Upperscript|bottom_text = dog|top_text = {{Upperscript|bottom_text = egg|top_text = {{Upperscript|bottom_text = fuk|top_text = gremscro|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}} please?
 +
</pre>
 +
 +
produces:
 +
 +
 +
 +
 +
 +
Can I get a {{Upperscript|bottom_text = ass|top_text = {{Upperscript|bottom_text = boy|top_text = {{Upperscript|bottom_text = coc|top_text = {{Upperscript|bottom_text = dog|top_text = {{Upperscript|bottom_text = egg|top_text = {{Upperscript|bottom_text = fuk|top_text = gremscro|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}} please?
 +
 +
 +
 +
 +
 +
 +
 +
 +
Can be combined with other templates for surprising effects:
 +
<pre>
 +
Can I get a {{Upperscript|bottom_text = n|top_text = {{Spin|~}}|y=30}} please?
 +
</pre>
 +
 +
Can I get a {{Upperscript|bottom_text = n|top_text = {{Spin|~}}|y=30}} please?
 +
 +
 +
 +
 +
 +
[[Category:Templates]]
 +
 +
 
</noinclude>
 
</noinclude>

Latest revision as of 20:36, 17 April 2019

Example:

Can I get a {{Upperscript|bottom_text = boy|top_text = ass}} please?

produces:

Can I get a boyass please?

Now also has a positioning system:

Can I get a {{Upperscript|bottom_text = boy|top_text = ass|x=-55|y=20}} please?

produces:

Can I get a boyass please?

Note that higher values for x are further to the right, and higher values for y are further down. Thus, a negative value for x moves the text to the left, for example.


Can be nested:

Can I get a {{Upperscript|bottom_text = ass|top_text = {{Upperscript|bottom_text = boy|top_text = {{Upperscript|bottom_text = coc|top_text = {{Upperscript|bottom_text = dog|top_text = {{Upperscript|bottom_text = egg|top_text = {{Upperscript|bottom_text = fuk|top_text = gremscro|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}}|x=-55|y=20}} please?

produces:



Can I get a assboycocdogeggfukgremscro please?





Can be combined with other templates for surprising effects:

Can I get a {{Upperscript|bottom_text = n|top_text = {{Spin|~}}|y=30}} please?

Can I get a n~ please?