(40 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}__NOTOC__<!--
 
{{Documentation subpage}}__NOTOC__<!--
-->{{#ifeq:{{PAGENAME}}|New A8box
+
-->{{#ifeq:{{PAGENAME}}|New news item
|{{ambox | text = This is a metatemplate used to create a new '''[[:Category:News templates|News template]]''' for the modular system. It provides the necessary code and comments with instructions how to adapt it.<br/><ul><li>For a how-to guide, see [[Asphalt Wiki:New news item]].</li><li>For details how to use news templates in articles, see [[Help:News modular system]].</li><li>The text below is displayed on every news template page in order to show the effects of edits. (Template loop errors will disappear there.)</li></ul>}}}}<!--
+
|{{ambox | text = This is a metatemplate used to create a new '''[[:Category:News templates|News template]]''' for the modular system. It provides the necessary code and comments with instructions how to adapt it.<br/><ul><li>For a how-to guide, see [[Asphalt Wiki:New news item]].</li><li>For details how to use news templates in articles, see [[Help:News modular system]].</li><li>The text below is displayed on every news template page in order to show the effects of edits. (Errors will disappear there.)</li></ul>}}}}<!--
--><includeonly>
+
--><includeonly>{{ {{PAGENAME}}}}
{| class="cut-corner-left" style="margin:6px 12px; background-color:{{cc|bg tbl darkgrey}}; padding:6px 12px;"
 
| {{ {{PAGENAME}}}}
 
|}
 
 
</includeonly>
 
</includeonly>
   
  +
'''''This template has to be published TWICE to be implemented correctly.''''' After saving, just click '''Edit''' and then '''Publish''' again.
This documentation is automatically generated for all box templates. It shows the effects of your edits on the different display styles.
 
  +
* To add news, see [[Asphalt Wiki:New news item]]
* ''Note: '''Previewing or publishing the page does not display your edits.''' You have to click the '''purge''' link at the top of this documentation.'' This will force the server to clear the cache of the page, parse it again and show the changes.
 
 
* For an explanation of the parameters in this template, see {{tl|News}}.
 
* For an explanation of the parameters in this template, see {{tl|News}}.
* For details how to use box templates in articles, see [[Help:News modular system]].
+
* For details how to use news templates<!-- in articles-->, see [[Help:News modular system]].
 
* This documentation is automatically generated for all news templates. It shows the effects of your edits on the different display styles.
   
== '''style = inline (default)''' ==
+
== style = tile (default) ==
  +
: ''How it will appear on [https://asphalt.fandom.com/wiki/News?action=purge News] pages:''
<includeonly>{{ {{PAGENAME}}}}</includeonly>
 
   
  +
See top of this page.
=== '''See also''' ===
 
  +
  +
== style = feed ==
  +
: ''How it will appear inside a news feed (shortened text):''
  +
 
<includeonly>{{ {{PAGENAME}}|style=feed}}</includeonly>
  +
  +
== style = inline ==
  +
: ''Full text, without surrounding design elements:''
  +
  +
<includeonly>{{ {{PAGENAME}}|style=inline}}</includeonly>
  +
 
== See also ==
 
* {{tl|News}} – if you want to know more about the parameters in this template
 
* {{tl|News}} – if you want to know more about the parameters in this template
* [[Asphalt Wiki:New news item]] – if you want to add a new box to Asphalt Wiki
+
* [[Asphalt Wiki:New news item]] – if you want to add news
* [[Help:News modular system]] – if you want to know more about how to use box templates in articles
+
* [[Help:News modular system]] – if you want to know more about how to use news templates<!-- in articles -->
   
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
|<!-- DO NOT CHANGE THESE CATEGORIES, THEY ARE GENERATED AUTOMATICALLY -->
 
|<!-- DO NOT CHANGE THESE CATEGORIES, THEY ARE GENERATED AUTOMATICALLY -->
{{#ifeq:{{PAGENAME}}|New A8box
+
{{#ifeq:{{PAGENAME}}|New news item
 
|[[Category:News metatemplates| ]][[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]]
 
|[[Category:News metatemplates| ]][[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]]
|{{#if:{{ {{PAGENAME}}|#a8}}|[[Category:Asphalt 8 news templates| ]]}}
+
|[[Category:News templates]]
{{#if:{{ {{PAGENAME}}|#a9}}|[[Category:Asphalt 9 news templates| ]]}}
+
{{#if:{{yes|{{ {{PAGENAME}}|#a8}}}}|[[Category:Asphalt 8 news templates| ]]}}
{{#if:{{ {{PAGENAME}}|#statistics}}|[[Category:Statistics news templates| ]]}}
+
{{#if:{{yes|{{ {{PAGENAME}}|#a9}}}}|[[Category:Asphalt 9 news templates| ]]}}
{{#if:{{ {{PAGENAME}}|#wiki}}|[[Category:Asphalt Wiki news templates| ]]}}
+
{{#if:{{yes|{{ {{PAGENAME}}|#an}}}}|[[Category:Asphalt Nitro news templates| ]]}}
{{#if:{{ {{PAGENAME}}|#editors}}|[[Category:Editor news templates| ]]}}
+
{{#if:{{yes|{{ {{PAGENAME}}|#ax}}}}|[[Category:Asphalt Xtreme news templates| ]]}}
  +
{{#if:{{yes|{{ {{PAGENAME}}|#statistics}}}}|[[Category:Statistics news templates| ]]}}
  +
{{#if:{{yes|{{ {{PAGENAME}}|#wiki}}}}|[[Category:Asphalt Wiki news templates| ]]}}
  +
{{#if:{{yes|{{ {{PAGENAME}}|#editors}}}}|[[Category:Editor news templates| ]]}}
  +
<!-- Year -->
  +
[[Category:{{#invoke:String|sub|{{PAGENAME}}|6|9}}]]
  +
<!-- Month -->
  +
[[Category:{{#switch:{{#invoke:String|sub|{{PAGENAME}}|11|12}}
  +
| 01 = January
  +
| 02 = February
  +
| 03 = March
  +
| 04 = April
  +
| 05 = May
  +
| 06 = June
  +
| 07 = July
  +
| 08 = August
  +
| 09 = September
  +
| 10 = October
  +
| 11 = November
  +
| 12 = December
  +
}}]]
  +
<!-- Day -->
  +
[[Category:{{#expr:{{#invoke:String|sub|{{PAGENAME}}|14|15}}}}]]
 
}}}}
 
}}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 21:17, 18 July 2020

This is a documentation subpage for Template:New news item.
It contains usage information, categories and other content that is not part of the original template page.

This template has to be published TWICE to be implemented correctly. After saving, just click Edit and then Publish again.

  • To add news, see Asphalt Wiki:New news item
  • For an explanation of the parameters in this template, see {{News}}.
  • For details how to use news templates, see Help:News modular system.
  • This documentation is automatically generated for all news templates. It shows the effects of your edits on the different display styles.

style = tile (default)

How it will appear on News pages:

See top of this page.

style = feed

How it will appear inside a news feed (shortened text):


style = inline

Full text, without surrounding design elements:


See also


Community content is available under CC-BY-SA unless otherwise noted.