Skip to content

Commit

Permalink
Merge pull request #377 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain authored Jul 9, 2020
2 parents 06a83ae + 30cb526 commit 7790900
Show file tree
Hide file tree
Showing 36 changed files with 1,511 additions and 984 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ wtf

- **.title()** - get/set the title of the page from the first-sentence
- **.pageID()** - get/set the wikimedia id of the page, if we have it.
- **.wikidata()** - get/set the wikidata id of the page, if we have it.
- **.domain()** - get/set the domain of the wiki we're on, if we have it.
- **.url()** - (try to) generate the url for the current article
- **.lang()** - get/set the current language (used for url method)
- **.namespace()** - get/set the wikimedia namespace of the page, if we have it
Expand Down Expand Up @@ -654,6 +656,9 @@ wtf.fetch('2016-06-04_-_J.Fernandes_@_FIL,_Lisbon', { domain: 'www.mixesdb.com',
})
```

for image-urls to work properly, the wiki should also have `Special:Redirect` enabled.
Some wikis, (like wikia) have intentionally disabled this.

### i18n and multi-language:

wikitext is (amazingly) used across all languages, wikis, and even in right-to-left languages.
Expand Down
Loading

0 comments on commit 7790900

Please sign in to comment.