Difference between revisions of "Template talk:Sic"

From Team Fortress Wiki
Jump to: navigation, search
(I figured it out)
m
Line 18: Line 18:
 
:::I figured it out. Both lang incompletes should be <code>{{tooltip|<b>here (with sic)</b>|then normal {{tl|lang}} here</code>.<br><br>
 
:::I figured it out. Both lang incompletes should be <code>{{tooltip|<b>here (with sic)</b>|then normal {{tl|lang}} here</code>.<br><br>
 
:::Example:<br><br>
 
:::Example:<br><br>
:::<code><nowiki><sup>{{tooltip|{{lang incomplete|pt-br=[|force=pt-br}}Obrigado!{{lang incomplete|pt-br=]|force=pt-br}}|{{lang incomplete|en=The preceding text has been transcribed is in Brazilian Portuguese.|force=en}}}}</sup></nowiki></code>
+
:::<code><nowiki><sup>{{tooltip|{{lang incomplete|pt-br=[|force=pt-br}}Obrigado!{{lang incomplete|pt-br=]|force=pt-br}}|{{lang incomplete|en=The preceding text is in Brazilian Portuguese.|force=en}}}}</sup></nowiki></code>
 
:::<br><br>generates<br><br>
 
:::<br><br>generates<br><br>
 
:::<code><sup>{{tooltip|{{lang incomplete|pt-br=[|force=pt-br}}Obrigado!{{lang incomplete|pt-br=]|force=pt-br}}|{{lang incomplete|en=The preceding text has been transcribed is in Brazilian Portuguese.|force=en}}}}</sup></code>
 
:::<code><sup>{{tooltip|{{lang incomplete|pt-br=[|force=pt-br}}Obrigado!{{lang incomplete|pt-br=]|force=pt-br}}|{{lang incomplete|en=The preceding text has been transcribed is in Brazilian Portuguese.|force=en}}}}</sup></code>
 
:::<br><br>
 
:::<br><br>
 
:::However, I think square brackets for all languages is better, so I have removed both lang incomplete entirely.
 
:::However, I think square brackets for all languages is better, so I have removed both lang incomplete entirely.
:::<br/>[[User:Tiagoquix|<font color="#1e90ff">Tiagoquix</font>]] ([[User talk:Tiagoquix|<font color="#19c819">talk</font>]]) 04:01, 28 June 2024 (UTC)
+
:::<br/>[[User:Tiagoquix|<font color="#1e90ff">Tiagoquix</font>]] ([[User talk:Tiagoquix|<font color="#19c819">talk</font>]]) 04:03, 28 June 2024 (UTC)

Revision as of 04:03, 28 June 2024

Protected page.

Any chance we can get this page unprotected again, no way to add translations atm. Zeklyn (talk) 20:12, 18 April 2019 (UTC)

Yessir~ — Tark lm(pt-br) 20:36, 18 April 2019 (UTC)
Thanks! :D Zeklyn (talk) 20:41, 18 April 2019 (UTC)

Add parenthesis to tooltip

I'm trying to make all the sup text a tooltip instead of just the "sic" part, but I'm not able to. It's missing the end parenthesis after my edits.
Here's the diff of what I did: https://wiki.teamfortress.com/w/index.php?title=User%3ATiagoquix%2FSandbox&type=revision&diff=3730615&oldid=3730614
Is there something I am missing?
Any help is appreciated.
Tiagoquix (talk) 09:54, 27 June 2024 (UTC)

You close off the {{lang}}, then add the closing parenthesis, then close off the tooltip. The closing parenthesis is inside the tooltip. Simply turn }}}} at the end into }} and turn the ending }}{{lang incomplete into }}}}{{lang incomplete. Also note that the nowiki tags for the parenthesis are not necessary, as they function fine without.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 12:24, 27 June 2024 (UTC)
Doing the way you mentioned goes against my initial idea of also having the closing parathensis inside the tooltip itself. The current way should work, but for some reason the closing paranthesis is not rendered.
Tiagoquix (talk) 03:32, 28 June 2024 (UTC)
I figured it out. Both lang incompletes should be {{tooltip|here (with sic)|then normal {{lang}} here.

Example:

<sup>{{tooltip|{{lang incomplete|pt-br=[|force=pt-br}}Obrigado!{{lang incomplete|pt-br=]|force=pt-br}}|{{lang incomplete|en=The preceding text is in Brazilian Portuguese.|force=en}}}}</sup>


generates

[Obrigado!]


However, I think square brackets for all languages is better, so I have removed both lang incomplete entirely.

Tiagoquix (talk) 04:03, 28 June 2024 (UTC)