Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide function to create markup syntax for a specific CMS to add resources. #20

Open
schloett opened this issue Nov 17, 2015 · 2 comments
Assignees

Comments

@schloett
Copy link

For an overview, see #18.
The provided function should turn a resource retrieved via EEXCESS into markup code, which can be inserted into a particular CMS. At first, we need this functionality for Wikipedia (wikicode). Therefore, the different possibilities to add content (cite, add image, add link, ....) need to be evaluated and the ability to provide markup code should be implemented for the reasonable possibilities. Maybe the CitationBuilder of this repository already covers this task. @n-witt could you please tell us whether this is the case?

@kunzstef
Copy link
Member

Markup functions provided by wikiCode:

  • link
[http://www.example.org Linktext]
  • reference
Example Paper <ref>[http://www.example.org Example Paper]</ref>
  • image
[[Image:Wiki.png|50px|link=MediaWiki]] -> [[Image:Wiki.png|<width>|link=MediaWiki]]
https://en.wikipedia.org/upload/b/bc/Wiki.png -> link displayed to external image
[http://url.for/some/image.png] -> reference to external image

-> not possible to insert external images -> have to be uploaded on page or they can only be referenced by link if not allowed like described here: https://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages#Why_disallow_external_images.3F

@schloett
Copy link
Author

schloett commented Dec 3, 2015

Is there a possibility to upload images programmatically?
For images on commons.wikimedia.org, the inclusion should be possible, right?
Maybe adding references might also be useful (I assume there exists dedicated markup?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants