Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Years generator/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> This module can be used to transclude a particular template for each year since a given year. It will produce a bolded year, followed by an [[Em dash]], followed by your template, for each year from the year you specify (inclusive) up to the current year (inclusive). == Direct usage == Copy and paste the following code, substituting "start year" for the year you want to start the iteration from, and "template to transclude" with the template you want: <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|templateEveryYearToPresent|''Start year''|''Template to transclude''}}</code> This will result in the template being called for each year from ''Start year'' to the current year, with the year it's being called for as the first and only argument. == Usage in a template == Copy and paste the following code, substituting "template to transclude" with the template you want: <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|templateEveryYearToPresent|''Template to transclude''}}</code> The parameters that your template's users put after your template will be automatically consumed by this module, and passed on to the template that you are transcluding for each year. If you wish to consume some parameters yourself, add them to a comma-separated list in a parameter {{para|templatedonotconsume}}. These parameters will be ignored by the module. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Para
(
edit
)