Difference between revisions of "GenerateRoyalPages"
Jump to navigation
Jump to search
| Line 30: | Line 30: | ||
org.sidif.wiki.WikiTask wikiTask | org.sidif.wiki.WikiTask wikiTask | ||
org.sidif.triple.TripleStore tripleStore | org.sidif.triple.TripleStore tripleStore | ||
| + | } | ||
| + | @// create the given person | ||
| + | @def createPerson(String name) { | ||
| + | @{ | ||
| + | Throwable error=null; | ||
| + | try { | ||
| + | String pageTitle=name; | ||
| + | SSLWiki wiki=(SSLWiki)wikiTask.getWiki(); | ||
| + | String summary="generated by GenerateRoyalPages at "+wiki.getIsoTimeStamp(); | ||
| + | wiki.edit(pageTitle,pageContent,summary); | ||
| + | } catch (Throwable th) { | ||
| + | error=th; | ||
| + | } | ||
| + | } | ||
| + | @if (error) { | ||
| + | <span style='color:red'>Error: @(error.getMessage())</span> | ||
| + | } | ||
} | } | ||
@{ | @{ | ||
| Line 41: | Line 58: | ||
@(wikiTask.getWiki().getIsoTimeStamp()) | @(wikiTask.getWiki().getIsoTimeStamp()) | ||
@(query.size()) triples found | @(query.size()) triples found | ||
| − | @ | + | @createPerson("") |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
} | } | ||
Revision as of 11:25, 5 October 2017
| Action | |
|---|---|
| name | GenerateRoyalPages |
| servicetype | WikiTask |
| service | |
| inputtype | Page |
| input | Royal92#sidif |
| actionpage | GenerateRoyalPages#template |
| output | Royal92/pages |
| engine | rythm |
| author | Wf |
| since | 2017/10/06 |
| comment | Create wiki pages for Royal-Family |
login
reset
runtemplate -> Royal92/pages