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...") |
|||
(One intermediate revision by the same user not shown) | |||
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== | ||
Line 5: | Line 5: | ||
{{ParseRolloverText|{{RolloverText|作曲|Sakkyoku}}}} | {{ParseRolloverText|{{RolloverText|作曲|Sakkyoku}}}} | ||
+ | |||
+ | {{TODO}} | ||
+ | Make this work - [[Shinobi Original Soundtrack]] -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 15:37, 18 December 2022 (EST) |
Latest revision as of 16:38, 18 December 2022
Template:RolloverText is interpreted as HTML when put through templates. This template gets the non-translated text.
Examples
{{ParseRolloverText|{{RolloverText|作曲|Sakkyoku}}}}
作曲
This task is unfinished This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of Sega Retro:Todo until this message is removed. |
Make this work - Shinobi Original Soundtrack -Black Squirrel (talk) 15:37, 18 December 2022 (EST)