Difference between revisions of "Template:Linktext"
Jump to navigation
Jump to search
imported>Visviva (allow delimiter.) |
imported>Visviva (some improvements (I hope), tested at [[User:Visviva/) |
||
| Line 1: | Line 1: | ||
| − | <noinclude> | + | <noinclude>Links text, word by word. The link target defaults to Wiktionary. |
| − | + | If you don't want to link to Wiktionary entries, set '''pref''' equal to some other value, such as your favorite interlanguage prefix or "c" for Commons. | |
| − | {{ | + | Use the arguments '''n1''', '''n2''', '''n3''', etc. to specify items that should not be linked. Regular spaces will be removed from the beginning and end of these; if you must have spaces, use &nbsp; instead. |
| + | |||
| + | If you want to have a delimiter, such as ",&nbsp;", appear between links, specify the delimiter with '''lim'''. | ||
| + | |||
| + | If desired, you can specify the language code with '''lang'''. | ||
| + | |||
| + | Since these are normally definitional links, they are displayed without underlines by default. Change this by setting '''underline''' to "yes". | ||
| + | |||
| + | |||
| + | Examples: | ||
| + | |||
| + | :<pre>{{User:Visviva/Test5|This| is| a| test}}</pre> | ||
| + | |||
| + | :{{User:Visviva/Test5|This| is| a| test}} | ||
| + | |||
| + | :<pre>{{User:Visviva/Test5|This| is|n2=&nbsp;not| a| test}}</pre> | ||
| + | |||
| + | :{{User:Visviva/Test5|This| is|n2= not| a| test}} | ||
[[Category:Interwiki link templates|Linktext]] | [[Category:Interwiki link templates|Linktext]] | ||
| − | + | </noinclude><includeonly>{{Span| class="{{#ifeq:{{{underline}}}|yes||nounderlines}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"}} }} [[{{{pref|wikt}}}:{{{1}}}|{{{1}}}]]{{{n1|}}}{{#if: {{{2|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{2}}}|{{{2}}}]]}}{{{n2|}}}{{#if: {{{3|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{3}}}|{{{3}}}]]}}{{{n3|}}}{{#if: {{{4|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{4}}}|{{{4}}}]]}}{{{n4|}}}{{#if: {{{5|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{5}}}|{{{5}}}]]}}{{{n5|}}}{{#if: {{{6|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{6}}}|{{{6}}}]]}}{{{n6|}}}{{#if: {{{7|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{7}}}|{{{7}}}]]}}{{{n7|}}}{{#if: {{{8|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{8}}}|{{{8}}}]]}}{{{n8|}}}{{#if: {{{9|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{9}}}|{{{9}}}]]}}{{{n9|}}}{{#if: {{{10|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{10}}}|{{{10}}}]]}}{{{n10|}}}{{#if: {{{11|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{11}}}|{{{11}}}]]}}{{{n11|}}}{{#if: {{{12|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{12}}}|{{{12}}}]]}}{{{n12|}}}{{#if: {{{13|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{13}}}|{{{13}}}]]}}{{{n13|}}}{{#if: {{{14|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{14}}}|{{{14}}}]]}}{{{n14|}}}{{#if: {{{15|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{15}}}|{{{15}}}]]}}{{{n15|}}}{{#if: {{{16|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{16}}}|{{{16}}}]]}}{{{n16|}}}{{#if: {{{17|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{17}}}|{{{17}}}]]}}{{{n17|}}}{{#if: {{{18|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{18}}}|{{{18}}}]]}}{{{n18|}}}{{#if: {{{19|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{19}}}|{{{19}}}]]}}{{{n19|}}}{{#if: {{{20|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{20}}}|{{{20}}}]]}}{{{n20|}}}{{Endspan}} | |
| − | </noinclude>[[{{{pref|wikt}}}:{{{1}}}|{{{1}}}]]{{#if: {{{2|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{2}}}|{{{2}}}]]}}{{#if: {{{3|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{3}}}|{{{3}}}]]}}{{#if: {{{4|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{4}}}|{{{4}}}]]}}{{#if: {{{5|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{5}}}|{{{5}}}]]}}{{#if: {{{6|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{6}}}|{{{6}}}]]}}{{#if: {{{7|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{7}}}|{{{7}}}]]}}{{#if: {{{8|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{8}}}|{{{8}}}]]}}{{#if: {{{9|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{9}}}|{{{9}}}]]}}{{#if: {{{10|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{10}}}|{{{10}}}]]}}{{#if: {{{11|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{11}}}|{{{11}}}]]}}{{#if: {{{12|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{12}}}|{{{12}}}]]}}{{#if: {{{13|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{13}}}|{{{13}}}]]}}{{#if: {{{14|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{14}}}|{{{14}}}]]}}{{#if: {{{15|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{15}}}|{{{15}}}]]}}{{#if: {{{16|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{16}}}|{{{16}}}]]}}{{#if: {{{17|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{17}}}|{{{17}}}]]}}{{#if: {{{18|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{18}}}|{{{18}}}]]}}{{#if: {{{19|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{19}}}|{{{19}}}]]}}{{#if: {{{20|}}}|{{{lim|}}}[[{{{pref|wikt}}}:{{{20}}}|{{{20}}}]]}} | + | </includeonly> |
Revision as of 06:03, 29 December 2006
Links text, word by word. The link target defaults to Wiktionary.
If you don't want to link to Wiktionary entries, set pref equal to some other value, such as your favorite interlanguage prefix or "c" for Commons.
Use the arguments n1, n2, n3, etc. to specify items that should not be linked. Regular spaces will be removed from the beginning and end of these; if you must have spaces, use instead.
If you want to have a delimiter, such as ", ", appear between links, specify the delimiter with lim.
If desired, you can specify the language code with lang.
Since these are normally definitional links, they are displayed without underlines by default. Change this by setting underline to "yes".
Examples:
{{User:Visviva/Test5|This| is| a| test}}
{{User:Visviva/Test5|This| is|n2= not| a| test}}