Help:Creating a page on the fly
From The Scuba Wiki
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/- |
Reasons for creating a page on the fly, instead of viewing a stored page include:
- there are many potential versions
- the page has to be up-to-date
For these reasons special pages are created on the fly. For ordinary pages the second aspect is taken care of: each time a page is viewed, the latest version of the templates and images is used, and the existence detection of linked pages is also up-to-date. If necessary "action=purge" can update the page.
However, there may be many potential versions of a page, with a small change in the wikitext making the page rendering sufficiently different to be separately of interest. It may be impractical or even impossible to store them all. In that case the preview function can be used, not as a check in preparation of storing the page, but as page creation feature by itself.
The small change with a large effect can be a change in image parameters, or a change in a template call: a change in the name or in the parameters.
Applications:
- Changing a parser function call, e.g. making a change in a computation. Thus the wikitext {{#expr:11/7}} may well be preferable over 1.5714285714286. The expression not only gives insight in how the number was computed, but allows easy change of a parameter in the computation. Creating a page on the fly allows what-if analysis of the expression: "What happens to the result if we make a particular change to a parameter?". If the change of a parameter is small this is also called sensitivity analysis: "How sensitive is the result to a small change of a parameter?".
- showing an image in a desired size
- e.g. [[Image:Netherlands pol87.jpg|100px]] gives 100px, change the "100" to show it enlarged, if desired even larger than the original (the maximum is browser-dependent; some browsers also allow enlargement independent of the wikitext and HTML; however, if the image is originally put on the page in reduced size, enlarging that with the browser gives less quality than embedding the image in the page in a less reduced size)
- showing the existence of a list of pages, e.g. to check the existence of pages with the numbers 2000-2099, on the English Wikipedia, with w:template:l2d ( talk edit history links ), one can use {{l2d|20}}; for another 100 numbers, change the "20".
- providing a list of links, e.g.:
- {{Table of Wikimedia projects|Special:Allpages&from=&namespace=10}}; this gives for all projects a link to the page with a list of all templates; change the "10" to get links to all pages in another namespace. (To try it out, remove the first set of nowiki tags, not the second.)
- Names in the language itself and in Dutch:
{{List of Languages|lang=nl}} gives:
- Afrikaans (Afrikaans)
- العربية (Template:Lang name - ar (nl))
- Azərbaycanca (Template:Lang name - az (nl))
- Български (Bulgaars)
- Brezhoneg (Bretons)
- Česky (Tjechisch)
- Dansk (Deens)
- Deutsch (Duits)
- Ελληνικά (Grieks)
- English (Engels)
- Español (Spaans)
- Esperanto (Esperanto)
- فارسی (Perzisch)
- Français (Frans)
- گیلکی (Template:Lang name - glk (nl))
- עברית (Template:Lang name - he (nl))
- Italiano (Italiaans)
- 日本語 (Japans)
- Қазақша (Kazakstaans)
- 한국어 (Koreaans)
- Kurdî (Koerdisch)
- مازِرونی (Template:Lang name - mzn (nl))
- Nederlands (Nederlands)
- Norsk (bokmål) (Noors)
- Polski (Pools)
- Português (Portugees)
- Русский (Russisch)
- Српски / Srpski (Servisch)
- Svenska (Zweeds)
- Українська (Template:Lang name - uk (nl))
- 中文 (Chinees)
Change the language code for another list (as far as data are available).
Unfortunately, when linking to a template instead of embedding it, transfer of parameters is not possible. Also, special input boxes cannot be created. Therefore, although the template hides most wikitext from the "previewer" (viewer/"semi-editor"), he/she has to deal with the template tag itself.
Links to other help pages
- Help contents
- Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s: | mw:Manual | google
- Versions of this help page (for other languages see below)
- Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary
- What links here on Meta or from Meta | Wikipedia | MediaWiki
- Reading
- Go | Search | Stop words | URL | Namespace | Page name | Section
- Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
- Logging in and preferences
- Logging in | Preferences | User style
- Editing
- Advanced editing | Editing FAQ | Edit toolbar | Export | Import | Shortcuts
- Tracking changes
- Recent changes (enhanced) | Related changes | Watching pages | Diff
- Page history | Edit summary | User contributions | Minor edit | Patrolled edit
- Style & formatting
- Wikitext examples | Reference card | HTML in wikitext | List | Table | Sorting | Colors
- Special input and output
- Inputbox | Special characters | Displaying a formula | Images (uploads) | EasyTimeline
- Advanced functioning
- Template | Advanced templates | Parser function | ParserFunctions | Parameter default
- Variable | Magic word | System message | Substitution | Array | Calculation
- Page management
- Starting a new page | Renaming (moving) a page | Protecting pages | Deleting a page
- Special pages
- Talk page | Testing | Sandbox | CentralNotice