Template:Portal by year

From Wikisource
Jump to: navigation, search
Portal by year
Class
Index of works and other pages related to the year Portal by year.

Latest additions [edit]



Novels[edit]


Poems[edit]


Short stories[edit]


Speeches[edit]


Films[edit]


Song lyrics[edit]


Births[edit]


Deaths[edit]


Court decisions[edit]


Executive orders[edit]


Constitutional documents[edit]


Treaties[edit]



Documentation icon Template documentation[view] [edit] [history] [purge]


This template creates the basic features of a year-based portal. Once created, such a portal will automatically keep itself up to date.

It uses Dynamic Page Lists as created for the Wikinews project, in a format based on Wikinews-style portals (eg. Portal:Aviation on Wikinews).

Usage[edit]

{{subst:Portal by year}}

Procedure[edit]

  1. Start a new portal
  2. Copy the text under usage into the new portal
  3. Save the page
  4. Make any amendments to the new portal as necessary

Important notes[edit]

  • Any portal using this template must only use the year in the title, (ie. Portal:1922 or Portal:1588). The template uses the page name as the basis for the dynamic page lists.
  • Do not transclude this page; it should be used as described under procedure.

Amendments[edit]

It is likely that the standard set of categories within this template is inappropriate for a specific year. Therefore, after the page has been saved (as described under Procedure) it can be altered to fit the specific requirements of a specific year. It may also be useful, for aesthetic reasons, to move some sections around (which can be done by cut-and-paste) or change their length.

A sample of a section will look like this:

=== [[:Category:Poems|Poems]] ===
<DynamicPageList>
category=Poems
category={{PAGENAME}} works
count=5
suppresserrors=true
</DynamicPageList>

To adapt this to another use:

  1. category=Poems and the heading [[:Category:Poems|Poems]] should be changed to a new category.
  2. If necessary, category={{PAGENAME}} works can be changed, replacing {{PAGENAME}} with the appropriate year.
  3. If the year is featured in the main category, the category={{PAGENAME}} works line can be removed altogether.

For example, to specify the category as Modern Poetry:

=== [[:Category:Modern poetry|Modern poetry]] ===
<DynamicPageList>
category=Modern poetry
category={{PAGENAME}} works
count=5
suppresserrors=true
</DynamicPageList>

To lengthen the section (provided there are enough works or pages to be listed), change the number in the count=5 line to the maximum number of bullet points desired.

More information[edit]