Template:News: Difference between revisions
Template page
More actions
NekoPillow (talk | contribs) No edit summary |
NekoPillow (talk | contribs) No edit summary |
||
| Line 7: | Line 7: | ||
<div class="flex-img col-3"> | <div class="flex-img col-3"> | ||
{{#if:{{{featureLink1|}}}|[[Image:NewsFeature1.png|link={{{featureLink1}}}]]}}{{#if:{{{featureLink2|}}}|[[Image:NewsFeature2.png|link={{{featureLink2}}}]]}}{{#if:{{{featureLink3|}}}|[[Image:NewsFeature3.png|link={{{featureLink3}}}]]}} | {{#if:{{{featureLink1|}}}|[[Image:{{{featureImage1|NewsFeature1.png}}}|link={{{featureLink1}}}]]}}{{#if:{{{featureLink2|}}}|[[Image:{{{featureImage1|NewsFeature2.png}}}|link={{{featureLink2}}}]]}}{{#if:{{{featureLink3|}}}|[[Image:{{{featureImage1|NewsFeature3.png}}}|link={{{featureLink3}}}]]}} | ||
</div> | </div> | ||
| Line 43: | Line 43: | ||
| bannerLink= | | bannerLink= | ||
| The page name that will open when user clicked on the banner. Leave blank to hide it. | | The page name that will open when user clicked on the banner. Leave blank to hide it. | ||
|- | |||
| featureImage1= | |||
| The file name of the 1st Feature image. Leave Blank for NewsFeature1.png. | |||
|- | |||
| featureImage2= | |||
| The file name of the 2nd Feature image. Leave Blank for NewsFeature2.png. | |||
|- | |||
| featureImage3= | |||
| The file name of the 3rd Feature image. Leave Blank for NewsFeature3.png. | |||
|- | |- | ||
| featureLink1= | | featureLink1= | ||
| The page name that will open when user clicked on the 1st Feature image. | | The page name that will open when user clicked on the 1st Feature image. Leave Blank to hide the button. | ||
|- | |- | ||
| featureLink2= | | featureLink2= | ||
| The page name that will open when user clicked on the 2nd Feature image. | | The page name that will open when user clicked on the 2nd Feature image. Leave Blank to hide the button. | ||
|- | |- | ||
| featureLink3= | | featureLink3= | ||
| The page name that will open when user clicked on the 3rd Feature image. | | The page name that will open when user clicked on the 3rd Feature image. Leave Blank to hide the button. | ||
|- | |- | ||
| communityLink1= | | communityLink1= | ||
| The link that will open when user clicked on the 1st Community image. | | The link that will open when user clicked on the 1st Community image. Leave Blank to hide the button. | ||
|- | |- | ||
| communityLink2= | | communityLink2= | ||
| The link that will open when user clicked on the 2nd Community image. | | The link that will open when user clicked on the 2nd Community image. Leave Blank to hide the button. | ||
|- | |- | ||
| communityLink3= | | communityLink3= | ||
| The link that will open when user clicked on the 3rd Community image. | | The link that will open when user clicked on the 3rd Community image. Leave Blank to hide the button. | ||
|} | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 15:49, 5 May 2022
Usage:
{{News|Date|Title|Content|[Parameters=]}}
Parameters:
| Parameter | Meaning |
|---|---|
| bannerLink= | The page name that will open when user clicked on the banner. Leave blank to hide it. |
| featureImage1= | The file name of the 1st Feature image. Leave Blank for NewsFeature1.png. |
| featureImage2= | The file name of the 2nd Feature image. Leave Blank for NewsFeature2.png. |
| featureImage3= | The file name of the 3rd Feature image. Leave Blank for NewsFeature3.png. |
| featureLink1= | The page name that will open when user clicked on the 1st Feature image. Leave Blank to hide the button. |
| featureLink2= | The page name that will open when user clicked on the 2nd Feature image. Leave Blank to hide the button. |
| featureLink3= | The page name that will open when user clicked on the 3rd Feature image. Leave Blank to hide the button. |
| communityLink1= | The link that will open when user clicked on the 1st Community image. Leave Blank to hide the button. |
| communityLink2= | The link that will open when user clicked on the 2nd Community image. Leave Blank to hide the button. |
| communityLink3= | The link that will open when user clicked on the 3rd Community image. Leave Blank to hide the button. |