Template:News: Difference between revisions

From NixOS Wiki
imported>Samueldr
WIP
 
Sdht0 (talk | contribs)
Add proper sections
 
Line 1: Line 1:
<noinclude>{{Template}}{{DISPLAYTITLE:Template:news}}
<noinclude>{{Template}}{{DISPLAYTITLE:Template:news}}
== About ==
The DOM structure for a news element for the homepage.
The DOM structure for a news element for the homepage.


<hr />
== Example ==
 
{{news|2017-02-30|News title|
{{news|2017-02-30|News title|
Cras euismod eget risus ac pulvinar. Fusce blandit, enim in iaculis tincidunt, elit odio fringilla orci, eu imperdiet urna orci eu lorem. Fusce vitae facilisis sapien. Curabitur fringilla sodales velit ac accumsan. Phasellus vel accumsan tellus, vitae dignissim lectus. Mauris ut enim tristique, condimentum augue vel, hendrerit quam. Nunc eleifend quam at felis consequat, ullamcorper consequat dui lobortis.
Cras euismod eget risus ac pulvinar. Fusce blandit, enim in iaculis tincidunt, elit odio fringilla orci, eu imperdiet urna orci eu lorem. Fusce vitae facilisis sapien. Curabitur fringilla sodales velit ac accumsan. Phasellus vel accumsan tellus, vitae dignissim lectus. Mauris ut enim tristique, condimentum augue vel, hendrerit quam. Nunc eleifend quam at felis consequat, ullamcorper consequat dui lobortis.
}}
}}
<hr />
<!--
Notes
=====
* Not using  `<h4>` due to a theme issue on homepage.
-->
</noinclude><includeonly><div class="news-item">
</noinclude><includeonly><div class="news-item">
{{#ifeq: {{PAGENAME}} | Main Page
{{#ifeq: {{PAGENAME}} | Main Page
Line 20: Line 15:
}}
}}
<div class="news-item--body">{{{3}}}</div>
<div class="news-item--body">{{{3}}}</div>
</div></includeonly>
</div></includeonly><!--
Notes
=====
 
* Not using  `<h4>` due to a theme issue on homepage.
-->

Latest revision as of 20:52, 6 April 2024

This page is a template. It should be used as part of other articles. For more information, see Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to discuss this template in the talk page.

If you wanted to create a new page instead, use the search box to search for the title of the new page you want to create and follow the link Create the page "XYZ" on this wiki! in the results page. An alternative is to create a dangling link to the new page from an existing page. A final option is to directly visit the expected URL of the page.

About

The DOM structure for a news element for the homepage.

Example

2017-02-30News title

Cras euismod eget risus ac pulvinar. Fusce blandit, enim in iaculis tincidunt, elit odio fringilla orci, eu imperdiet urna orci eu lorem. Fusce vitae facilisis sapien. Curabitur fringilla sodales velit ac accumsan. Phasellus vel accumsan tellus, vitae dignissim lectus. Mauris ut enim tristique, condimentum augue vel, hendrerit quam. Nunc eleifend quam at felis consequat, ullamcorper consequat dui lobortis.