Difference between revisions of "Template:ShortLink/Examples"
From FollowTheScore
(New page: <!-- The DPL code uses a page with example links |namespace=Template |titlematch=ShortLink/Examples/List to result in an unexpensive query. -->Examples for <nowiki>{{</nowiki>[[:Templat...) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
<br> | <br> | ||
---- | ---- | ||
− | <code><nowiki>|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count= | + | <code><nowiki>|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count=50}²,,</nowiki></code> |
{{#dpl: | {{#dpl: | ||
|allowcachedresults=true | |allowcachedresults=true | ||
Line 29: | Line 29: | ||
|addexternallink=true | |addexternallink=true | ||
|count=25 | |count=25 | ||
− | |format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count= | + | |format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count=50}²,, |
}} | }} | ||
<br> | <br> | ||
---- | ---- | ||
− | <code><nowiki>|format=,\n*²{ShortLink¦url=%EXTERNALLINK% | + | <code><nowiki>|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦plain=yes¦domainonly=yes}²,,</nowiki></code> |
{{#dpl: | {{#dpl: | ||
|allowcachedresults=true | |allowcachedresults=true | ||
Line 41: | Line 41: | ||
|addexternallink=true | |addexternallink=true | ||
|count=25 | |count=25 | ||
− | |format=,\n*²{ShortLink¦url=%EXTERNALLINK% | + | |format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦plain=yes¦domainonly=yes}²,, |
}} | }} | ||
<br> | <br> | ||
Line 54: | Line 54: | ||
|count=25 | |count=25 | ||
|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count=60¦domainbold=yes}²,, | |format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count=60¦domainbold=yes}²,, | ||
+ | }} | ||
+ | <br> | ||
+ | ---- | ||
+ | <code><nowiki>|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦domainbold=yes¦plain=yes}²,,</nowiki></code> | ||
+ | {{#dpl: | ||
+ | |allowcachedresults=true | ||
+ | |namespace=Template | ||
+ | |titlematch=ShortLink/Examples/List | ||
+ | |linkstoexternal=%% | ||
+ | |addexternallink=true | ||
+ | |count=25 | ||
+ | |format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦domainbold=yes¦plain=yes}²,, | ||
}} | }} |
Latest revision as of 05:04, 24 July 2009
Examples for {{ShortLink}} in DPL code using addexternallink=true and %EXTERNALLINK% with different kinds of URLs. You'll see that some options only work in combination.
|format=,\n*²{ShortLink¦url=%EXTERNALLINK%}²,,
- Expression error: Unrecognized punctuation character "{".
|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count=50}²,,
- Expression error: Unrecognized punctuation character "{".
|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦plain=yes¦domainonly=yes}²,,
- Expression error: Unrecognized punctuation character "{".
|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦count=60¦domainbold=yes}²,,
- Expression error: Unrecognized punctuation character "{".
|format=,\n*²{ShortLink¦url=%EXTERNALLINK%¦domainbold=yes¦plain=yes}²,,
- Expression error: Unrecognized punctuation character "{".