User:WikiMaster/Projects: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
(Scary Transclusions: Exact Character Case Matters!)
m (→‎External Data | Import/Export Data: Extension:Wiki Object Model)
Line 96: Line 96:
*[http://www.hudsonic.com/migwiki/bulkget-umw.php.txt get wiki data from UseModWiki]
*[http://www.hudsonic.com/migwiki/bulkget-umw.php.txt get wiki data from UseModWiki]
*[http://slash4.de/tutorials/Automatic_mediawiki_page_import_powershell_script Automatic mediawiki page import powershell script]
*[http://slash4.de/tutorials/Automatic_mediawiki_page_import_powershell_script Automatic mediawiki page import powershell script]
==== Wiki Object Model (WOM) | Page Object Model | Data Extraction ====
*[[mediawikiwiki:Extension:Wiki Object Model|Extension:Wiki Object Model]]
:[http://wiking.vulcan.com/dev/index.php/Extension:Wiki_Object_Model/Functions Extension:Wiki Object Model/Functions]
*[[mediawikiwiki:Extension:Page Object Model|Extension:Page Object Model]]
:[[mediawikiwiki:Extension:Semantic Forms/POM|Extension:Semantic Forms/POM]]
*[[mediawikiwiki:Category:Data extraction extensions|Category:Data extraction extensions]]
==== Import / Export Tools & Extensions ====
==== Import / Export Tools & Extensions ====
*[http://www.mediawiki.org/wiki/Extension:External_Data Extension:External Data]
*[http://www.mediawiki.org/wiki/Extension:External_Data Extension:External Data]

Revision as of 22:03, 1 June 2011

Outreach

Goals

  • One hundred daily contributors September 28, 2011 (PortlandWiki's second birthday).
  • Easier user interface; make PortlandWiki readily accessible to non-geek contributors.

Planning

PortlandWiki:Planning

Neighborhoods

Semantic MediaWiki

Calendar Tools

Semantic Result Formats (SRF) is a MediaWiki extension, used in conjunction with the Semantic MediaWiki extension, that bundles a number of further result formats for SMW's inline queries. The individual formats can be added to the installation independently, including...
(Extension:Semantic Result Formats/calendar format replaces the Extension:Semantic Calendar.)
(The Discourse DB Opinion calendar is a use-case example of the Extension:Semantic Result Formats/calendar format.)

Transclude External Templates

Manual:$wgEnableScaryTranscluding

How to use Scary transclusing
  • Enable $wgEnableScaryTranscluding
$wgEnableScaryTranscluding = true;
  • Make sure the relevent interwiki prefixes have iw_trans set to 1 in the database.
You should now be able to type {{wiki:template name}} or {{wiki::main namespace page name}} to transclude the page from a foriegn wiki.
You can also do {{raw:wiki:template name}} to do a raw transclude, where all templates on the foreign page are expanded as if they come from your wiki instead of the other wiki.

Scary Transclusions: Exact Character Case Matters!

May 24, 2011: Noticed that at least some scary transclusions seemed to stop working. Also noticed this for the first time:


Ultimately discovered that the lowercase "wikipedia" was removed from the Special:Interwiki table. Restored it, ran an update.php command in the maintenance folder and the scary transclusions began working again. -WikiMaster (talk) 12:37, 24 May 2011 (PDT)

Transclusion template fix?
(yup, in a sort of half-ass way. hip hip fuckin' hooray. only wasted half a dozen painful hours so far...)
Intermittent functionality at this point. Caching issue?
Try purging page:

And the "Template fetch failed" error message is often something that goes away if you purge the page cache adding "?action=purge" to the URL.

Source: "Template fetch failed"

These syntax examples appear to work after page purge:

{{wikipedia::Wikipedia:Meetup/Portland}}
{{wikipedia::Wikipedia:Meetup/Portland/Invite}}
Transcluded invite begins here.

[Interwiki transcluding is disabled]

Transcluded invite ends here.

Image Transclusion & Namespaces Transclusion Issues

Mass_Effect_Wiki_Collaboration.png (link to actual image)
  • 50px|link=MediaWiki (image link doesn't work; namespace issues?)
  • Photo: White Stag sign, Portland. (this image shows up because it's already uploaded to portlandwiki)
  • This image resides on PortlandWiki server AND Wikipedia server.
  • Manual:Linked images (namespace issues playing havoc with interwiki linking?)

Further (transclusion issues) research.

kotra asks:

Are you trying to transclude the content from a Wikipedia page into PW? If so I think we would need to use mediawikiwiki:Manual:$wgEnableScaryTranscluding. -kotra (talk) 18:40, 24 March 2011 (UTC)
Yup! That's exactly what I'm trying to do. Thanks kotra! - Dave Myers 16:49, 17 April 2011 (UTC)

External Data | Import/Export Data

Spent day researching how to upload pre written articles en masse.

MediaWiki Manuals

Importing from other types of files
The Edit.php, importImages.php and ImportTextFile.php maintenance scripts can be used to import text and images into MediaWiki.

External Data

Must Read: Wikipedia:Creating a bot
MediaWiki Bulk Page Creator | MediaWiki Bulk Page Creator
(Depends on Snoopy; already trying to get DreamHost to help with server config.)
(Finally got Snoopy installed but MediaWiki Bulk Page Creator's scant documentation is hard to follow. Now looking at tools listed under Also, And....)

APIs Tutorials

Article::doEdit()

Wiki Object Model (WOM) | Page Object Model | Data Extraction

Extension:Wiki Object Model/Functions
Extension:Semantic Forms/POM

Import / Export Tools & Extensions

(Extension:External Data is part of the Semantic Bundle already installed on PortlandWiki.)
Manual:Importing external content - Converting content from a CSV text file
csv and xls converter to wiki

Other mediawiki extensions

This extension enables installation and updating of extensions and MediaWiki itself. It obtains deployment packages by using the API provided by the Distribution extension, parses these and applies them. For this it provides several special pages. You can read more about the deployment effort on the deployment page.
Will need to config SOAP.

Video

Flickr Extensions

Extension:Flickr#Changes_to_this_code
wiki.edsimpson.co.uk > MediaWiki Extensions > Flickr Extension
Extension:Widgets#Widget_library
http://www.mediawikiwidgets.org/Flickr
http://www.mediawikiwidgets.org/FlickrShow

Wikia

Other Admin To Do

Other Resources

Templates, Infoboxes, Microformats, Etc.

Interwiki

Interwiki | magicword

Wiki Modules For Drupal 7

Interesting stuff

snippet library — A code snippets collection.

References