Template:IXN/field-tag: Difference between revisions
Appearance
m Bracket parameter |
m simplify code; re-code markup to not have to call Template:TTS |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude>{{TTS|html=abbr|class={{{class|}}}|title={{#if:{{{tradition2|}}}| {{{tradition2|}}} | {{int:hue-tooltip-tradition-{{{tradition-message|}}}/{{{lang|}}}}} }} |E={{#if:{{{tradition-E|}}}| {{{tradition-E|}}} | {{ | <onlyinclude>{{TTS|html=abbr|class=field-tag {{{class|}}}|title={{#if:{{{tradition2|}}}| {{{tradition2|}}} | {{int:hue-tooltip-tradition-{{{tradition-message|}}}/{{{lang|}}}}} }} |E={{#if:{{{tradition-E|}}}| {{{tradition-E|}}} | {{MediaWiki:hue-ixn-entity-{{{tradition|}}}}} }} |{{#if:{{{Bracket|}}}|(}}{{#switch:{{{ParameterThatShouldBeEmpty|}}} | {{{trad|}}}{{{tradition-message|}}} = {{{tradition|}}} | {{{trad|}}}{{{tradition|}}} = {{int:hue-philosophy-{{{tradition-message|}}}/{{{lang|}}}}} | #default = {{{trad|}}} }}{{#if:{{{Bracket|}}}|)}}| }} | ||
</onlyinclude><!-- | </onlyinclude><!-- | ||
{{TTS|html={{{html|abbr}}}|NoBracket=y|class={{{class|}}} | {{TTS|html={{{html|abbr}}}|NoBracket=y|class=field-tag {{{class|}}} | ||
|title={{#if:{{{tradition2|}}}| {{{tradition2|}}} | {{int:hue-tooltip-tradition-{{{tradition-message|}}}/{{{lang|}}}}} }} | |title={{#if:{{{tradition2|}}}| {{{tradition2|}}} | {{int:hue-tooltip-tradition-{{{tradition-message|}}}/{{{lang|}}}}} }} | ||
|E={{#if:{{{tradition-E|}}}| {{{tradition-E|}}} | {{ | |E={{#if:{{{tradition-E|}}}| {{{tradition-E|}}} | {{MediaWiki:hue-ixn-entity-{{{tradition|}}}}} }} | ||
|{{#if:{{{Bracket|}}}|(}}{{#switch:{{{ParameterThatShouldBeEmpty|}}} | |{{#if:{{{Bracket|}}}|(}}{{#switch:{{{ParameterThatShouldBeEmpty|}}} | ||
| {{{trad|}}}{{{tradition-message|}}} = {{{tradition|}}} | | {{{trad|}}}{{{tradition-message|}}} = {{{tradition|}}} | ||
| Line 15: | Line 15: | ||
| #default = {{{tradTTS|}}} | | #default = {{{tradTTS|}}} | ||
}} | }} | ||
}} --> | }} | ||
new version! test later | |||
<ins class="field-tag plainlinks {{{class|}}}"> | |||
<abbr class="trad tts" lang="{{{lang|zxx}}}" title="{{#if:{{{tradition2|}}}| {{{tradition2|}}} | {{int:hue-tooltip-tradition-{{{tradition|}}}/{{{lang|}}}}} }}"> | |||
<ruby data-arg-tradition="{{{tradition|}}}" data-arg-tts="{{{tts|}}}" data-arg-trad="{{{trad|}}}" data-arg-trad-tts="{{{tradTTS|}}}"> | |||
[[ | |||
{{#if:{{{tradition-E|}}}| {{{tradition-E|}}} | {{MediaWiki:hue-ixn-entity-{{{tradition|}}}}} }} | |||
| | |||
<span class="visual" lang="zxx" aria-hidden="true"> | |||
{{#switch:{{{ParameterThatShouldBeEmpty|}}} | |||
| {{{trad|}}}{{{tradition|}}} = {{int:hue-philosophy-{{{tradition|}}}/{{{lang|}}} }} | |||
| {{{trad|}}} = {{{tradition|}}} | |||
| #default = {{{trad|}}} | |||
}} | |||
</span> | |||
<rp class="bracket" aria-hidden="true"> (</rp> | |||
<rt class="aural"> | |||
{{#switch:{{{ParameterThatShouldBeEmpty|}}} | |||
| {{{tradTTS|}}}{{{tts|}}} = {{int:hue-philosophy-tts-{{{tradition|}}}/{{{lang|}}} }} | |||
| {{{tradTTS|}}} = {{{tts}}} | |||
| #default = {{{tradTTS|}}} | |||
}} | |||
</rt> | |||
<rp class="bracket" aria-hidden="true">)</rp> | |||
]] | |||
</ruby> | |||
</abbr>{{IXN/domain-spacer|{{{lang|en}}}}} | |||
</ins> | |||
--> | |||