Ad placeholder

Template:Wikipedia: Difference between revisions

Jump to navigation Jump to search
Updated documentation and added category
(Don't automatically make this a list item, because that always forces it into its own <ul> element.)
(Updated documentation and added category)
 
Line 1: Line 1:
<includeonly>{{#switch: {{{2|}}}| long = {{SmallIcon|Wikipedia w.png}} [https://en.wikipedia.org/wiki/{{#replace:{{{1}}}| |%5F}} {{{3|{{{1}}}}}}] on [https://en.wikipedia.org/wiki/Main_Page Wikipedia]|{{SmallIcon|Wikipedia w.png}} [https://en.wikipedia.org/wiki/{{#replace:{{{1}}}| |%5F}} {{{2|{{{1}}}}}}]}}</includeonly><noinclude>[[Category:Templates]]
<includeonly>{{#switch: {{{2|}}}| long = {{SmallIcon|Wikipedia w.png}} [https://en.wikipedia.org/wiki/{{#replace:{{{1}}}| |%5F}} {{{3|{{{1}}}}}}] on [https://en.wikipedia.org/wiki/Main_Page Wikipedia]|{{SmallIcon|Wikipedia w.png}} [https://en.wikipedia.org/wiki/{{#replace:{{{1}}}| |%5F}} {{{2|{{{1}}}}}}]}}</includeonly><noinclude>{{documentation|content=
Test: {{Wikipedia|Mind Flayer}} or {{Wikipedia|Mind Flayer|Description}}
Display an external link to a page on Wikipedia.


{{InfoBlob|<nowiki>Test: {{Wikipedia|Mind Flayer}} or  {{Wikipedia|Mind Flayer|Description}}</nowiki>}}
There are two available formats: the default compact version suitable for inline use and a longer form suitable for lists in "External links" sections of articles.
== Examples ==
{{Template demo
| style = table
| <nowiki>{{Wikipedia|Illithid}}</nowiki>
| <nowiki>{{Wikipedia|Illithid|Mind Flayer}}</nowiki>
| <nowiki>{{Wikipedia|Illithid|long}}</nowiki>
| <nowiki>{{Wikipedia|Illithid|long|Mind Flayer}}</nowiki>
}}


Or try the long version:
== See also ==
* {{t link|FRWiki}}


{{Wikipedia|Minsc|long}}
== Template data ==
 
<templatedata>
{{InfoBlob|<nowiki>{{Wikipedia|Minsc|long}}</nowiki>}}
{
 
    "description": "Link to an external page on Wikipedia.",
{{Wikipedia|Jaheira|long|Yes oh omnipresent authority figure}}
    "format": "inline",
 
"params": {
{{InfoBlob|<nowiki>{{Wikipedia|Jaheira|long|Yes oh omnipresent authority figure}}</nowiki>}}
"1": {
"label": "Page name",
            "description": "The Wikipedia page to link to.",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "alias OR long",
"description": "This parameter is either used to specify the long format or to provide alternative text for the link.",
            "suggestedvalues": ["long"],
"type": "string"
},
        "3": {
            "label": "alias",
"description": "If the second parameter was \"long\", this parameter is instead used for the alias.",
"type": "string"
}
}
}
</templatedata>}}
[[Category:Templates]]
[[Category:Link templates]]
[[Category:External link templates]]
</noinclude>

Navigation menu