Template:News: Difference between revisions

Template page
No edit summary
No edit summary
Line 79: Line 79:
{{#if: {{{sources|}}} |
{{#if: {{{sources|}}} |
'''Sources: ''' {{#arraymap: {{{sources|}}}|,|x|x|\s }} }}
'''Sources: ''' {{#arraymap: {{{sources|}}}|,|x|x|\s }} }}
[[Category:News]]{{#arraymap: {{{category|}}}|,|x|[[Category:x]]|\s }}
 
'''Categories:'''
<ul class="catlinks" style="display: flex; flex-wrap: wrap; margin: var(--space-xs) 0 0 0; font-size: 0.8125rem; gap: var(--space-xs); letter-spacing: 0;">
{{#arraymap: {{{category|}}}|,|x|<li style="">[[News/x|x]]</li>|\s }}
</ul>
[[Category:News]]
</includeonly>
</includeonly>

Revision as of 21:13, 28 May 2023

This is the "News" template.

It should be called in the following format:

{{News
|seo_title=
|seo_keywords=
|seo_description=
|tags=
|image=
|targets=
|date=
|sources=
|category=
|game=
|content=
|author=
}}

Edit the page to see the template text.

This template defines the table "News". View table.