Vorlage:UmbruchErmöglichen: Unterschied zwischen den Versionen

Aus Bayernflora
Wechseln zu: Navigation, Suche
K (1 Version)
K (ON Abgleich)
 
Zeile 4: Zeile 4:
 
* text or Text: free form text. May be used alone, or together with url/URL (then as display text of the hyperlink)
 
* text or Text: free form text. May be used alone, or together with url/URL (then as display text of the hyperlink)
  
'''Test url only:''' {{UmbruchErmöglichen|url=http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX_5XXXXX_6XXXXX_7XXXXX_8XXXXX_9XXXXX_10XXXX_11XXXX_12XXXX_13XXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX}}
+
'''Test url only:'''  
 +
<nowiki>{{</nowiki>{{PAGENAME}} | <nowiki>http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX…</nowiki> }}
 +
<nowiki>{{</nowiki>{{PAGENAME}} | url=<nowiki>http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX…</nowiki>}}
 +
{{UmbruchErmöglichen|url=http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX_5XXXXX_6XXXXX_7XXXXX_8XXXXX_9XXXXX_10XXXX_11XXXX_12XXXX_13XXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX}}
  
'''Test with text:''' {{UmbruchErmöglichen|url=http://x.y.net/path/|text= 1XXXXX_2XXXXX_3XXXXX_4XXXXX_5XXXXX_6XXXXX_7XXXXX_8XXXXX_9XXXXX_10XXXX_11XXXX_12XXXX_13XXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX}}
+
German alternative:
 +
<nowiki>{{</nowiki>Link darf umbrechen | <nowiki>http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX…</nowiki> }}
 +
<nowiki>{{</nowiki>Link darf umbrechen | 1=<nowiki>http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX?var=34&var2=23…</nowiki> }}
 +
<nowiki>{{</nowiki>Link darf umbrechen | url=<nowiki>http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX…</nowiki>}}
  
</noinclude>{{#if:{{{url|{{{URL|}}}}}}|[{{{url|{{{URL|}}}}}} {{#replace:{{#replace:{{#replace:{{#replace:{{{text|{{{Text|{{{url|{{{URL|}}}}}}}}}}}}|.|.&#8203;}}|/|/&#8203;}}|_|_&#8203;}}|=|=&#8203;}}]|<!--no URL, only text:-->{{#replace:{{#replace:{{#replace:{{#replace:{{{text|{{{Text|}}}}}}|.|.&#8203;}}|/|/&#8203;}}|_|_&#8203;}}|=|=&#8203;}}<!--end-if-->}}
+
 
 +
'''Test with text:'''
 +
<nowiki>{{</nowiki>{{PAGENAME}} | <nowiki>http://x.y.net/path/</nowiki> | 1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}
 +
<nowiki>{{</nowiki>{{PAGENAME}} | url=<nowiki>http://x.y.net/path/</nowiki> | text=1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}
 +
{{UmbruchErmöglichen|url=http://x.y.net/path/|text= 1XXXXX_2XXXXX_3XXXXX_4XXXXX_5XXXXX_6XXXXX_7XXXXX_8XXXXX_9XXXXX_10XXXX_11XXXX_12XXXX_13XXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX_XXXXXX}}
 +
 
 +
German alternative:
 +
<nowiki>{{</nowiki>Link darf umbrechen | <nowiki>http://x.y.net/path/</nowiki> | 1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}
 +
<nowiki>{{</nowiki>Link darf umbrechen | url=<nowiki>http://x.y.net/path/</nowiki> | text=1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}
 +
 
 +
 
 +
[[Kategorie: Formatierung]]
 +
</noinclude>{{#if:{{{url|{{{URL|{{{1|}}}}}}}}}|[{{{url|{{{URL|{{{1|}}}}}}}}} {{#replace:{{#replace:{{#replace:{{#replace:{{{text|{{{Text|{{{2|{{{url|{{{URL|{{{1|}}}}}}}}}}}}}}}}}}|.|.&#8203;}}|/|/&#8203;}}|_|_&#8203;}}|=|=&#8203;}}]|<!--no URL, only text:-->{{#replace:{{#replace:{{#replace:{{#replace:{{{text|{{{Text|{{{2|}}}}}}}}}|.|.&#8203;}}|/|/&#8203;}}|_|_&#8203;}}|=|=&#8203;}}<!--end-if-->}}

Aktuelle Version vom 3. März 2020, 02:54 Uhr

Enables for long strings, esp. URLs, to wrap the text at the point of "_", "/", "=" and "." into a new line. Two parameters:

  • url or URL: e.g. http://...
  • text or Text: free form text. May be used alone, or together with url/URL (then as display text of the hyperlink)

Test url only:

{{UmbruchErmöglichen | http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX… }}
{{UmbruchErmöglichen | url=http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}

http:/​/​x.​y.​net/​path/​1XXXXX_​2XXXXX_​3XXXXX_​4XXXXX_​5XXXXX_​6XXXXX_​7XXXXX_​8XXXXX_​9XXXXX_​10XXXX_​11XXXX_​12XXXX_​13XXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX

German alternative:

{{Link darf umbrechen | http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX… }}
{{Link darf umbrechen | 1=http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX?var=34&var2=23… }}
{{Link darf umbrechen | url=http://x.y.net/path/1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}


Test with text:

{{UmbruchErmöglichen | http://x.y.net/path/ | 1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}
{{UmbruchErmöglichen | url=http://x.y.net/path/ | text=1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}

1XXXXX_​2XXXXX_​3XXXXX_​4XXXXX_​5XXXXX_​6XXXXX_​7XXXXX_​8XXXXX_​9XXXXX_​10XXXX_​11XXXX_​12XXXX_​13XXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX_​XXXXXX

German alternative:

{{Link darf umbrechen | http://x.y.net/path/ | 1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}
{{Link darf umbrechen | url=http://x.y.net/path/ | text=1XXXXX_2XXXXX_3XXXXX_4XXXXX…}}