Difference between revisions of "Template:SourceWiki"
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Import from de.imedwiki Vorlage:QuelleWiki) |
(translation) |
||
Line 1: | Line 1: | ||
<includeonly><div style="border: 2px solid #F0F0F0; margin: 1em auto; padding:1em 1.6em; max-width:50em; border-radius:.2em;display:flex;"> | <includeonly><div style="border: 2px solid #F0F0F0; margin: 1em auto; padding:1em 1.6em; max-width:50em; border-radius:.2em;display:flex;"> | ||
{{#if: {{{wikibild-div|}}} | {{{wikibild-div}}}}} | {{#if: {{{wikibild-div|}}} | {{{wikibild-div}}}}} | ||
− | <div>{{#invoke: | + | <div>{{#invoke: SourceWiki | basis | deleted={{{deleted|}}} }} [[{{{wikiname}}}{{#if: {{{lang|}}} | -{{{lang}}}}}:{{#if: {{{sourcetitle|}}} | {{{sourcetitle}}} | {{FULLPAGENAME}} }}|{{#if: {{{sourcetitle|}}} | {{{sourcetitle}}} | {{FULLPAGENAME}} }}]] from {{#if: {{{wikidescription|}}} | {{{wikidescription}}}|}} {{#if: {{{wikilangurl|}}} | [http://{{{wikilangurl}}} {{{wikiname}}}] |[http://{{#if: {{{lang|}}} | {{{lang}}}.}}{{{wikiurl}}} {{{wikiname}}}]}} {{#if: {{{oldid|}}} | revision [http://{{#if: {{{lang|}}} | {{{lang}}}.}}{{{wikiurl}}}/w/index.php?title={{urlencode:{{#if: {{{sourcetitle|}}} | {{{sourcetitle}}} | {{FULLPAGENAME}} }}}}&oldid={{{oldid}}} {{{oldid}}}]|}}{{#if: {{{oldid-update|}}} | (last update that has been included [http://{{#if: {{{lang|}}} | {{{lang}}}.}}{{{wikiurl}}}/w/index.php?title={{urlencode:{{#if: {{{sourcetitle|}}} | {{{sourcetitle}}} | {{FULLPAGENAME}} }}}}&oldid={{{oldid-update}}} {{{oldid-update}}}]|}} {{#if: {{{datum|}}} | of {{{datum}}} |}} and is licensed under [http://www.gnu.org/licenses/fdl.txt GNU license for free documentation] and the [http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution/Share Alike]. On {{{wikiname}}} there is a {{#if: {{{wikilangurl|}}} | [http://{{{wikilangurl}}}/index.php?title={{urlencode:{{#if: {{{sourcetitle|}}} | {{{sourcetitle}}} | {{FULLPAGENAME}} }}}}&action=history List of authors]| [http://{{#if: {{{lang|}}} | {{{lang}}}.}}{{{wikiurl}}}/{{#if:{{{wikipath|}}}|{{{wikipath}}}|}}index.php?title={{urlencode:{{#if: {{{sourcetitle|}}} | {{{sourcetitle}}} | {{FULLPAGENAME}} }}}}&action=history List of authors] }} accessible. {{#if: {{{description|}}} | {{{description}}}}} {{#if: {{{oldid-local|}}} | [[Special:Diff/{{{oldid-local}}}/cur|Changes on iemdwiki]]. |}} {{#if: {{{oldid|}}} | [[{{{wikiname}}}{{#if: {{{lang|}}} | -{{{lang}}}}}:Special:Diff/{{{oldid}}}/cur|Changes in {{{wikiname}}}]]. |}}{{#if: {{{oldid-update|}}} | [[{{{wikiname}}}{{#if: {{{lang|}}} | -{{{lang}}}}}:Special:Diff/{{{oldid-update}}}/cur|Changes since latest update on {{{wikiname}}}]]. |}}{{#if: {{{wikicomment|}}} | {{{wikicomment}}}|}} {{#if: {{{comment|}}} | {{{comment}}}|}}</div> |
− | </div>[[Kategorie:Imedwiki: | + | </div>[[Kategorie:Imedwiki:Import from other wiki]][[Kategorie:Imedwiki:Import from {{{wikiname}}}]]</includeonly><noinclude>{{Documentation}}{{Anthrowiki|Template:Wikipedia}}<templatedata> |
{ | { | ||
"params": { | "params": { | ||
"lang": { | "lang": { | ||
− | "description": " | + | "description": "Language", |
"example": "de, en", | "example": "de, en", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
− | " | + | "sourcetitle": { |
− | "description": "Name | + | "description": "Name of page in source wiki", |
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"oldid": { | "oldid": { | ||
− | "description": "Revision | + | "description": "Revision of page in source wiki" |
}, | }, | ||
"oldid-update": { | "oldid-update": { | ||
− | "description": " | + | "description": "Latest revision in source wiki that has been included" |
}, | }, | ||
− | " | + | "deleted": { |
− | "description": " | + | "description": "Article has been deleted in source wiki", |
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
− | "oldid- | + | "oldid-local": { |
− | "description": "Revision | + | "description": "Revision of page on imedwiki" |
}, | }, | ||
− | " | + | "date": { |
− | "description": " | + | "description": "Date of import", |
"example": "1.1.2000", | "example": "1.1.2000", | ||
"type": "date" | "type": "date" | ||
}, | }, | ||
"wikiname": { | "wikiname": { | ||
− | "description": " | + | "description": "Name of source wiki", |
− | "example": "Wikipedia | + | "example": "Wikipedia", |
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"wikiurl": { | "wikiurl": { | ||
− | "description": "url | + | "description": "url of wiki", |
− | "example": "Wikipedia: wikipedia.org | + | "example": "Wikipedia: wikipedia.org", |
"type": "url", | "type": "url", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"wikilangurl": { | "wikilangurl": { | ||
− | "description": "url | + | "description": "url of wiki with language prefix", |
"example": "FreeWiki: https://www.freewiki.eu/de", | "example": "FreeWiki: https://www.freewiki.eu/de", | ||
"type": "url", | "type": "url", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
− | " | + | "wikidescription": { |
− | "description": " | + | "description": "Short text that will be included between 'from' and 'wikiname'", |
− | "example": "Wikipedia: ' | + | "example": "Wikipedia: 'the free encyclopedia'", |
"type": "string" | "type": "string" | ||
}, | }, | ||
− | " | + | "description" : { |
− | "description": " | + | "description": "Description of wiki", |
"type": "string" | "type": "string" | ||
}, | }, | ||
− | " | + | "wikipic-div": { |
− | "description": " | + | "description": "a <div>, including an image of source wiki", |
"example": "<div style=\"flex:0 0 auto;display: flex;flex-direction: column;justify-content: center;padding-right:1em;\">[[File:Wikipedia-logo-v2.svg|60px|link=https://de.wikipedia.org]]</div>" | "example": "<div style=\"flex:0 0 auto;display: flex;flex-direction: column;justify-content: center;padding-right:1em;\">[[File:Wikipedia-logo-v2.svg|60px|link=https://de.wikipedia.org]]</div>" | ||
}, | }, | ||
− | " | + | "wikicomment": { |
− | "description": " | + | "description": "Short text that will be appended. Description of wiki.", |
− | "example": " | + | "example": "More about importing from wikipedia: [[Imedwiki:Importing from Wikipedia]]", |
"type": "string" | "type": "string" | ||
}, | }, | ||
− | " | + | "comment": { |
− | "description": " | + | "description": "Short text to be appended at the end. Describing this specific import.", |
− | "example": " | + | "example": "Source page says this comes from XYZ. This can not be reproduced.", |
"type": "string" | "type": "string" | ||
} | } |
Revision as of 19:39, 19 September 2021
Template documentation[create]
This template is based (in parts) on the Template:SourceWiki from Anthrowiki and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On Anthrowiki there is a List of authors accessible.
Kategorie:Imedwiki:Import from other wikiKategorie:Imedwiki:Import from Anthrowiki
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Lang | lang | Language
| String | suggested |
Sourcetitle | sourcetitle | Name of page in source wiki | Page | suggested |
Oldid | oldid | Revision of page in source wiki | Unknown | optional |
Oldid-update | oldid-update | Latest revision in source wiki that has been included | Unknown | optional |
Deleted | deleted | Article has been deleted in source wiki | Boolean | optional |
Oldid-local | oldid-local | Revision of page on imedwiki | Unknown | optional |
Date | date | Date of import
| Date | optional |
Wikiname | wikiname | Name of source wiki
| String | suggested |
Wikiurl | wikiurl | url of wiki
| URL | suggested |
Wikilangurl | wikilangurl | url of wiki with language prefix
| URL | suggested |
Wikidescription | wikidescription | Short text that will be included between 'from' and 'wikiname'
| String | optional |
Description | description | Description of wiki | String | optional |
Wikipic-div | wikipic-div | a <div>, including an image of source wiki
| Unknown | optional |
Wikicomment | wikicomment | Short text that will be appended. Description of wiki.
| String | optional |
Comment | comment | Short text to be appended at the end. Describing this specific import.
| String | optional |