Template:newspage

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(category)
(formatting template; yesinclude noinclude tag; some formatting code; the redundant </center> tags can be moved outside of "if caption")
Line 3: Line 3:
|style="background-color:#{{#switch:{{{color|1}}}|1=3F629A|2=A0B7D4|3=5C5C5C}};color:white;border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px;-khtml-border-radius:20px;-icab-border-radius:20px;-o-border-radius:20px;padding:2em"|
|style="background-color:#{{#switch:{{{color|1}}}|1=3F629A|2=A0B7D4|3=5C5C5C}};color:white;border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px;-khtml-border-radius:20px;-icab-border-radius:20px;-o-border-radius:20px;padding:2em"|
-
'''<span class="plainlinks">[[hr:|<span style="color:#{{#switch:{{{color|1}}}|1=6582AE|2=6582AE}}">< back</span>]]</span>'''
+
'''<span class="plainlinks">[[hr:|{{f|#{{#switch:{{{color|1}}}|1=6582AE|2=6582AE}}|t=< back}}]]</span>'''
-
<span style="font-size:200%">'''{{{1}}}'''</span>
+
{{f|size=200%|t='''{{{1}}}'''}}
-
{{#if:{{{image|}}}|<center>{{{image|}}}<br>
+
{{#if:{{{image|}}}<!--
-
{{#if:{{{caption|}}}|<small>''{{{caption|}}}''</small></center>|</center>}}
+
-->|<center>{{{image|}}}<br>
-
|}}
+
{{#if:{{{caption|}}}<!--
 +
  -->|<small>''{{{caption|}}}''</small><!--
 +
  -->|<!--
 +
-->}}</center><!-- /* end {{#if:{{{caption|}}} */ -->
 +
|}}<!-- /* end {{#if:{{{image|}}} */ -->
{{{text}}}
{{{text}}}
|}<includeonly>[[Category:News Pages]]</includeonly><noinclude>
|}<includeonly>[[Category:News Pages]]</includeonly><noinclude>
Line 19: Line 23:
The "color" parameter is set to 1 by default, but can be set to 2 or 3 for an alternate color scheme.
The "color" parameter is set to 1 by default, but can be set to 2 or 3 for an alternate color scheme.
[[Category:Fancy Formatting Templates]]
[[Category:Fancy Formatting Templates]]
 +
</noinclude>

Revision as of 05:06, 22 January 2023

< back

{{{1}}}


{{{text}}}

Usage:
{{newspage|color=2|Title
|image=[[File:news ruffleupdate.jpg|300px|Ruffulate!]]
|caption=Caption under the image
|text=Text}}

The "color" parameter is set to 1 by default, but can be set to 2 or 3 for an alternate color scheme.