Difference between revisions of "Template:Wikipedia/doc"
(cat) |
BobTheZombie (talk | contribs) m (→Usage: spelling) |
||
Line 2: | Line 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
==Usage== | ==Usage== | ||
− | ;Code:<code class="block">{{Wikipedia|<b style="color: violet">oldid</b>|<b style="color: orange"> | + | ;Code:<code class="block">{{Wikipedia|<b style="color: violet">oldid</b>|<b style="color: orange">FULLPAGENAME</b>}}</code> |
;All parameters: | ;All parameters: | ||
:*<b style="color: violet">oldid</b>: on the Wikipedia article's page, click on "permanent link" in the toolbox (found on the left-hand side of the screen). You'll get a link in the form ''<nowiki>http://en.wikipedia.org/w/index.php?title=Example_namespace:Example_page/Example_subpage&oldid=</nowiki>'''number'''''. '''''number''''' is what you are after. Replace the <span style="color: violet">violet</span>, '''bolded''' text in the code example with '''''number'''''. | :*<b style="color: violet">oldid</b>: on the Wikipedia article's page, click on "permanent link" in the toolbox (found on the left-hand side of the screen). You'll get a link in the form ''<nowiki>http://en.wikipedia.org/w/index.php?title=Example_namespace:Example_page/Example_subpage&oldid=</nowiki>'''number'''''. '''''number''''' is what you are after. Replace the <span style="color: violet">violet</span>, '''bolded''' text in the code example with '''''number'''''. | ||
− | :*<b style="color: orange"> | + | :*<b style="color: orange">FULLPAGENAME</b>: This is an <u>optional</u> parameter. If both Wikipedia's and our articles share the ''exact'' same name, then omit this parameter entirely. Wikipedia's full page name for the article. Convert spaces into underscores. Note that you must include the namespace, the pagename and any subpages, if applicable. e.g.; |
::{| class="wikitable" | ::{| class="wikitable" | ||
|+ Example_namespace:Example_page/Example_subpage | |+ Example_namespace:Example_page/Example_subpage |
Revision as of 17:55, 22 August 2014
Template:Template doc page viewed directly
Usage
- Code
{{Wikipedia|oldid|FULLPAGENAME}}
- All parameters
-
- oldid: on the Wikipedia article's page, click on "permanent link" in the toolbox (found on the left-hand side of the screen). You'll get a link in the form http://en.wikipedia.org/w/index.php?title=Example_namespace:Example_page/Example_subpage&oldid=number. number is what you are after. Replace the violet, bolded text in the code example with number.
- FULLPAGENAME: This is an optional parameter. If both Wikipedia's and our articles share the exact same name, then omit this parameter entirely. Wikipedia's full page name for the article. Convert spaces into underscores. Note that you must include the namespace, the pagename and any subpages, if applicable. e.g.;
Example_namespace:Example_page/Example_subpage Namespace Page name Subpage name Example_namespace: Example_page /Example_subpage