Difference between revisions of "ParseRolloverText"
From Sega Retro
(Created page with "<includeonly>{{#if:{{#pos:{{{1|}}}|span}}|{{#vardefine:PRTStart|{{#pos:{{{1|}}}|>}}}} {{#vardefine:PRTEnd|{{#pos:{{#sub:{{{1|}}}|1}}|<}}}}{{#sub:{{{1|}}}|{{#expr:{{#var:PRTSta...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{#pos:{{{1|}}}|span}}|{{#vardefine: | + | <includeonly>{{#if:{{#pos:{{{1|}}}|span}}|{{#vardefine:PRTValue|{{#replace:{{{1|}}}|style="border-bottom: 1px dotted #2BA6CB; padding-bottom: 1px;|}}}}{{#vardefine:PRTStart|{{#pos:{{#var:PRTValue}}|>}}}} {{#vardefine:PRTEnd|{{#pos:{{#sub:{{#var:PRTValue}}|1}}|<}}}}{{#sub:{{#var:PRTValue}}|{{#expr:{{#var:PRTStart}}+1}}|{{#expr:{{#var:PRTEnd}}-{{#var:PRTStart}}}}}}|}}{{clearvar|PRTStart|PRTEnd|PRTValue}}</includeonly><noinclude>[[Template:RolloverText]] is interpreted as HTML when put through templates. This template gets the non-translated text. |
==Examples== | ==Examples== |
Revision as of 14:59, 17 December 2022
Template:RolloverText is interpreted as HTML when put through templates. This template gets the non-translated text.
Examples
{{ParseRolloverText|{{RolloverText|作曲|Sakkyoku}}}}
作曲