New mission: revamp the portals to make them look actually tolerable to the eye. They are currently placeholders as of now.
The Gold Network: Soyworld | SNCApedia | SoyPlace


I'm not dead, just inactive for the moment. Faggot (talk) 20:16, 9 April 2026 (UTC)

Template:3DOneFace: Difference between revisions

From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
 
Line 18: Line 18:
==================================================
==================================================
-->
-->
<templatestyles src="Template:3DOneFace/styles.css"/><span class="cc-scene" style="perspective: 600px; {{#if:{{{size|}}}|width: {{{size}}}px; height: {{{size}}}px; display: inline-flex; justify-content: center; align-items: center;}}"><span class="cc-axis" style="transform: rotateY(-90deg); transform-style: preserve-3d;"><span class="cc-axis {{#ifeq: {{{tilt-ud|no}}} | yes | {{#ifeq: {{{random|no}}} | yes | cc-rd | cc-sm }}-{{#ifexpr: {{{angle|30}}} <= 22 | 15 | {{#ifexpr: {{{angle|30}}} <= 37 | 30 | {{#ifexpr: {{{angle|30}}} <= 52 | 45 | {{#ifexpr: {{{angle|30}}} <= 75 | 60 | 90 }} }} }} }} }}" style="transform-style: preserve-3d; {{#ifeq: {{{tilt-ud|no}}} | yes | animation-duration: {{#ifeq: {{{random|no}}} | yes | 6 | 4 }}s; }}"><span class="cc-axis" style="transform: rotateY(90deg); transform-style: preserve-3d;"><span class="cc-axis" style="transform: rotateX(90deg); transform-style: preserve-3d;"><span class="cc-axis {{#ifeq: {{{tilt-lr|yes}}} | no | | {{#ifeq: {{{random|no}}} | yes | cc-rd | cc-sm }}-{{#ifexpr: {{{angle|30}}} <= 22 | 15 | {{#ifexpr: {{{angle|30}}} <= 37 | 30 | {{#ifexpr: {{{angle|30}}} <= 52 | 45 | {{#ifexpr: {{{angle|30}}} <= 75 | 60 | 90 }} }} }} }} }}" style="transform-style: preserve-3d; {{#ifeq: {{{tilt-lr|yes}}} | no | | animation-duration: {{#ifeq: {{{random|no}}} | yes | 7 | 4.3 }}s; }}"><span class="cc-axis" style="transform: rotateX(-90deg); transform-style: preserve-3d;"><span class="cc-side" style="transform-style: preserve-3d;">{{{1|Add something here...}}}</span></span></span></span></span></span></span></span><noinclude>
<templatestyles src="Template:3DOneFace/styles.css"/><span class="onef-scene" style="perspective: 600px; {{#if:{{{size|}}}|width: {{{size}}}px; height: {{{size}}}px; display: inline-flex; justify-content: center; align-items: center;}}"><span class="onef-axis" style="transform: rotateY(-90deg); transform-style: preserve-3d;"><span class="onef-axis {{#ifeq: {{{tilt-ud|no}}} | yes | {{#ifeq: {{{random|no}}} | yes | onef-rd | onef-sm }}-{{#ifexpr: {{{angle|30}}} <= 22 | 15 | {{#ifexpr: {{{angle|30}}} <= 37 | 30 | {{#ifexpr: {{{angle|30}}} <= 52 | 45 | {{#ifexpr: {{{angle|30}}} <= 75 | 60 | 90 }} }} }} }} }}" style="transform-style: preserve-3d; {{#ifeq: {{{tilt-ud|no}}} | yes | animation-duration: {{#ifeq: {{{random|no}}} | yes | 6s | 4s; animation-delay: {{#ifeq: {{{tilt-lr|yes}}} | no | 0s | -1s }} }}; }}"><span class="onef-axis" style="transform: rotateY(90deg); transform-style: preserve-3d;"><span class="onef-axis" style="transform: rotateX(90deg); transform-style: preserve-3d;"><span class="onef-axis {{#ifeq: {{{tilt-lr|yes}}} | no | | {{#ifeq: {{{random|no}}} | yes | onef-rd | onef-sm }}-{{#ifexpr: {{{angle|30}}} <= 22 | 15 | {{#ifexpr: {{{angle|30}}} <= 37 | 30 | {{#ifexpr: {{{angle|30}}} <= 52 | 45 | {{#ifexpr: {{{angle|30}}} <= 75 | 60 | 90 }} }} }} }} }}" style="transform-style: preserve-3d; {{#ifeq: {{{tilt-lr|yes}}} | no | | animation-duration: {{#ifeq: {{{random|no}}} | yes | 7s | 4s }}; }}"><span class="onef-axis" style="transform: rotateX(-90deg); transform-style: preserve-3d;"><span class="onef-side" style="transform-style: preserve-3d;">{{{1|Add something here...}}}</span></span></span></span></span></span></span></span><noinclude>


== Usage ==
== Usage ==
<code>Look at {{3DOneFace|'''this text'''|angle=45}} before continuing normally.</code>
<code>Look at {{3DOneFace|'''this text'''|angle=45}} before continuing normally.</code>


'''Default behavior.'''
'''Default behavior (Left/Right look only)'''
<pre>
<pre>
{{3DOneFace|Add something here...}}
{{3DOneFace|Add something here...}}
Line 29: Line 29:
{{3DOneFace|Add something here...}}
{{3DOneFace|Add something here...}}


'''Random Snapping (Up/Down + Left/Right)'''
'''Smooth Circular Rotation (Up/Down + Left/Right)'''
<pre>
{{3DOneFace
| tilt-ud = yes
| angle = 30
| 1 = Circular Motion!
}}
</pre>
{{3DOneFace
| tilt-ud = yes
| angle = 30
| 1 = Circular Motion!
}}
 
'''Nodding Only (Up/Down)'''
<pre>
<pre>
{{3DOneFace
{{3DOneFace
| tilt-lr = no
  | tilt-ud = yes
  | tilt-ud = yes
| random = yes
  | angle = 45
  | angle = 45
  | 1 = [[File:Hunky_edit.mp4|200px]]
  | 1 = Nodding Yes!
}}
}}
</pre>
</pre>
'''Test using a file.'''
{{3DOneFace
{{3DOneFace
| tilt-lr = no
  | tilt-ud = yes
  | tilt-ud = yes
| random = yes
  | angle = 45
  | angle = 45
  | 1 = [[File:Hunky_edit.mp4|200px]]
  | 1 = Nodding Yes!
}}
}}


'''Test using a text.'''
'''Random Snapping (Up/Down + Left/Right)'''
<pre>
<pre>
{{3DOneFace
{{3DOneFace
  | tilt-ud = yes
  | tilt-ud = yes
  | random = yes
  | random = yes
  | angle = 20
  | angle = 45
| 1 = [[File:Hunky_edit.mp4|200px]]
}}
}}
</pre>
</pre>
Line 59: Line 72:
  | tilt-ud = yes
  | tilt-ud = yes
  | random = yes
  | random = yes
  | angle = 20
  | angle = 45
| 1 = [[File:Hunky_edit.mp4]]
}}
}}



Latest revision as of 20:15, 18 April 2026

Add something here...

Look at this text before continuing normally.

Default behavior (Left/Right look only)

{{3DOneFace|Add something here...}}

Add something here...

Smooth Circular Rotation (Up/Down + Left/Right)

{{3DOneFace
 | tilt-ud = yes
 | angle = 30
 | 1 = Circular Motion!
}}

Circular Motion!

Nodding Only (Up/Down)

{{3DOneFace
 | tilt-lr = no
 | tilt-ud = yes
 | angle = 45
 | 1 = Nodding Yes!
}}

Nodding Yes!

Random Snapping (Up/Down + Left/Right)

{{3DOneFace
 | tilt-ud = yes
 | random = yes
 | angle = 45
 | 1 = [[File:Hunky_edit.mp4|200px]]
}}


Parameters

[edit source]
  • 1 = Content to display.
  • tilt-lr = Look left/right. yes or no. (Default: yes)
  • tilt-ud = Nod up/down. yes or no. (Default: no)
  • angle = Number value for max rotation angle. (Default: 30)
  • random = yes or no. Snaps suddenly instead of smooth swinging. (Default: no)
  • size = Optional hardcoded width/height box size.