User:Bugman/wikipedia: Difference between revisions
Jump to navigation
Jump to search
(Attempted fix for the automatic language support.) |
(Test example.) |
||
Line 70: | Line 70: | ||
<nowiki>Someone {{:User:Bugman/wikipedia|FlightGear|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia.</nowiki> | <nowiki>Someone {{:User:Bugman/wikipedia|FlightGear|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia.</nowiki> | ||
Someone {{:User:Bugman/wikipedia|FlightGear|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia. | Someone {{:User:Bugman/wikipedia|FlightGear|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia. | ||
=== Auto-language support and different page names === | |||
{{obr}}:User:Bugman/wikipedia{{!}}{{obr}}LangSwitch {{!}} en = Cessna 172 {{!}} zh = 塞斯納172{{cbr}} {{cbr}} | |||
{{:User:Bugman/wikipedia|{{LangSwitch | en = Cessna 172 | zh = 塞斯納172}} }} | |||
== Known issues == | == Known issues == |
Latest revision as of 09:33, 24 May 2019
The following template description is not displayed when the template is inserted in an article.
Goal
This template can be used for links to Wikipedia pages.
Usage
{{wikipedia|page title|alternative text|noicon=|lang=|oldid=|diff=}}
All parameters are optional.
- page title
- Page title to link to. Defaults to Main Page.
- alternative text
- Alternative text to be shown instead of the page title.
- lang
- Two letter language code to link to another language version than the English one. The language will not be shown (currently not implemented), but the page title might give a hint.
- oldid
- Oldid from the end of the Wikipedia permalink URL to use when linking to a specific article revision. Can be found through the page history.
- diff
- If not empty a link to a diff comparing the oldid revision with the previous revision will be shown. Instead of a regular link and a permalink a permalink and a link to a diff will be shown.
Examples
See the {{:User:Bugman/wikipedia|FlightGear}} article on Wikipedia.
See the FlightGear article on Wikipedia.
External link: {{:User:Bugman/wikipedia|FlightGear|FlightGear (Wikipedia)|noicon=1}}
External link: FlightGear (Wikipedia)
See the {{:User:Bugman/wikipedia|FlightGear|lang=sv}} article on the Swedish Wikipedia.
See the FlightGear article on Swedish Wikipedia.
The Wikipedia article by the time of the {{:User:Bugman/wikipedia|FlightGear|release of FlightGear 3.0|oldid=596124837}}.
The Wikipedia article by the time of the release of FlightGear 3.0 (perm) .
Someone {{:User:Bugman/wikipedia|FlightGear|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia.
Someone mentioned the HondaJet take-down request (diff) on Wikipedia.
Auto-language support and different page names
{{:User:Bugman/wikipedia|{{LangSwitch | en = Cessna 172 | zh = 塞斯納172}} }}
Known issues
- You can not link to a section using a number sign (#) when using oldid or diff.