Jump to content

Module talk:TrainingPages

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wnt (talk | contribs) at 04:11, 25 April 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Wikipedia:Training/For students/Editing topics

Wikipedia:Training/For students/Getting started 1

Wikipedia:Training/For students/Citing sources 2

---

Wikipedia:Training/header

Wikipedia:Training/For students/Text editing

Wikipedia:Training/For students/Discussion

---

Wikipedia:Training/For students/Sandbox edits for new articles


---


--

Wikipedia:Training/For students/valuable contribution


script error on template page

I've started using this for an updated navigation framing for the trainings. It's working on the pages themselves, but it gives script errors on the template page: Wikipedia:Training/header/draft. It seems to be related to how the module treats "index=[nothing]".--Sage Ross (WMF) (talk) 15:31, 8 April 2013 (UTC)[reply]

Sorry, I wasn't paying attention to this page! The problem right now is that the module is trying to look up an index file [[Wikipedia:Training/header/{{{topic}}} index]], and it doesn't exist. I've modified the message slightly, but I don't see a way to avoid having some kind of error if the module doesn't know what to use for an index page. Wnt (talk) 03:31, 25 April 2013 (UTC)[reply]
OK, I've made it so that it returns a text-based message which is hopefully a little bit comprehensible. Or you can set noerr = (nonblank value) to have it return nothing if there's an error, for neatness. Wnt (talk) 03:51, 25 April 2013 (UTC)[reply]

feature request: get_page by number

It'd be handy if this had a function to return the name of page X (eg, the first page) given an index.--Sage Ross (WMF) (talk) 22:39, 8 April 2013 (UTC)[reply]