Vorlage:UmbruchErmöglichen: Unterschied zwischen den Versionen
Aus Bayernflora
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}} | ||
− | + | 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|}}}}}}}}}}}}|.|.​}}|/|/​}}|_|_​}}|=|=​}}]|<!--no URL, only text:-->{{#replace:{{#replace:{{#replace:{{#replace:{{{text|{{{Text|}}}}}}|.|.​}}|/|/​}}|_|_​}}|=|=​}}<!--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|}}}}}}}}}}}}}}}}}}|.|.​}}|/|/​}}|_|_​}}|=|=​}}]|<!--no URL, only text:-->{{#replace:{{#replace:{{#replace:{{#replace:{{{text|{{{Text|{{{2|}}}}}}}}}|.|.​}}|/|/​}}|_|_​}}|=|=​}}<!--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…}}
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…}}
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…}}