Template:Wplink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Rewrite; no more linebreak. Use {{elink}} for external link sections)
(This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
;Description
:Create a inline link with optional icon to [[wikipedia:|wikipedia.org]]. See {{t|wklink}} for links to Wiktionary or {{t|wqlink}} for links to Wikiquote. See also {{t|elink}}.


;Dependencies
* [[:File:Wp icon.png]] ([[File:Wp icon.png]])
;Usage
*<tt>&#123;&#123;wplink&#124;''article_name''&#124;''optional_label''&#125;&#125;</tt>
*<tt>&#123;&#123;wplink&#124;''article_name''&#124;''optional_label''&#124;icon=&#125;&#125;</tt>
*<tt>&#123;&#123;wplink&#124;''article_name''&#124;''optional_label''&#124;credit=&#125;&#125;</tt>
;Examples
:<code><nowiki>{{wplink|Thottbot}}</nowiki></code>
::yields...
:{{wplink|Thottbot}}
:<code><nowiki>{{wplink|Thottbot|icon=}}</nowiki></code>
::yields...
:{{wplink|Thottbot|icon=}}
:<code><nowiki>{{wplink|Thottbot|credit=|icon=}}</nowiki></code>
::yields...
:{{wplink|Thottbot|credit=|icon=}}
;See also
* {{t|elink}} for general external links
* {{t|wklink}} for links to Wiktionary
* {{t|wpelink}} uses {{t|elink}} to link to Wikipedia, but looks similar
* {{t|wqlink}} for links to Wikiquote
----
;Template
<onlyinclude>{{#ifeq:{{{icon|-}}}||[[File:Wp icon.png|Wikipedia|link=wikipedia:]]&nbsp;}}[[wikipedia:{{{1|{{FULLPAGENAME}}}}}|''{{{2|{{{1|{{FULLPAGENAME}}}}}}}}'']]{{#ifeq:{{{credit|-}}}||&nbsp;<small>([{{fullurl:wikipedia:{{{1|{{FULLPAGENAME}}}}}|action=history}} authors])</small>}}</onlyinclude>
[[Category:External link templates]]

Latest revision as of 21:49, 1 November 2016

Description
Create a inline link with optional icon to wikipedia.org. See {{wklink}} for links to Wiktionary or {{wqlink}} for links to Wikiquote. See also {{elink}}.
Dependencies
Usage
  • {{wplink|article_name|optional_label}}
  • {{wplink|article_name|optional_label|icon=}}
  • {{wplink|article_name|optional_label|credit=}}
Examples
{{wplink|Thottbot}}
yields...
Thottbot
{{wplink|Thottbot|icon=}}
yields...
Wikipedia Thottbot
{{wplink|Thottbot|credit=|icon=}}
yields...
Wikipedia Thottbot (authors)
See also
  • {{elink}} for general external links
  • {{wklink}} for links to Wiktionary
  • {{wpelink}} uses {{elink}} to link to Wikipedia, but looks similar
  • {{wqlink}} for links to Wikiquote



Template

Template:Wplink