Asphalt Wiki
No edit summary
No edit summary
Line 45: Line 45:
 
As news can appear at different places on {{SITENAME}}, they are stored in a [[Help:News modular system|modular template system]]. Every news item has its own template which contains the relevant data.
 
As news can appear at different places on {{SITENAME}}, they are stored in a [[Help:News modular system|modular template system]]. Every news item has its own template which contains the relevant data.
   
  +
== Naming cnventions ==
There are strict naming conventions. Every template is named
 
  +
Every template is named
<pre> News YYYY-MM-DD ##</pre>
 
; <code>YYYY-MM-DD</code>
+
: <code> News YYYY-MM-DD ##</code>
  +
: Date of the news item. Month (<code>MM</code>) and day (<code>DD</code>) are always zero-padded, for example <code>2019-08-05</code>.
+
* <code>YYYY-MM-DD</code>: Date of the news item. Month (<code>MM</code>) and day (<code>DD</code>) are always zero-padded, for example<br><code>2019-08-05</code>.
; <code>##</code>
 
  +
* <code>##</code>: Number of the news item on that day, two digits, zero-padded. The first item of a day has <code>01</code>, the second <code>02</code>, and so on.
: Number of
 
   
 
There are predefined "half-ready" pages that help you. You can use the buttons below to go through the steps and follow the instructions given on the respective new page.
 
There are predefined "half-ready" pages that help you. You can use the buttons below to go through the steps and follow the instructions given on the respective new page.

Revision as of 04:12, 25 August 2019

How-to
This page is a how-to guide detailing a practice or process on Asphalt Wiki.
You've done that before? Go ahead:

[Refresh] [Check manually]

As news can appear at different places on Asphalt Wiki, they are stored in a modular template system. Every news item has its own template which contains the relevant data.

Naming cnventions

Every template is named

News YYYY-MM-DD ##
  • YYYY-MM-DD: Date of the news item. Month (MM) and day (DD) are always zero-padded, for example
    2019-08-05.
  • ##: Number of the news item on that day, two digits, zero-padded. The first item of a day has 01, the second 02, and so on.

There are predefined "half-ready" pages that help you. You can use the buttons below to go through the steps and follow the instructions given on the respective new page.

Template

This special template is the "data container" for your Pro Kit Box. Before creating a template, you may want to check the Pro kit box templates category if the template already exists. Editors can insert your box in an article by typing the box name surrounded by curly brackets {{ }} which will retrieve the data directly from the template you are creating now. Your template will also be used as a source for Pro Kit Box overviews. If you need to change the data of the box later, change this template.

  • Use the input box below to create a new template for your Pro Kit Box.
  • When you click the Create Pro Kit Box template button, you will be asked to specifiy a template type. Choose "Design".
  • On the new template page, change the parameters you want and click the Publish button. You do not have to fill in all box data now; you can do it later. Return to this page when you are done.
  • Follow the next step.

See also

  • Help:News modular system – if you want to know more about how to use news templates
  • Category:News templates – the category for all news templates